2 REGISTER_NET_LINKED(ENT_CLIENT_CORNER)
5 bool corner_send(entity this, entity to, int sf)
7 WriteHeader(MSG_ENTITY, ENT_CLIENT_CORNER);
9 WriteString(MSG_ENTITY, this.platmovetype);
11 WriteVector(MSG_ENTITY, this.origin);
13 WriteString(MSG_ENTITY, this.target);
14 WriteString(MSG_ENTITY, this.target2);
15 WriteString(MSG_ENTITY, this.target3);
16 WriteString(MSG_ENTITY, this.target4);
17 WriteString(MSG_ENTITY, this.targetname);
18 WriteByte(MSG_ENTITY, this.target_random);
20 WriteByte(MSG_ENTITY, this.wait);
25 void corner_link(entity this)
27 //Net_LinkEntity(this, false, 0, corner_send);
30 spawnfunc(path_corner)
32 // setup values for overriding train movement
33 // if a second value does not exist, both start and end speeds are the single value specified
34 set_platmovetype(this, this.platmovetype);
40 void corner_remove(entity this)
43 strfree(this.target2);
44 strfree(this.target3);
45 strfree(this.target4);
46 strfree(this.targetname);
47 strfree(this.platmovetype);
50 NET_HANDLE(ENT_CLIENT_CORNER, bool isnew)
52 this.platmovetype = strzone(ReadString());
54 this.origin = ReadVector();
55 setorigin(this, this.origin);
57 this.target = strzone(ReadString());
58 this.target2 = strzone(ReadString());
59 this.target3 = strzone(ReadString());
60 this.target4 = strzone(ReadString());
61 this.targetname = strzone(ReadString());
62 this.target_random = ReadByte();
64 this.wait = ReadByte();
68 this.classname = "path_corner";
69 this.drawmask = MASK_NORMAL;
70 this.entremove = corner_remove;
72 set_platmovetype(this, this.platmovetype);