From 284effca5269233d9efb083eaba0c216398bea8a Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 25 Mar 2015 03:02:41 +1100 Subject: [PATCH] Add a way to trigger multi only when certain keys are pressed (intended for use on warp pipes) --- qcsrc/common/triggers/trigger/multi.qc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcsrc/common/triggers/trigger/multi.qc b/qcsrc/common/triggers/trigger/multi.qc index ae73aaf7a..16d72a8c4 100644 --- a/qcsrc/common/triggers/trigger/multi.qc +++ b/qcsrc/common/triggers/trigger/multi.qc @@ -82,6 +82,12 @@ void multi_touch() return; // not facing the right way } + // if the trigger has pressed keys, check that the player is pressing those keys + if(self.pressedkeys) + if(IS_PLAYER(other)) // only for players + if(!(other.pressedkeys & self.pressedkeys)) + return; + EXACTTRIGGER_TOUCH; self.enemy = other; -- 2.39.2