3 void trigger_relay_if_use(entity this, entity actor, entity trigger)
5 if(this.active != ACTIVE_ACTIVE)
10 // TODO make this generic AND faster than nextent()ing through all, if somehow possible
11 n = (cvar_string(this.netname) == cvar_string(this.message));
12 if(this.spawnflags & RELAYIF_NEGATE)
16 SUB_UseTargets(this, actor, trigger);
19 spawnfunc(trigger_relay_if)
21 this.reset = spawnfunc_trigger_relay_if; // this spawnfunc resets fully
22 this.active = ACTIVE_ACTIVE;
23 this.use = trigger_relay_if_use;