diff --git a/Olympus.Stratis/functions/fn_initArsenalCrate.sqf b/Olympus.Stratis/functions/fn_initArsenalCrate.sqf index fb1ec39..69ee7fc 100644 --- a/Olympus.Stratis/functions/fn_initArsenalCrate.sqf +++ b/Olympus.Stratis/functions/fn_initArsenalCrate.sqf @@ -97,6 +97,7 @@ private _launcher = [ "CUP_PG7VR_M", "CUP_PG7VM_M", "launch_MRAWS_green_rail_F", + "launch_MRAWS_green_F", "launch_NLAW_F", "launch_RPG32_green_F", "MRAWS_HEAT_F", diff --git a/Olympus.Stratis/functions/fn_resetDamagedObjects.sqf b/Olympus.Stratis/functions/fn_resetDamagedObjects.sqf index cfe4cc3..98bdfe0 100644 --- a/Olympus.Stratis/functions/fn_resetDamagedObjects.sqf +++ b/Olympus.Stratis/functions/fn_resetDamagedObjects.sqf @@ -18,7 +18,7 @@ params ["_controller", "_targetPads", "_targetClasses"]; -if (isServer) exitWith { +if (isServer) then { { private _vehicle = createVehicle [_targetClasses select _forEachIndex, _x, [], 0, "CAN_COLLIDE"]; _vehicle setDir (getDir _x); @@ -30,39 +30,41 @@ if (isServer) exitWith { } forEach _targetPads; }; -private _action = [ - QGVAR(resetDamageAction), - "Reset targets", - "a3\missions_f_exp\data\img\lobby\ui_campaign_lobby_background_tablet_button_respawn02_ca.paa", - { - (_this select 2) params ["_targetPads", "_targetClasses"]; +if (hasInterface) then { + private _action = [ + QGVAR(resetDamageAction), + "Reset targets", + "a3\missions_f_exp\data\img\lobby\ui_campaign_lobby_background_tablet_button_respawn02_ca.paa", { - private _type = _targetClasses select _forEachIndex; - private _nearestObjects = nearestObjects [_x, [_type], 5]; - private _target = _nearestObjects select 0; - if (_nearestObjects isEqualTo [] || {damage _target != 0}) then { - deleteVehicle _target; + (_this select 2) params ["_targetPads", "_targetClasses"]; + { + private _type = _targetClasses select _forEachIndex; + private _nearestObjects = nearestObjects [_x, [_type], 5]; + private _target = _nearestObjects select 0; + if (_nearestObjects isEqualTo [] || {damage _target != 0}) then { + deleteVehicle _target; - [ - { - params ["_type", "_position"]; - private _newTarget = createVehicle [_type, _position, [], 0, "CAN_COLLIDE"]; - _newTarget setDir (getDir _position); - _newTarget setVehicleLock "LOCKED"; - _newTarget setVehicleAmmo 0; - clearMagazineCargoGlobal _newTarget; - clearWeaponCargoGlobal _newTarget; - clearItemCargoGlobal _newTarget; - }, - [_type, _x], - 2 - ] call CBA_fnc_waitAndExecute; - }; - } forEach _targetPads; - }, - {true}, - {}, - [_targetPads, _targetClasses] -] call ACEFUNC(interact_menu,createAction); + [ + { + params ["_type", "_position"]; + private _newTarget = createVehicle [_type, _position, [], 0, "CAN_COLLIDE"]; + _newTarget setDir (getDir _position); + _newTarget setVehicleLock "LOCKED"; + _newTarget setVehicleAmmo 0; + clearMagazineCargoGlobal _newTarget; + clearWeaponCargoGlobal _newTarget; + clearItemCargoGlobal _newTarget; + }, + [_type, _x], + 2 + ] call CBA_fnc_waitAndExecute; + }; + } forEach _targetPads; + }, + {true}, + {}, + [_targetPads, _targetClasses] + ] call ACEFUNC(interact_menu,createAction); -[_controller, 0, ["ACE_MainActions"], _action] call ACEFUNC(interact_menu,addActionToObject); + [_controller, 0, ["ACE_MainActions"], _action] call ACEFUNC(interact_menu,addActionToObject); +}; diff --git a/Olympus.Stratis/script_component.hpp b/Olympus.Stratis/script_component.hpp index acdc56f..e66874f 100644 --- a/Olympus.Stratis/script_component.hpp +++ b/Olympus.Stratis/script_component.hpp @@ -4,7 +4,7 @@ // Version #define MAJOR 3 #define MINOR 6 -#define PATCHLVL 0 +#define PATCHLVL 1 // Map #define MAP Stratis diff --git a/README.md b/README.md index 704a886..b0859dc 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@