]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a spawnflag to trigger_multiple to not trigger if a non-player entity touched it
authorMario <mario@smbclan.net>
Sun, 18 Oct 2015 07:31:13 +0000 (17:31 +1000)
committerMario <mario@smbclan.net>
Sun, 18 Oct 2015 07:31:13 +0000 (17:31 +1000)
qcsrc/common/triggers/trigger/multi.qc

index 3261520d7a19e951ebdd198c7293facdf38a1de0..bc5821c809383597f1b8d1d92b0fea2229b86436 100644 (file)
@@ -23,6 +23,10 @@ void multi_trigger()
                return;         // allready been triggered
        }
 
+       if(self.spawnflags & 16384)
+       if(!IS_PLAYER(self.enemy))
+               return; // only players
+
        if (self.classname == "trigger_secret")
        {
                if (!IS_PLAYER(self.enemy))