use g_use_ammunition instead of hardcoding unlimited ammo
authorMartin Taibr <taibr.martin@gmail.com>
Fri, 16 Aug 2019 18:15:34 +0000 (20:15 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Fri, 16 Aug 2019 18:15:34 +0000 (20:15 +0200)
qcsrc/common/mutators/mutator/overkill/sv_overkill.qc
ruleset-overkill.cfg

index 41ba2da..cb9aea5 100644 (file)
@@ -274,7 +274,6 @@ MUTATOR_HOOKFUNCTION(ok, SetStartItems, CBC_ORDER_LAST)
        if(WEP_OVERKILL_RPC.weaponstart > 0) { ok_start_items |= WEPSET(OVERKILL_RPC); }
        if(WEP_OVERKILL_HMG.weaponstart > 0) { ok_start_items |= WEPSET(OVERKILL_HMG); }
 
-       start_items |= IT_UNLIMITED_WEAPON_AMMO;
        start_weapons = warmup_start_weapons = ok_start_items;
 }
 
index ae9b101..27ae48a 100644 (file)
@@ -8,9 +8,10 @@ exec physicsOverkill.cfg
 exec randomitems-overkill.cfg
 if_dedicated exec help-overkill.cfg
 
-// general gameplay
 g_overkill 1
 
+g_use_ammunition 0
+
 // temporary workaround since overkill has no bal-wep file and insta also uses the secondary cvar
 g_balance_blaster_secondary_force_zscale 1.2