1 #include "controlpoint.qh"
3 bool cpicon_send(entity to, int sf)
5 WriteByte(MSG_ENTITY, ENT_CLIENT_CONTROLPOINT_ICON);
6 WriteByte(MSG_ENTITY, sf);
9 WriteCoord(MSG_ENTITY, self.origin_x);
10 WriteCoord(MSG_ENTITY, self.origin_y);
11 WriteCoord(MSG_ENTITY, self.origin_z);
13 WriteByte(MSG_ENTITY, self.health);
14 WriteByte(MSG_ENTITY, self.max_health);
15 WriteByte(MSG_ENTITY, self.count);
16 WriteByte(MSG_ENTITY, self.team);
17 WriteByte(MSG_ENTITY, self.owner.iscaptured);
22 WriteByte(MSG_ENTITY, self.team);
25 WriteByte(MSG_ENTITY, 0);
27 WriteByte(MSG_ENTITY, ceil((self.health / self.max_health) * 255));
33 void onslaught_controlpoint_icon_link(entity e, void() spawnproc)
35 Net_LinkEntity(e, true, 0, cpicon_send);
37 e.nextthink = time * sys_frametime;