From 22873ee45aaf60081dde417e4ca7959c9699db39 Mon Sep 17 00:00:00 2001 From: Joecuronium <83242905+Joecuronium@users.noreply.github.com> Date: Tue, 14 Jun 2022 21:48:54 +0200 Subject: [PATCH] [Improve Gearscript] Resupply crates now have space to drop stuff (#109) * Resupply crates now have space to drop stuff Gearscript automatically adds 25% more load capacity over the assigned Gear * Cleanup Added Comments Added fix for edgecase Zeusmodule (goes together with #110) --- components/gearScript/fn_applyLoadout.sqf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/gearScript/fn_applyLoadout.sqf b/components/gearScript/fn_applyLoadout.sqf index 32e562e8..aeefa9b6 100644 --- a/components/gearScript/fn_applyLoadout.sqf +++ b/components/gearScript/fn_applyLoadout.sqf @@ -35,6 +35,13 @@ if (_typeofUnit find "crate_" == 0) exitWith } forEach _crateArray; + //Add Space to drop stuff into the box + private _oldLoad = loadAbs _unit; + + private _newLoad = _oldLoad * 1.25; + + [_unit, _newLoad] remoteExecCall ["setMaxLoad", 2]; + } else {