From: Mario Date: Thu, 1 Aug 2024 04:32:30 +0000 (+0000) Subject: Fix Jetpacks and other undefined powerup items spawning in InstaGib X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d9f42d7ede85bf647518513c9736d694ea904a4a;p=xonotic%2Fxonotic-data.pk3dir.git Fix Jetpacks and other undefined powerup items spawning in InstaGib --- 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);