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
Player entity attributes
- L'In20Cible
- Project Leader
- Posts: 1536
- Joined: Sat Jul 14, 2012 9:29 pm
- Location: Québec
Re: Player entity attributes
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).
Return to “Plugin Development Support”
Who is online
Users browsing this forum: Bing [Bot] and 81 guests