#ifdef SVQC
void plat_link();
-void plat_delayedinit()
+void plat_delayedinit(entity this)
{
plat_link();
plat_spawn_inside_trigger(); // the "start moving" trigger
this.angles = '0 0 0';
this.classname = "plat";
- if (!InitMovingBrushTrigger())
+ if (!InitMovingBrushTrigger(this))
return;
this.effects |= EF_LOWPRECISION;
setsize (this, this.mins , this.maxs);
this.model = strzone(ReadString());
_setmodel(this, this.model);
- trigger_common_read(true);
+ trigger_common_read(this, true);
this.pos1_x = ReadCoord();
this.pos1_y = ReadCoord();
this.movetype = MOVETYPE_PUSH;
this.drawmask = MASK_NORMAL;
this.draw = plat_draw;
- this.use1 = plat_use;
+ this.use = plat_use;
this.entremove = trigger_remove_generic;
plat_reset(this); // also called here