Add g_pickup_ammo/weapons_anyway functionality
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / miscfunctions.qc
index ebb3ee1444a9a660a45e234c5e23ed57ac06717e..c54235d2cbdbc1a8ffe493209a72a4681cda8f5c 100644 (file)
@@ -847,6 +847,8 @@ float g_pickup_healthlarge_anyway;
 float g_pickup_healthmega;
 float g_pickup_healthmega_max;
 float g_pickup_healthmega_anyway;
+float g_pickup_ammo_anyway;
+float g_pickup_weapons_anyway;
 float g_weaponarena;
 float g_weaponarena_random;
 string g_weaponarena_list;
@@ -1293,6 +1295,9 @@ void readlevelcvars(void)
        g_pickup_healthmega_max = cvar("g_pickup_healthmega_max");
        g_pickup_healthmega_anyway = cvar("g_pickup_healthmega_anyway");
 
+       g_pickup_ammo_anyway = cvar("g_pickup_ammo_anyway");
+       g_pickup_weapons_anyway = cvar("g_pickup_weapons_anyway");
+
        g_pinata = cvar("g_pinata");
 
        g_weapon_stay = cvar("g_weapon_stay");