From 2c887bf513672f53d085f99153c018afda706053 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Tue, 18 Feb 2020 23:13:43 +0700 Subject: [PATCH] Add config entry for `FixDualiesCost` --- config/Acedia.ini | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/config/Acedia.ini b/config/Acedia.ini index 79bcc76..43565dc 100644 --- a/config/Acedia.ini +++ b/config/Acedia.ini @@ -222,4 +222,29 @@ autoEnable=true ; So we add this option. ; Set it to 'false' if you only want to fix ammo printing ; and leave the rest of the bullshit as-is. -allowSellValueIncrease=true \ No newline at end of file +allowSellValueIncrease=true + + +; This feature addressed two inventory issues: +; 1. Players carrying amount of weapons that shouldn't be allowed by the +; weight limit. +; 2. Players carrying two variants of the same gun. +; For example carrying both M32 and camo M32. +; Single and dual version of the same weapon are also considered +; the same gun, so you can't carry both MK23 and dual MK23 or +; dual handcannons and golden handcannon. +[Acedia.FixInventoryAbuse] +autoEnable=true +; How often (in seconds) should we do our inventory validations? +; We shouldn't really worry about performance, but there's also no need to +; do this check too often. +checkInterval=0.25 +; For this fix to properly work, this array must contain an entry for +; every dual weapon in the game (like pistols, with single and dual versions). +; It's made configurable in case of custom dual weapons. +dualiesClasses=(single=class'KFMod.SinglePickup',dual=class'KFMod.DualiesPickup') +dualiesClasses=(single=class'KFMod.Magnum44Pickup',dual=class'KFMod.Dual44MagnumPickup') +dualiesClasses=(single=class'KFMod.MK23Pickup',dual=class'KFMod.DualMK23Pickup') +dualiesClasses=(single=class'KFMod.DeaglePickup',dual=class'KFMod.DualDeaglePickup') +dualiesClasses=(single=class'KFMod.GoldenDeaglePickup',dual=class'KFMod.GoldenDualDeaglePickup') +dualiesClasses=(single=class'KFMod.FlareRevolverPickup',dual=class'KFMod.DualFlareRevolverPickup') \ No newline at end of file