+#include "relay_activators.qh"
#ifdef SVQC
-void relay_activators_use()
-{SELFPARAM();
- for(entity trg = world; (trg = find(trg, targetname, this.target)); )
+void relay_activators_use(entity this, entity actor, entity trigger)
+{
+ for(entity trg = NULL; (trg = find(trg, targetname, this.target)); )
{
- setself(trg);
if (trg.setactive)
- trg.setactive(this.cnt);
+ trg.setactive(trg, this.cnt);
else
{
//bprint("Not using setactive\n");
trg.active = this.cnt;
}
}
- setself(this);
}
-void spawnfunc_relay_activate()
-{SELFPARAM();
- self.cnt = ACTIVE_ACTIVE;
- self.use = relay_activators_use;
+spawnfunc(relay_activate)
+{
+ this.cnt = ACTIVE_ACTIVE;
+ this.use = relay_activators_use;
}
-void spawnfunc_relay_deactivate()
-{SELFPARAM();
- self.cnt = ACTIVE_NOT;
- self.use = relay_activators_use;
+spawnfunc(relay_deactivate)
+{
+ this.cnt = ACTIVE_NOT;
+ this.use = relay_activators_use;
}
-void spawnfunc_relay_activatetoggle()
-{SELFPARAM();
- self.cnt = ACTIVE_TOGGLE;
- self.use = relay_activators_use;
+spawnfunc(relay_activatetoggle)
+{
+ this.cnt = ACTIVE_TOGGLE;
+ this.use = relay_activators_use;
}
#endif