Player entity attributes
Posted: Mon Aug 15, 2016 3:07 am
by arawra
What is the equivalent of players.entity.Player(index).isdead ? It would seem really inefficient to check if the player was in PlayerIter('dead').
E: PlayerInfo.is_dead
Re: Player entity attributes
Posted: Mon Aug 15, 2016 3:45 am
by L'In20Cible
PlayerInfo.is_dead is not accurate on games other than HL2:DM. It only check if the player is spectating or not, which makes sense in deathmatch but not in round based game such as CS games. For those games, you would want to use the
pl.deadflag property (wrapped as
Player.dead).