Skip to content

Commit 8aaff99

Browse files
committed
v1.1.3
1 parent 7bcb9d5 commit 8aaff99

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

@AIO_SPPack/addons/AIO_AIMENU.pbo

474 Bytes
Binary file not shown.

@AIO_SPPack/addons/AIO_AIMENU/functions/driver/fn_helicopterMechanics.sqf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@
141141
_veh setVariable ["AIO_pitch", _desiredPitch];
142142
};
143143

144+
145+
_height = _veh getVariable ["AIO_height", 0];
146+
147+
if (_height < 15 && _speed < 15) then {_veh action ["LandGear", _veh]};
148+
144149
if (_veh == AIO_vehiclePlayer) then {
145150
_disp = uiNamespace getVariable ['AIO_helicopter_UI', displayNull];
146151
(_disp displayCtrl 1301) ctrlSetText str floor(3.6*_speed);
@@ -159,7 +164,7 @@
159164
(_disp displayCtrl 1306) ctrlSetText str floor(_desiredBank);
160165
(_disp displayCtrl 1305) ctrlSetText "0";
161166
};
162-
(_disp displayCtrl 1300) ctrlSetText str floor (_veh getVariable ["AIO_height", 0]);
167+
(_disp displayCtrl 1300) ctrlSetText str floor _height;
163168
};
164169
} else {
165170
_veh setVariable ["AIO_lastVelocity", velocity _veh];

@AIO_SPPack/addons/AIO_AIMENU/functions/unitCommands/tasking/fn_unitTasking.sqf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ waitUntil {
169169
};
170170
} else {
171171
[_unit] call AIO_fnc_cancelAllTasks;
172+
if (_task == 4 && {isPlayer ([_unit,0,1] call AIO_fnc_getTask)}) then {
173+
["AIO_medicIcon", "onEachFrame"] call BIS_fnc_removeStackedEventHandler;
174+
};
172175
};
173176
} forEach AIO_taskedUnits;};
174177
(count AIO_taskedUnits == 0)

@AIO_SPPack/addons/AIO_AIMENU/functions/unitCommands/tasking/tasks/fn_task_heal.sqf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ if (!alive _target || {time > _wait || {(_target getVariable ["AIO_medic", objNu
2020
[_unit, _target, false] call AIO_fnc_desync;
2121
_target forceSpeed -1;
2222
_target setVariable ["AIO_medic", objNull];
23+
if (isPlayer _target) then {["AIO_medicIcon", "onEachFrame"] call BIS_fnc_removeStackedEventHandler;};
2324
};
2425
[_unit, 0, 0] call AIO_fnc_setTask;
2526
};
@@ -135,6 +136,7 @@ if (_distance > _bounds) then {
135136
_target enableAI "MOVE";
136137
[_unit, _target, false] call AIO_fnc_desync;
137138
[_unit, 0, 0] call AIO_fnc_setTask;
139+
if (isPlayer _target) then {["AIO_medicIcon", "onEachFrame"] call BIS_fnc_removeStackedEventHandler;};
138140
};
139141

140142
_dir = (getPosASL _target) vectorDiff (getPosASL _unit);
@@ -173,9 +175,7 @@ if (_distance > _bounds) then {
173175
_unit enableAI "PATH";
174176
_unit enableAI "MOVE";
175177
[_unit, _target, false] call AIO_fnc_desync;
176-
if (isPlayer _target) then {
177-
["AIO_medicIcon", "onEachFrame"] call BIS_fnc_removeStackedEventHandler;
178-
};
178+
if (isPlayer _target) then {["AIO_medicIcon", "onEachFrame"] call BIS_fnc_removeStackedEventHandler;};
179179
} else {
180180
_unit playMoveNow _move;
181181
};

@AIO_SPPack/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.1.2-Beta
1+
v1.1.3-Beta

0 commit comments

Comments
 (0)