#ifdef SVQC
bool corner_send(entity to, int sf)
-{
- WriteByte(MSG_ENTITY, ENT_CLIENT_CORNER);
+{SELFPARAM();
+ WriteHeader(MSG_ENTITY, ENT_CLIENT_CORNER);
WriteString(MSG_ENTITY, self.platmovetype);
//Net_LinkEntity(self, false, 0, corner_send);
}
-void spawnfunc_path_corner()
+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
#elif defined(CSQC)
void corner_remove()
-{
+{SELFPARAM();
if(self.target) { strunzone(self.target); }
self.target = string_null;
self.platmovetype = string_null;
}
-void ent_corner()
+NET_HANDLE(ENT_CLIENT_CORNER, bool isnew)
{
self.platmovetype = strzone(ReadString());
self.wait = ReadByte();
+ return = true;
+
self.classname = "path_corner";
self.drawmask = MASK_NORMAL;
self.entremove = corner_remove;