mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Only force Animation for FFV Cargo Seats
This commit is contained in:
parent
645e8a63ef
commit
51a8cb7974
@ -64,7 +64,7 @@ class CfgMovesMaleSdr: CfgMovesBasic {
|
||||
class ACE_HandcuffedFFV: ACE_AmovPercMstpScapWnonDnon {
|
||||
file = "\A3\cargoposes_F_heli\anim\passenger_flatground_3idleunarmed.rtm";
|
||||
actions = "ACE_CivilHandCuffedFFVActions";
|
||||
ConnectTo[] = {"ACE_AmovPercMstpScapWnonDnon",0.1};
|
||||
ConnectTo[] = {};
|
||||
};
|
||||
|
||||
|
||||
|
@ -67,20 +67,15 @@ if (_state) then {
|
||||
};
|
||||
} else {
|
||||
|
||||
// _turretPath = [];
|
||||
// {
|
||||
// _x params ["_xUnit", "", "", "_xTurretPath"];
|
||||
// if (_unit == _xUnit) exitWith {_turretPath = _xTurretPath};
|
||||
// } forEach (fullCrew (vehicle _unit));
|
||||
// TRACE_1("turret Path",_turretPath);
|
||||
// if (_turretPath isEqualTo []) exitWith {};
|
||||
// _turretConfig = [(configFile >> "CfgVehicles" >> (typeOf (vehicle _unit))), _turretPath] call EFUNC(common,getTurretConfigPath);
|
||||
// _gunnerAction = getText (_turretConfig >> "gunnerAction");
|
||||
// TRACE_1("reseting to",_gunnerAction);
|
||||
// [_unit, "ACE_HandcuffedFFV", 2] call EFUNC(common,doAnimation);
|
||||
// [_unit, "ACE_AmovPercMstpScapWnonDnon", 1] call EFUNC(common,doAnimation);
|
||||
|
||||
_turretPath = [];
|
||||
{
|
||||
_x params ["_xUnit", "", "", "_xTurretPath"];
|
||||
if (_unit == _xUnit) exitWith {_turretPath = _xTurretPath};
|
||||
} forEach (fullCrew (vehicle _unit));
|
||||
TRACE_1("turret Path",_turretPath);
|
||||
if (_turretPath isEqualTo []) exitWith {};
|
||||
|
||||
TRACE_1("Handcuff (FFV) animation interrupted",_newAnimation);
|
||||
[_unit, "ACE_HandcuffedFFV", 2] call EFUNC(common,doAnimation);
|
||||
[_unit, "ACE_HandcuffedFFV", 1] call EFUNC(common,doAnimation);
|
||||
};
|
||||
|
@ -31,5 +31,16 @@ _target assignAsCargo _vehicle;
|
||||
_cargoIndex = _vehicle getCargoIndex _target;
|
||||
_target setVariable [QGVAR(CargoIndex), _cargoIndex, true];
|
||||
|
||||
//Check if is a FFV turret:
|
||||
_turretPath = [];
|
||||
{
|
||||
_x params ["_xUnit", "", "", "_xTurretPath"];
|
||||
if (_target == _xUnit) exitWith {_turretPath = _xTurretPath};
|
||||
} forEach (fullCrew (vehicle _target));
|
||||
TRACE_1("turret Path",_turretPath);
|
||||
if (_turretPath isEqualTo []) exitWith {};
|
||||
|
||||
TRACE_1("Setting FFV Animation",_newAnimation);
|
||||
|
||||
[_target, "ACE_HandcuffedFFV", 2] call EFUNC(common,doAnimation);
|
||||
[_target, "ACE_HandcuffedFFV", 1] call EFUNC(common,doAnimation);
|
||||
|
Loading…
Reference in New Issue
Block a user