2 void trigger_relay_teamcheck_use(entity this, entity actor, entity trigger)
6 if(this.spawnflags & 2)
8 if(DIFF_TEAM(actor, this))
9 SUB_UseTargets(this, actor, trigger);
13 if(SAME_TEAM(actor, this))
14 SUB_UseTargets(this, actor, trigger);
19 if(this.spawnflags & 1)
20 SUB_UseTargets(this, actor, trigger);
24 void trigger_relay_teamcheck_reset(entity this)
26 this.team = this.team_saved;
29 spawnfunc(trigger_relay_teamcheck)
31 this.team_saved = this.team;
32 this.use = trigger_relay_teamcheck_use;
33 this.reset = trigger_relay_teamcheck_reset;