mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Interaction - Disable magazine passing to dead and unconscious units (#10091)
* Disable magazine passing to dead units * Disable for unconscious units as well
This commit is contained in:
parent
bfa23f01db
commit
a30afe69b7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user