mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 18:05:23 +01:00
When a player dies in multiplayer, make their body non-solid immediately.
This commit is contained in:
parent
538e3a84d7
commit
edd258e302
@ -903,6 +903,9 @@ void CBasePlayer::Killed( entvars_t *pevAttacker, int iGib )
|
|||||||
// UNDONE: Put this in, but add FFADE_PERMANENT and make fade time 8.8 instead of 4.12
|
// UNDONE: Put this in, but add FFADE_PERMANENT and make fade time 8.8 instead of 4.12
|
||||||
// UTIL_ScreenFade( edict(), Vector( 128, 0, 0 ), 6, 15, 255, FFADE_OUT | FFADE_MODULATE );
|
// UTIL_ScreenFade( edict(), Vector( 128, 0, 0 ), 6, 15, 255, FFADE_OUT | FFADE_MODULATE );
|
||||||
|
|
||||||
|
if( g_pGameRules->IsMultiplayer())
|
||||||
|
pev->solid = SOLID_NOT;
|
||||||
|
|
||||||
if( ( pev->health < -40 && iGib != GIB_NEVER ) || iGib == GIB_ALWAYS )
|
if( ( pev->health < -40 && iGib != GIB_NEVER ) || iGib == GIB_ALWAYS )
|
||||||
{
|
{
|
||||||
pev->solid = SOLID_NOT;
|
pev->solid = SOLID_NOT;
|
||||||
|
Loading…
Reference in New Issue
Block a user