From e230cfed050eaf45b9141affaf361675489c5453 Mon Sep 17 00:00:00 2001 From: z411 Date: Tue, 4 Oct 2022 02:23:42 -0300 Subject: [PATCH] Don't drop powerfup if something has dropped before --- qcsrc/common/mutators/mutator/powerups/sv_powerups.qc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcsrc/common/mutators/mutator/powerups/sv_powerups.qc b/qcsrc/common/mutators/mutator/powerups/sv_powerups.qc index 14ad5f121..ef9aa3acb 100644 --- a/qcsrc/common/mutators/mutator/powerups/sv_powerups.qc +++ b/qcsrc/common/mutators/mutator/powerups/sv_powerups.qc @@ -169,8 +169,7 @@ MUTATOR_HOOKFUNCTION(powerups, PlayerDies) MUTATOR_HOOKFUNCTION(powerups, PlayerUseKey) { - if(!autocvar_g_powerups_drop) - return; + if(MUTATOR_RETURNVALUE || game_stopped || !autocvar_g_powerups_drop) return; entity player = M_ARGV(0, entity); -- 2.39.2