mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: server: fix godmode behavior.
This commit is contained in:
parent
7a58813254
commit
87340ceca8
@ -1830,9 +1830,6 @@ static qboolean SV_Godmode_f( sv_client_t *cl )
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
pEntity->v.flags = pEntity->v.flags ^ FL_GODMODE;
|
pEntity->v.flags = pEntity->v.flags ^ FL_GODMODE;
|
||||||
if( pEntity->v.takedamage == DAMAGE_AIM )
|
|
||||||
pEntity->v.takedamage = DAMAGE_NO;
|
|
||||||
else pEntity->v.takedamage = DAMAGE_AIM;
|
|
||||||
|
|
||||||
if( !FBitSet( pEntity->v.flags, FL_GODMODE ))
|
if( !FBitSet( pEntity->v.flags, FL_GODMODE ))
|
||||||
SV_ClientPrintf( cl, "godmode OFF\n" );
|
SV_ClientPrintf( cl, "godmode OFF\n" );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user