mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
Turn off flashlight when player dead.
This commit is contained in:
parent
c16e1ecfef
commit
4d7d6f2c37
@ -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…
Reference in New Issue
Block a user