1 #include "sv_generator.qh"
3 bool generator_send(entity this, entity to, int sf)
5 WriteHeader(MSG_ENTITY, ENT_CLIENT_GENERATOR);
6 WriteByte(MSG_ENTITY, sf);
9 WriteCoord(MSG_ENTITY, this.origin_x);
10 WriteCoord(MSG_ENTITY, this.origin_y);
11 WriteCoord(MSG_ENTITY, this.origin_z);
13 WriteByte(MSG_ENTITY, this.health);
14 WriteByte(MSG_ENTITY, this.max_health);
15 WriteByte(MSG_ENTITY, this.count);
16 WriteByte(MSG_ENTITY, this.team);
21 WriteByte(MSG_ENTITY, this.team);
24 WriteByte(MSG_ENTITY, 0);
26 WriteByte(MSG_ENTITY, ceil((this.health / this.max_health) * 255));