1 float generator_send(entity to, float sf)
3 WriteByte(MSG_ENTITY, ENT_CLIENT_GENERATOR);
4 WriteByte(MSG_ENTITY, sf);
7 WriteCoord(MSG_ENTITY, self.origin_x);
8 WriteCoord(MSG_ENTITY, self.origin_y);
9 WriteCoord(MSG_ENTITY, self.origin_z);
11 WriteByte(MSG_ENTITY, self.health);
12 WriteByte(MSG_ENTITY, self.max_health);
13 WriteByte(MSG_ENTITY, self.count);
14 WriteByte(MSG_ENTITY, self.team);
19 WriteByte(MSG_ENTITY, self.team);
22 WriteByte(MSG_ENTITY, 0);
24 WriteByte(MSG_ENTITY, ceil((self.health / self.max_health) * 255));
30 void generator_link(void() spawnproc)
32 Net_LinkEntity(self, TRUE, 0, generator_send);
33 self.think = spawnproc;
34 self.nextthink = time;