From: Mario Date: Fri, 14 Feb 2025 17:20:31 +0000 (+1000) Subject: Use a more explicit Ball Stealer check that doesn't filter out the Port-O-Launch X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cedebabe6950b6b3c1a3e1d877677a5aad7bc7f1;p=xonotic%2Fxonotic-data.pk3dir.git Use a more explicit Ball Stealer check that doesn't filter out the Port-O-Launch --- diff --git a/qcsrc/common/weapons/all.qh b/qcsrc/common/weapons/all.qh index 765017feee..5a018f4bc0 100644 --- a/qcsrc/common/weapons/all.qh +++ b/qcsrc/common/weapons/all.qh @@ -343,7 +343,9 @@ STATIC_INIT(register_weapons_done) WEPSET_ALL |= set; if (it.spawnflags & WEP_FLAG_SUPERWEAPON) WEPSET_SUPERWEAPONS |= set; if (it == WEP_Null) continue; - if ((it.spawnflags & WEP_FLAG_SPECIALATTACK) || (it.spawnflags & WEP_TYPE_OTHER)) continue; + if (it.spawnflags & WEP_FLAG_SPECIALATTACK) continue; + // TODO: this exists to filter out the Ball Stealer, otherwise we run out of impulses + if ((it.spawnflags & WEP_FLAG_MUTATORBLOCKED) && (it.spawnflags & WEP_TYPE_OTHER)) continue; it.m_impulse = imp; if (imp <= WEP_IMPULSE_END)