Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
James Kingsley committed Mar 5, 2016
1 parent 4d9a429 commit 4ad4c98
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 17 deletions.
Binary file modified Addons/ares_zeusExtensions.pbo
Binary file not shown.
21 changes: 21 additions & 0 deletions Addons/ares_zeusExtensions/scripts/ARC_applyGear.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
"ARCOMM",
"Apply Gear to Unit",
{
_unitUnderCursor = _this select 1;

if (!isNull _unitUnderCursor && isPlayer _unitUnderCursor) then {
missionNamespace setVariable ['Ares_CopyPaste_Dialog_Text', ""];
missionNamespace setVariable ["Ares_CopyPaste_Dialog_Result", ""];
_dialog = createDialog "Ares_CopyPaste_Dialog";
waitUntil {dialog};
waitUntil {!dialog};
_dialogResult = missionNamespace getVariable ["Ares_CopyPaste_Dialog_Result", -1];

if (_dialogResult == 1) then {
_pastedText = missionNamespace getVariable ["Ares_CopyPaste_Dialog_Text", "r"];
[[_pastedText, _unitUnderCursor], "f_fnc_assignGear", _unitUnderCursor, false, true] call BIS_fnc_MP;
};
};
}
] call Ares_fnc_RegisterCustomModule;

This file was deleted.

This file was deleted.

24 changes: 24 additions & 0 deletions Addons/ares_zeusExtensions/scripts/ARC_positionalACRE.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
"ARCOMM",
"Positional ACRE",
{
_options = [
["Status:", ["Enabled", "Disabled"]]
];

_dialogResult = [
"Positional ACRE",
_options
] call Ares_fnc_ShowChooseDialog;

if (count _dialogResult > 0) then {
_bool = switch ( _options select 0 select 1 select (_dialogResult select 0) ) do {
case "Enabled": {true};
case "Disabled": {false};
default {false};
};

[_bool] call acre_api_fnc_setSpectator;
};
}
] call Ares_fnc_RegisterCustomModule;
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ _scripts = [
"ARC_godMode",
"ARC_MTAW_ReturnFire",
"ARC_MTAW_IgnoreCombat",
"ARC_resupplyMagazines",
"ARC_executeCodeUnit",
"ARC_enablePositionalACRE",
"ARC_disablePositionalACRE"
"ARC_positionalACRE",
"ARC_applyGear"
];

{
Expand Down

0 comments on commit 4ad4c98

Please sign in to comment.