Skip to content

Commit

Permalink
Interaction - Disable magazine passing to dead and unconscious units (a…
Browse files Browse the repository at this point in the history
…cemod#10091)

* Disable magazine passing to dead units

* Disable for unconscious units as well
  • Loading branch information
johnb432 authored and blake8090 committed Aug 18, 2024
1 parent 65bda0f commit eaf8769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/interaction/functions/fnc_canPassMagazine.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
params ["_player", "_target", "_weapon"];

if (!GVAR(enableMagazinePassing)) exitWith {false};
if (_weapon isEqualTo "") exitWith {false};
if (_weapon isEqualTo "" || {!(_target call EFUNC(common,isAwake))}) exitWith {false};
if (((vehicle _target) != _target) && {(vehicle _target) != (vehicle _player)}) exitWith {false};

private _compatibleMags = [_weapon] call CBA_fnc_compatibleMagazines;
Expand Down

0 comments on commit eaf8769

Please sign in to comment.