FOR_EACH_PLAYER(tail)
{
Send_CSQC_Centerprint_Generic(tail, CPID_KH_MSG, "The generator is under attack!", 0, 0);
- gendmg += damage;
}
self.health -= damage;
else if(cphase_updates == 6)
{
Announce("begin");
- oldrespawncvar = cvar("g_td_respawn_delay");
combat_phase_begin();
}
current_phase = PHASE_BUILD;
- cvar_set("g_td_respawn_delay", ftos(oldrespawncvar));
-
for(head = world;(head = find(head, classname, "td_generator")); )
{
if(head.health <= 5 && head.max_health > 10)
Send_CSQC_Centerprint_Generic(head, CPID_KH_MSG, strcat(buildmsg, healmsg, countmsg, startmsg), 5, 0);
}
-
- gendmg = 0;
FOR_EACH_MONSTER(head)
{
self.spawnshieldtime = time + autocvar_g_td_monsters_spawnshield_time;
- self.lastcheck = time;
-
self.drop_size = self.health * 0.05;
if(self.drop_size < 1) self.drop_size = 1;
}
if(self.classname != STR_PLAYER || self.health <= 0)
{
- sprint(self, "Can't spawn turrets while spectating/dead.\n");
+ sprint(self, "Can't spawn turrets while spectating/dead\n");
return TRUE;
}
if(self.turret_cnt >= max_turrets)
{
- sprint(self, sprintf("Can't spawn more than %d turrets.\n", max_turrets));
+ sprint(self, strcat("Can't spawn more than ", ftos(max_turrets), " turrets\n"));
return TRUE;
}
switch(argv(1))
return TRUE;
}
}
- sprint(self, sprintf("You do not have enough fuel to spawn a %s turret.\n", argv(1)));
+ sprint(self, strcat("You do not have enough fuel to spawn a ", argv(1), " turret\n"));
return TRUE;
}
if(cmd_name == "buffturret")