WriteByte(MSG_ENTITY, ceil((self.health / self.tur_health) * 255));
}
- return TRUE;
+ return true;
}
void load_unit_settings(entity ent, string unitname, float is_reload)
setsize(proj, '-0.5 -0.5 -0.5' * _size, '0.5 0.5 0.5' * _size);
proj.owner = self;
proj.realowner = self;
- proj.bot_dodge = TRUE;
+ proj.bot_dodge = true;
proj.bot_dodgerating = self.shot_dmg;
proj.think = turret_projectile_explode;
proj.touch = turret_projectile_touch;
void turret_link()
{
- Net_LinkEntity(self, TRUE, 0, turret_send);
+ Net_LinkEntity(self, true, 0, turret_send);
self.think = turret_think;
self.nextthink = time;
self.tur_head.effects = EF_NODRAW;
if (!self.health)
self.health = 1000;
self.tur_health = max(1, self.health);
- self.bot_attack = TRUE;
- self.monster_attack = TRUE;
+ self.bot_attack = true;
+ self.monster_attack = true;
if (!self.turrcaps_flags)
self.turrcaps_flags = TFL_TURRCAPS_RADIUSDMG | TFL_TURRCAPS_MEDPROJ | TFL_TURRCAPS_PLAYERKILL;