Makes it possible to play CA/FT/LMS with unlimited ammo.
MUTATOR_HOOKFUNCTION(ca, SetStartItems)
{
start_items &= ~(IT_UNLIMITED_AMMO | IT_UNLIMITED_SUPERWEAPONS);
+ if(!cvar("g_use_ammunition"))
+ start_items |= IT_UNLIMITED_AMMO;
+
start_health = warmup_start_health = cvar("g_ca_start_health");
start_armorvalue = warmup_start_armorvalue = cvar("g_ca_start_armor");
start_ammo_shells = warmup_start_ammo_shells = cvar("g_ca_start_ammo_shells");
MUTATOR_HOOKFUNCTION(ft, SetStartItems)
{
start_items &= ~(IT_UNLIMITED_AMMO | IT_UNLIMITED_SUPERWEAPONS);
+ if(!cvar("g_use_ammunition"))
+ start_items |= IT_UNLIMITED_AMMO;
+
start_health = warmup_start_health = cvar("g_ft_start_health");
start_armorvalue = warmup_start_armorvalue = cvar("g_ft_start_armor");
start_ammo_shells = warmup_start_ammo_shells = cvar("g_ft_start_ammo_shells");
MUTATOR_HOOKFUNCTION(lms, SetStartItems)
{
start_items &= ~(IT_UNLIMITED_AMMO | IT_UNLIMITED_SUPERWEAPONS);
+ if(!cvar("g_use_ammunition"))
+ start_items |= IT_UNLIMITED_AMMO;
+
start_health = warmup_start_health = cvar("g_lms_start_health");
start_armorvalue = warmup_start_armorvalue = cvar("g_lms_start_armor");
start_ammo_shells = warmup_start_ammo_shells = cvar("g_lms_start_ammo_shells");