CS:GO DM - Detecting player invulnerability

Please post any questions about developing your plugin here. Please use the search function before posting!
JustGR
Junior Member
Posts: 20
Joined: Tue Apr 28, 2020 12:39 pm

CS:GO DM - Detecting player invulnerability

Postby JustGR » Sat Jun 13, 2020 12:22 am

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.
User avatar
khaimovmr
Member
Posts: 52
Joined: Fri Aug 25, 2017 3:15 am
Contact:

Re: CS:GO DM - Detecting player invulnerability

Postby khaimovmr » Wed Jun 17, 2020 4:02 pm

I'm interested in this too, if you mean the semi-transparent mode in DM when the player is just spawned.
User avatar
VinciT
Senior Member
Posts: 331
Joined: Thu Dec 18, 2014 2:41 am

Re: CS:GO DM - Detecting player invulnerability

Postby VinciT » Wed Jun 17, 2020 4:33 pm

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.
ImageImageImageImageImage

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 20 guests