]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use a more explicit Ball Stealer check that doesn't filter out the Port-O-Launch
authorMario <mario.mario@y7mail.com>
Fri, 14 Feb 2025 17:20:31 +0000 (03:20 +1000)
committerMario <mario.mario@y7mail.com>
Fri, 14 Feb 2025 17:20:31 +0000 (03:20 +1000)
qcsrc/common/weapons/all.qh

index 765017feee6decddea0619f3c4ca99e1fd429e31..5a018f4bc032fb68c9267f8464e0cc5b9be19919 100644 (file)
@@ -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)