Skip to content

Commit

Permalink
[Improve Gearscript] Resupply crates now have space to drop stuff (#109)
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
Joecuronium authored Jun 14, 2022
1 parent f9cb440 commit 22873ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/gearScript/fn_applyLoadout.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 22873ee

Please sign in to comment.