1 REGISTER_NET_LINKED(ENT_CLIENT_LADDER)
3 void func_ladder_touch()
11 if(!other.isplayermodel)
17 other.ladder_time = time + 0.1;
18 other.ladder_entity = self;
22 bool func_ladder_send(entity to, int sf)
24 WriteHeader(MSG_ENTITY, ENT_CLIENT_LADDER);
26 WriteString(MSG_ENTITY, self.classname);
27 WriteByte(MSG_ENTITY, self.skin);
28 WriteCoord(MSG_ENTITY, self.speed);
30 trigger_common_write(self, false);
35 void func_ladder_link()
37 self.SendEntity = func_ladder_send;
38 self.SendFlags = 0xFFFFFF;
39 //self.model = "null";
42 void func_ladder_init()
44 self.touch = func_ladder_touch;
50 spawnfunc(func_ladder)
63 void func_ladder_remove(entity this)
65 if(this.classname) { strunzone(this.classname); }
66 this.classname = string_null;
69 NET_HANDLE(ENT_CLIENT_LADDER, bool isnew)
71 self.classname = strzone(ReadString());
72 self.skin = ReadByte();
73 self.speed = ReadCoord();
75 trigger_common_read(false);
77 self.solid = SOLID_TRIGGER;
78 self.move_touch = func_ladder_touch;
79 self.drawmask = MASK_NORMAL;
80 self.move_time = time;
81 self.entremove = func_ladder_remove;