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 WriteVector(MSG_ENTITY, this.origin);
11 WriteByte(MSG_ENTITY, this.health);
12 WriteByte(MSG_ENTITY, this.max_health);
13 WriteByte(MSG_ENTITY, this.count);
14 WriteByte(MSG_ENTITY, this.team);
19 WriteByte(MSG_ENTITY, this.team);
22 WriteByte(MSG_ENTITY, 0);
24 WriteByte(MSG_ENTITY, ceil((this.health / this.max_health) * 255));