Skip to content

Commit

Permalink
Update fnc_doUGL.sqf (#353)
Browse files Browse the repository at this point in the history
More flexible sorting of 40mm rounds. Allows for a very common modification that makes smoke grenades less bouncy. (previously LAMBS Danger would not recognize these 40mm as 40mm)
  • Loading branch information
nk3nny authored Feb 18, 2024
1 parent 418291f commit 1316d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/main/functions/UnitAction/fnc_doUGL.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private _unit = _units findIf {
private _index = _findFlares findIf {
private _ammo = getText (configfile >> "CfgMagazines" >> _x >> "Ammo");
private _flareSimulation = getText (configfile >> "CfgAmmo" >> _ammo >> "simulation");
_flareSimulation isEqualTo _type
(_flareSimulation find _type) isNotEqualTo -1
};

if (_index == -1) exitWith {false};
Expand Down

0 comments on commit 1316d60

Please sign in to comment.