Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions addons/isr/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ GVAR(menuStack) = [];
}
] call CBA_fnc_addSetting;

[
QGVAR(enableISR),
"LIST",
LLSTRING(Setting_enableISR),
"ARC - ISR",
[[LLSTRING(enabled),LLSTRING(disabled),LLSTRING(uavOnly)],[0,1,2],0],
1
] call CBA_fnc_addSetting;

_fnc_numpad = {
params ["_line"];
switch (_line) do {
Expand Down
2 changes: 2 additions & 0 deletions addons/isr/functions/fnc_isISR.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ if (_control#0 == ACE_player && _control#1 != "") exitWith { true };
private _currentVehicle = vehicle ACE_player;
if (_currentVehicle isEqualTo ACE_player) exitWith {false};

if !([true, false, (unitIsUAV _currentVehicle)] select GVAR(enableISR)) exitWith {};

if (cameraView != "GUNNER") exitWith {false};

private _vehConfig = configOf _currentVehicle;
Expand Down
12 changes: 12 additions & 0 deletions addons/isr/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,17 @@
<Spanish>Distancia Máx Marcadores</Spanish>
<Russian>Макс Дистанция Маркера</Russian>
</Key>
<Key ID="STR_ARC_ISR_Setting_enableISR">
<English>Enable ISR Menu</English>
</Key>
<Key ID="STR_ARC_ISR_Enabled">
<English>Enabled</English>
</Key>
<Key ID="STR_ARC_ISR_Disabled">
<English>Disabled</English>
</Key>
<Key ID="STR_ARC_ISR_uavOnly">
<English>UAV Only</English>
</Key>
</Package>
</Project>