mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Sitting - Fix ACEX Merge (#8577)
This commit is contained in:
parent
285c44bf15
commit
b7f9aee2d7
@ -25,7 +25,7 @@ if (_seat isEqualType objNull) then {
|
||||
private _configFile = configFile >> "CfgVehicles" >> _type;
|
||||
|
||||
// Exit if sitting disabled or the object is not specified as a seat
|
||||
if (!XGVAR(enable) || {getNumber (_configFile >> QGVAR(canSit)) != 1}) exitWith {};
|
||||
if (!XGVAR(enable) || {getNumber (_configFile >> QXGVAR(canSit)) != 1}) exitWith {};
|
||||
|
||||
// Exit if class already initialized
|
||||
if (_type in GVAR(initializedClasses)) exitWith {};
|
||||
@ -33,8 +33,8 @@ GVAR(initializedClasses) pushBack _type;
|
||||
|
||||
TRACE_1("Adding Sit Action",_type);
|
||||
|
||||
private _sitPosition = getArray (_configFile >> QGVAR(sitPosition));
|
||||
private _interactPosition = getArray (_configFile >> QGVAR(interactPosition));
|
||||
private _sitPosition = getArray (_configFile >> QXGVAR(sitPosition));
|
||||
private _interactPosition = getArray (_configFile >> QXGVAR(interactPosition));
|
||||
|
||||
if (count _sitPosition != count _interactPosition) exitWith {
|
||||
WARNING_1("Invalid sitting configuration of %1!",_type);
|
||||
|
@ -38,8 +38,8 @@ private _actionID = _player addAction [
|
||||
|
||||
// Read config
|
||||
private _configFile = configFile >> "CfgVehicles" >> typeOf _seat;
|
||||
private _sitDirection = (getDir _seat) + (_seat getVariable [QGVAR(sitDirection), getNumber (_configFile >> QGVAR(sitDirection))]);
|
||||
private _sitPositionAll = _seat getVariable [QGVAR(sitPosition), getArray (_configFile >> QGVAR(sitPosition))];
|
||||
private _sitDirection = (getDir _seat) + (_seat getVariable [QXGVAR(sitDirection), getNumber (_configFile >> QXGVAR(sitDirection))]);
|
||||
private _sitPositionAll = _seat getVariable [QXGVAR(sitPosition), getArray (_configFile >> QXGVAR(sitPosition))];
|
||||
private _multiSitting = (_sitPositionAll select 0) isEqualType [];
|
||||
|
||||
private _sitPosition = _sitPositionAll;
|
||||
|
Loading…
Reference in New Issue
Block a user