From 81572f45e6ea36ca6a733a373d43736460b3650c Mon Sep 17 00:00:00 2001 From: Roman Chistokhodov Date: Sat, 28 Dec 2024 03:01:07 +0300 Subject: [PATCH] Don't turn off the flashlight when removing weapons with player_weaponstrip --- dlls/player.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/player.cpp b/dlls/player.cpp index f9a633da6..4e2d7952a 100644 --- a/dlls/player.cpp +++ b/dlls/player.cpp @@ -860,7 +860,8 @@ void CBasePlayer::RemoveAllItems( BOOL removeSuit ) pev->weapons &= ~WEAPON_ALLWEAPONS; // Turn off flashlight - ClearBits( pev->effects, EF_DIMLIGHT ); + if (removeSuit) + ClearBits( pev->effects, EF_DIMLIGHT ); for( i = 0; i < MAX_AMMO_SLOTS; i++ ) m_rgAmmo[i] = 0;