mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-25 22:24:16 +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
|
else
|
||||||
pev->weapons &= ~WEAPON_ALLWEAPONS;
|
pev->weapons &= ~WEAPON_ALLWEAPONS;
|
||||||
|
|
||||||
|
// Turn off flashlight
|
||||||
|
ClearBits( pev->effects, EF_DIMLIGHT );
|
||||||
|
|
||||||
for( i = 0; i < MAX_AMMO_SLOTS; i++ )
|
for( i = 0; i < MAX_AMMO_SLOTS; i++ )
|
||||||
m_rgAmmo[i] = 0;
|
m_rgAmmo[i] = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user