+#include "delay.qh"
#ifdef SVQC
-void delay_use()
-{SELFPARAM();
- self.think = SUB_UseTargets;
- self.nextthink = self.wait;
+void delay_use(entity this, entity actor, entity trigger)
+{
+ setthink(this, SUB_UseTargets_self);
+ this.nextthink = this.wait;
}
-void delay_reset()
-{SELFPARAM();
- self.think = func_null;
- self.nextthink = 0;
+void delay_reset(entity this)
+{
+ setthink(this, func_null);
+ this.nextthink = 0;
}
-void spawnfunc_trigger_delay()
-{SELFPARAM();
- if(!self.wait)
- self.wait = 1;
+spawnfunc(trigger_delay)
+{
+ if(!this.wait)
+ this.wait = 1;
- self.use = delay_use;
- self.reset = delay_reset;
+ this.use = delay_use;
+ this.reset = delay_reset;
}
#endif