set g_td_turret_mlrs_cost 80
set g_td_turret_walker_cost 100
set g_td_tower_buff_cost 70
+set g_td_turret_upgrade_cost 100
float autocvar_g_td_monsters_skill_start;
float autocvar_g_td_monsters_skill_increment;
float autocvar_g_td_monsters_spawnshield_time;
+float autocvar_g_td_turret_upgrade_cost;
float autocvar_g_za_monster_count;
float autocvar_g_monsters;
float autocvar_g_monsters_max;
sprint(self, "You need to aim at your turret to upgrade it\n");
return TRUE;
}
- if(self.ammo_fuel < 100)
+ if(self.ammo_fuel < autocvar_g_td_turret_upgrade_cost)
{
- sprint(self, "You need 100 fuel to increase this turret's power\n");
+ sprint(self, strcat("You need ", ftos(autocvar_g_td_turret_upgrade_cost), " fuel to increase this turret's power\n"));
return TRUE;
}
if(trace_ent.turret_buff >= 3)
return TRUE;
}
- self.ammo_fuel -= 100;
+ self.ammo_fuel -= autocvar_g_td_turret_upgrade_cost;
trace_ent.SendFlags |= TNSF_STATUS;
buffturret(trace_ent, 1.2);
sprint(self, "Turret power increased by 20%!\n");