CS:GO DM - Detecting player invulnerability
Posted: Sat Jun 13, 2020 12:22 am
by JustGR
Looked through the documentation and forums, and didn't find anything about detecting if a player is still immune after spawning in Deathmatch. I'd like to use this to run another function, and aside from detecting input from the user, I'm not quite sure what to do.
Re: CS:GO DM - Detecting player invulnerability
Posted: Wed Jun 17, 2020 4:02 pm
by khaimovmr
I'm interested in this too, if you mean the semi-transparent mode in DM when the player is just spawned.
Re: CS:GO DM - Detecting player invulnerability
Posted: Wed Jun 17, 2020 4:33 pm
by VinciT
Checking the
m_bGunGameImmunity property should work:
Syntax: Select all
from players.entity import Player
if player.get_property_bool('m_bGunGameImmunity'):
# Player has godmode - do something.