self.SendFlags |= 2;
}
-bool conveyor_send(entity to, int sf)
-{SELFPARAM();
+bool conveyor_send(entity this, entity to, int sf)
+{
WriteByte(MSG_ENTITY, ENT_CLIENT_CONVEYOR);
WriteByte(MSG_ENTITY, sf);
self.SendFlags |= 1;
}
-void spawnfunc_trigger_conveyor()
+spawnfunc(trigger_conveyor)
{
SetMovedir();
EXACTTRIGGER_INIT;
conveyor_init();
}
-void spawnfunc_func_conveyor()
-{SELFPARAM();
+spawnfunc(func_conveyor)
+{
SetMovedir();
InitMovingBrushTrigger();
self.movetype = MOVETYPE_NONE;
#elif defined(CSQC)
+void conveyor_draw(entity this) { WITH(entity, self, this, conveyor_think()); }
+
void conveyor_init()
{SELFPARAM();
- self.draw = conveyor_think;
+ self.draw = conveyor_draw;
self.drawmask = MASK_NORMAL;
self.movetype = MOVETYPE_NONE;