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