1 #include "relay_teamcheck.qh"
3 void trigger_relay_teamcheck_use(entity this, entity actor, entity trigger)
7 if(this.spawnflags & RELAYTEAMCHECK_INVERT)
9 if(DIFF_TEAM(actor, this))
10 SUB_UseTargets(this, actor, trigger);
14 if(SAME_TEAM(actor, this))
15 SUB_UseTargets(this, actor, trigger);
20 if(this.spawnflags & RELAYTEAMCHECK_NOTEAM)
21 SUB_UseTargets(this, actor, trigger);
25 void trigger_relay_teamcheck_reset(entity this)
27 this.team = this.team_saved;
30 spawnfunc(trigger_relay_teamcheck)
32 this.team_saved = this.team;
33 IL_PUSH(g_saved_team, this);
34 this.use = trigger_relay_teamcheck_use;
35 this.reset = trigger_relay_teamcheck_reset;