From d9f42d7ede85bf647518513c9736d694ea904a4a Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 1 Aug 2024 04:32:30 +0000 Subject: [PATCH] Fix Jetpacks and other undefined powerup items spawning in InstaGib --- qcsrc/common/mutators/mutator/instagib/sv_instagib.qc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qcsrc/common/mutators/mutator/instagib/sv_instagib.qc b/qcsrc/common/mutators/mutator/instagib/sv_instagib.qc index 12d4316f4..028dc7e32 100644 --- a/qcsrc/common/mutators/mutator/instagib/sv_instagib.qc +++ b/qcsrc/common/mutators/mutator/instagib/sv_instagib.qc @@ -326,6 +326,8 @@ MUTATOR_HOOKFUNCTION(mutator_instagib, FilterItem) if(autocvar_g_powerups) instagib_replace_item_with_random_powerup(item); return true; + case ITEM_Invisibility: case ITEM_ExtraLife: case ITEM_Speed: + return false; case ITEM_Cells: if(autocvar_g_instagib_ammo_convert_cells) instagib_replace_item_with(item, ITEM_VaporizerCells); @@ -358,9 +360,6 @@ MUTATOR_HOOKFUNCTION(mutator_instagib, FilterItem) return true; } - if(item.itemdef.instanceOfPowerup) - return false; - float cells = GetResource(item, RES_CELLS); if(cells > autocvar_g_instagib_ammo_drop && item.classname != "item_vaporizer_cells") SetResource(item, RES_CELLS, autocvar_g_instagib_ammo_drop); -- 2.39.2