From 9d10bc36e52babb863751c0cf1d1b23b38fd000c Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 18 Oct 2015 17:31:13 +1000 Subject: [PATCH] Add a spawnflag to trigger_multiple to not trigger if a non-player entity touched it --- qcsrc/common/triggers/trigger/multi.qc | 4 ++++ 1 file changed, 4 insertions(+) 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)) -- 2.39.2