it.sameteam = false;
}
bool dead = entcs_IsDead(i) || entcs_IsSpectating(i);
+ if(gametype == MAPINFO_TYPE_CA)
+ dead = (dead || entcs_IsEliminated(i));
if (!it.csqcmodel_isdead) setorigin(it, entcs.origin);
it.csqcmodel_isdead = dead;
Draw_ShowNames(it);
/**
* @param i zero indexed player
+ */
+ .int frags;
+ bool entcs_IsEliminated(int i)
+ {
+ bool unconnected = !playerslots[i].gotscores;
+ entity e = entcs_receiver(i);
+ return unconnected || ((e) ? e.frags : stof(getplayerkeyvalue(i, "frags"))) == FRAGS_LMS_LOSER;
+ }
+
+ /**
+ * @param i zero indexed player
*/
int entcs_GetClientColors(int i)
{