diff --git a/sp/src/game/server/player.cpp b/sp/src/game/server/player.cpp index dad94dea600..3d431d06b7d 100644 --- a/sp/src/game/server/player.cpp +++ b/sp/src/game/server/player.cpp @@ -8620,15 +8620,19 @@ void CMovementSpeedMod::InputEnable(inputdata_t &data) pPlayer->HideViewModels(); } - - // Turn off the flashlight - if ( pPlayer->FlashlightIsOn() ) + + if ( !HasSpawnFlags( SF_SPEED_MOD_DONT_SUPPRESS_FLASHLIGHT ) ) { - pPlayer->FlashlightTurnOff(); - } + // Turn off the flashlight + if ( pPlayer->FlashlightIsOn() ) + { + pPlayer->FlashlightTurnOff(); + } - // Disable the flashlight's further use - pPlayer->SetFlashlightEnabled( false ); + // Disable the flashlight's further use + pPlayer->SetFlashlightEnabled( false ); + } + pPlayer->DisableButtons( GetDisabledButtonMask() ); // Hide the HUD @@ -8663,9 +8667,13 @@ void CMovementSpeedMod::InputDisable(inputdata_t &data) pPlayer->GetActiveWeapon()->Deploy(); } } + + if ( !HasSpawnFlags( SF_SPEED_MOD_DONT_SUPPRESS_FLASHLIGHT ) ) + { + // Allow the flashlight again + pPlayer->SetFlashlightEnabled( true ); + } - // Allow the flashlight again - pPlayer->SetFlashlightEnabled( true ); pPlayer->EnableButtons( GetDisabledButtonMask() ); // Restore the HUD