View Single Post
Austin
Senior Member
Join Date: Oct 2005
Old 09-11-2021 , 22:50   Re: [CS:GO] mp_respawn_immunitytime for humans only?
Reply With Quote #8

Ilusion9,

I should have explained what I was doing better.
I only hinted at it when I said about my example “I would expect immunity to be removed from everyone…”

When learning a new SM concept or code and it isn’t working I like to condense it down to the smallest possible bit of code to try to debug it.

Since my example only returns on an invalid client I would expect the two SetEntProp() to run on everyone, all players all teams to remove immunity and my PrintToChat() shows all players at round start so I know those lines are being applied to all connected players,

but everyone always gets immunity so calling those two lines on a client in Player_Spawn() doesn’t remove immunity.
At least not in CSGO.

And I tried the converse to set immunity and it doesn’t work either.
SetEntProp(client, Prop_Send, "m_bGunGameImmunity", true);
SetEntPropFloat(client, Prop_Send, "m_fImmuneToGunGameDamageTime", 60.0);

Last edited by Austin; 09-13-2021 at 02:01.
Austin is offline