Player entity attributes

Please post any questions about developing your plugin here. Please use the search function before posting!
arawra
Senior Member
Posts: 190
Joined: Fri Jun 21, 2013 6:51 am

Player entity attributes

Postby arawra » Mon Aug 15, 2016 3:07 am

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
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: Player entity attributes

Postby L'In20Cible » Mon Aug 15, 2016 3:45 am

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: No registered users and 22 guests