From: Mario Date: Sun, 18 Oct 2015 07:31:13 +0000 (+1000) Subject: Add a spawnflag to trigger_multiple to not trigger if a non-player entity touched it X-Git-Tag: xonotic-v0.8.2~1809 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9d10bc36e52babb863751c0cf1d1b23b38fd000c;p=xonotic%2Fxonotic-data.pk3dir.git Add a spawnflag to trigger_multiple to not trigger if a non-player entity touched it --- diff --git a/qcsrc/common/triggers/trigger/multi.qc b/qcsrc/common/triggers/trigger/multi.qc index 3261520d7..bc5821c80 100644 --- a/qcsrc/common/triggers/trigger/multi.qc +++ b/qcsrc/common/triggers/trigger/multi.qc @@ -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))