if(ons_roundlost)
{
- entity e;
- for(e = world; (e = find(e, classname, "onslaught_generator")); )
- {
- if(e.health <= 0)
- {
- gen = e;
- break;
- }
- }
+ FOREACH_ENTITY_CLASS("onslaught_generator", it.health <= 0, LAMBDA(
+ gen = it;
+ break;
+ ));
if(!gen)
- ons_roundlost = FALSE; // don't enforce the 3rd person camera if there is no dead generator to show
+ ons_roundlost = false; // don't enforce the 3rd person camera if there is no dead generator to show
}
if(WantEventchase() || (!autocvar_cl_orthoview && ons_roundlost))
{
return;
}
- float reverse = FALSE;
+ float reverse = false;
vector a, b;
makevectors(self.angles);
if(trace_fraction != 1.0)
{
- reverse = TRUE;
+ reverse = true;
if(trace_ent)
if(IS_PLAYER(trace_ent) && !(trace_ent.items & IT_STRENGTH))
- reverse = FALSE;
+ reverse = false;
}
// TODO: fix this... tracing is broken if the floor is thin
a = b - '0 0 32';
traceline(b, a, MOVE_WORLDONLY, self);
if(trace_fraction == 1.0)
- reverse = TRUE;
+ reverse = true;
} */
if(reverse)
if(DEATH_ISWEAPON(frag_deathtype, WEP_VAPORIZER))
frag_damage = 1000; // always gib if it was a vaporizer death
- return FALSE;
+ return false;
}
MUTATOR_HOOKFUNCTION(mutator_instagib, ItemTouch)
if(filename == "")
{
filename = "turrets_dump.cfg";
- tur_config_alsoprint = FALSE;
+ tur_config_alsoprint = false;
}
else if(filename == "-")
{
filename = "turrets_dump.cfg";
- tur_config_alsoprint = TRUE;
+ tur_config_alsoprint = true;
}
tur_config_file = fopen(filename, FILE_WRITE);
actor.tur_shotorg = gettaginfo(actor.tur_head, gettagindex(actor.tur_head, "tag_fire2"));
}
- entity missile = turret_projectile(SND(ROCKET_FIRE), 6, 10, DEATH_TURRET_HELLION.m_id, PROJECTILE_ROCKET, FALSE, FALSE);
+ entity missile = turret_projectile(SND(ROCKET_FIRE), 6, 10, DEATH_TURRET_HELLION.m_id, PROJECTILE_ROCKET, false, false);
te_explosion (missile.origin);
missile.think = turret_hellion_missile_think;
missile.nextthink = time;
actor.tur_head = actor;
weapon_thinkf(actor, weaponentity, WFRAME_FIRE1, WEP_CVAR_PRI(electro, animtime), w_ready);
}
- entity missile = turret_projectile(SND(ROCKET_FIRE), 6, 10, DEATH_TURRET_HK.m_id, PROJECTILE_ROCKET, FALSE, FALSE);
+ entity missile = turret_projectile(SND(ROCKET_FIRE), 6, 10, DEATH_TURRET_HK.m_id, PROJECTILE_ROCKET, false, false);
te_explosion (missile.origin);
missile.think = turret_hk_missile_think;
weapon_thinkf(actor, weaponentity, WFRAME_FIRE1, 0, w_ready);
}
turret_tag_fire_update();
- entity missile = turret_projectile(SND(ROCKET_FIRE), 6, 10, DEATH_TURRET_MLRS.m_id, PROJECTILE_ROCKET, TRUE, TRUE);
+ entity missile = turret_projectile(SND(ROCKET_FIRE), 6, 10, DEATH_TURRET_MLRS.m_id, PROJECTILE_ROCKET, true, true);
missile.nextthink = time + max(actor.tur_impacttime,(actor.shot_radius * 2) / actor.shot_speed);
missile.missile_flags = MIF_SPLASH;
te_explosion (missile.origin);
if(!gameover)
{
entity head, closest_target = world;
- head = WarpZone_FindRadius(self.origin, autocvar_g_vehicles_enter_radius, TRUE);
+ head = WarpZone_FindRadius(self.origin, autocvar_g_vehicles_enter_radius, true);
while(head) // find the closest acceptable target to enter
{