]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Nexball: mutator lock ballstealer
authorTimePath <andrew.hardaker1995@gmail.com>
Mon, 5 Oct 2015 07:26:29 +0000 (18:26 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Mon, 5 Oct 2015 07:26:29 +0000 (18:26 +1100)
qcsrc/server/mutators/gamemode_nexball.qc
qcsrc/server/mutators/gamemode_nexball_weapon.qc

index 8f0ce7e4466ddcd930f7f668c514b16894a4bc3d..2e152bb6822755adfca1046bd0c16f5cd83d9ff7 100644 (file)
@@ -1023,10 +1023,12 @@ MUTATOR_DEFINITION(gamemode_nexball)
                radar_showennemies = autocvar_g_nexball_radar_showallplayers;
 
                InitializeEntity(world, nb_delayedinit, INITPRIO_GAMETYPE);
+               WEP_NEXBALL.spawnflags &= ~WEP_FLAG_MUTATORBLOCKED;
        }
 
        MUTATOR_ONROLLBACK_OR_REMOVE
        {
+               WEP_NEXBALL.spawnflags |= WEP_FLAG_MUTATORBLOCKED;
                // we actually cannot roll back nb_delayedinit here
                // BUT: we don't need to! If this gets called, adding always
                // succeeds.
index 8d11877fe5226031e79c03a4877e74948a9d5d4b..ae882bb32a1cca706a45a30b873c03318ae3f97a 100644 (file)
@@ -2,7 +2,7 @@
 #define GAMEMODE_NEXBALL_WEAPON_H
 
 CLASS(BallStealer, PortoLaunch)
-/* flags     */ ATTRIB(BallStealer, spawnflags, int, WEP_TYPE_OTHER | WEP_FLAG_HIDDEN);
+/* flags     */ ATTRIB(BallStealer, spawnflags, int, WEP_TYPE_OTHER | WEP_FLAG_HIDDEN | WEP_FLAG_MUTATORBLOCKED);
 /* impulse   */ ATTRIB(BallStealer, impulse, int, 0);
 /* refname   */ ATTRIB(BallStealer, netname, string, "ballstealer");
 /* wepname   */ ATTRIB(BallStealer, message, string, _("Ball Stealer"));