Browse Source

Turn off flashlight when player dead.

halloween
Night Owl 7 years ago
parent
commit
4d7d6f2c37
  1. 3
      dlls/player.cpp

3
dlls/player.cpp

@ -820,6 +820,9 @@ void CBasePlayer::RemoveAllItems( BOOL removeSuit ) @@ -820,6 +820,9 @@ void CBasePlayer::RemoveAllItems( BOOL removeSuit )
else
pev->weapons &= ~WEAPON_ALLWEAPONS;
// Turn off flashlight
ClearBits( pev->effects, EF_DIMLIGHT );
for( i = 0; i < MAX_AMMO_SLOTS; i++ )
m_rgAmmo[i] = 0;

Loading…
Cancel
Save