From b7a912e0d583bac6e4aed67a70045d2924a0aff9 Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Fri, 16 Aug 2019 20:15:34 +0200 Subject: [PATCH] use g_use_ammunition instead of hardcoding unlimited ammo --- qcsrc/common/mutators/mutator/overkill/sv_overkill.qc | 1 - ruleset-overkill.cfg | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/mutators/mutator/overkill/sv_overkill.qc b/qcsrc/common/mutators/mutator/overkill/sv_overkill.qc index 41ba2da62..cb9aea5cc 100644 --- a/qcsrc/common/mutators/mutator/overkill/sv_overkill.qc +++ b/qcsrc/common/mutators/mutator/overkill/sv_overkill.qc @@ -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; } diff --git a/ruleset-overkill.cfg b/ruleset-overkill.cfg index ae9b1017a..27ae48a40 100644 --- a/ruleset-overkill.cfg +++ b/ruleset-overkill.cfg @@ -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 -- 2.39.2