X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ftrigger%2Frelay_teamcheck.qc;h=2972d32bbf79b3e23fa6da66e4e9569e982a6824;hp=193dba36825fe8ce1aefc43b06948c9d1a223277;hb=a823548db666d01ecf1ef8b8e559caa61334ce26;hpb=a0feb46a5f3f7db30054e67266e1c59f712f3da7 diff --git a/qcsrc/common/triggers/trigger/relay_teamcheck.qc b/qcsrc/common/triggers/trigger/relay_teamcheck.qc index 193dba368..2972d32bb 100644 --- a/qcsrc/common/triggers/trigger/relay_teamcheck.qc +++ b/qcsrc/common/triggers/trigger/relay_teamcheck.qc @@ -1,23 +1,23 @@ #ifdef SVQC -void trigger_relay_teamcheck_use() -{SELFPARAM(); - if(activator.team) +void trigger_relay_teamcheck_use(entity this, entity actor, entity trigger) +{ + if(actor.team) { - if(self.spawnflags & 2) + if(this.spawnflags & 2) { - if(DIFF_TEAM(activator, self)) - SUB_UseTargets(); + if(DIFF_TEAM(actor, this)) + SUB_UseTargets(this, actor, trigger); } else { - if(SAME_TEAM(activator, self)) - SUB_UseTargets(); + if(SAME_TEAM(actor, this)) + SUB_UseTargets(this, actor, trigger); } } else { - if(self.spawnflags & 1) - SUB_UseTargets(); + if(this.spawnflags & 1) + SUB_UseTargets(this, actor, trigger); } }