mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Revert changes, to avoid merge conflicts
This commit is contained in:
parent
a6b75ecb92
commit
56af6f3ceb
@ -33,18 +33,11 @@ if (_configEnabled && {GVAR(ammoHandling) == 2}) then {
|
||||
_vehicle addEventHandler ["GetIn", LINKFUNC(ai_handleGetIn)]; // handle AI getting inside weapon with no ammo
|
||||
};
|
||||
|
||||
if (_configEnabled) then {
|
||||
TRACE_2("",local _vehicle,_vehicle turretLocal [0]);
|
||||
if (_configEnabled && {_vehicle turretLocal [0]}) then { // if turret is local to us, then handle mags/weapon
|
||||
[{
|
||||
params ["_vehicle"];
|
||||
TRACE_2("",local _vehicle,_vehicle turretLocal [0]);
|
||||
|
||||
if (!alive _vehicle) exitWith { TRACE_1("dead/deleted",_vehicle); };
|
||||
|
||||
// If turret is local, handle mags/weapon
|
||||
if !(_vehicle turretLocal [0]) exitWith {
|
||||
TRACE_1("turret not local",_vehicle);
|
||||
};
|
||||
|
||||
// Assembly mode: [0=disabled, 1=enabled, 2=enabled&unload, 3=default]
|
||||
private _assemblyModeIndex = _vehicle getVariable [QGVAR(assemblyMode), 3];
|
||||
private _emptyWeapon = _assemblyModeIndex isEqualTo 2;
|
||||
|
Loading…
Reference in New Issue
Block a user