/// spawn.
int autocvar_g_surv_defender_num_random_start_weapons;
+/// \brief How much health does cannon fodder get during spawn.
+int autocvar_g_surv_cannon_fodder_start_health;
+/// \brief How much armor does cannon fodder get during spawn.
+int autocvar_g_surv_cannon_fodder_start_armor;
/// \brief Number of weapons that can be randomly given to cannon fodder during
/// spawn.
int autocvar_g_surv_cannon_fodder_num_random_start_weapons;
}
case SURVIVAL_ROLE_CANNON_FODDER:
{
+ player.health = autocvar_g_surv_cannon_fodder_start_health;
+ player.armorvalue =
+ autocvar_g_surv_cannon_fodder_start_armor;
player.items |= IT_UNLIMITED_AMMO;
break;
}
set g_surv_defender_num_random_start_weapons 0 "Number of weapons that can be randomly given to defenders during spawn"
set g_surv_defender_random_start_weapons "" "Weapons that can be randomly given to defenders during spawn"
+set g_surv_cannon_fodder_start_health 100 "How much health does cannon fodder get during spawn"
+set g_surv_cannon_fodder_start_armor 0 "How much armor does cannon fodder get during spawn"
set g_surv_cannon_fodder_num_random_start_weapons 2 "Number of weapons that can be randomly given to cannon fodder during spawn"
set g_surv_cannon_fodder_random_start_weapons "machinegun mortar electro crylink vortex hagar devastator" "Weapons that can be randomly given to cannon fodder during spawn"