#ifdef SVQC
bool corner_send(entity to, int sf)
{SELFPARAM();
- WriteByte(MSG_ENTITY, ENT_CLIENT_CORNER);
+ WriteHeader(MSG_ENTITY, ENT_CLIENT_CORNER);
WriteString(MSG_ENTITY, self.platmovetype);
//Net_LinkEntity(self, false, 0, corner_send);
}
-void spawnfunc_path_corner()
-{SELFPARAM();
+spawnfunc(path_corner)
+{
// setup values for overriding train movement
// if a second value does not exist, both start and end speeds are the single value specified
set_platmovetype(self, self.platmovetype);
self.platmovetype = string_null;
}
-void ent_corner()
-{SELFPARAM();
+NET_HANDLE(ENT_CLIENT_CORNER, bool isnew)
+{
self.platmovetype = strzone(ReadString());
self.origin_x = ReadCoord();
self.wait = ReadByte();
+ return = true;
+
self.classname = "path_corner";
self.drawmask = MASK_NORMAL;
self.entremove = corner_remove;