mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Enabled DAGR, Kestrel4500, Laser switching, Mag Repack, Markers, MicroDAGR, NVG Adjusting and Check Ammo while Sitting
This commit is contained in:
parent
254b386805
commit
1eeca28a3d
@ -1,7 +1,7 @@
|
|||||||
["ACE3 Equipment", QGVAR(ATragMXDialogKey), localize LSTRING(ATragMXDialogKey),
|
["ACE3 Equipment", QGVAR(ATragMXDialogKey), localize LSTRING(ATragMXDialogKey),
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
if !([ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||||
if (GVAR(active)) exitWith {
|
if (GVAR(active)) exitWith {
|
||||||
closeDialog 0;
|
closeDialog 0;
|
||||||
false
|
false
|
||||||
@ -21,7 +21,7 @@ _conditonCode = {
|
|||||||
};
|
};
|
||||||
_toggleCode = {
|
_toggleCode = {
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {};
|
if !([ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {};
|
||||||
if (GVAR(active)) exitWith {
|
if (GVAR(active)) exitWith {
|
||||||
closeDialog 0;
|
closeDialog 0;
|
||||||
};
|
};
|
||||||
|
@ -10,7 +10,7 @@ class CfgVehicles {
|
|||||||
showDisabled = 0;
|
showDisabled = 0;
|
||||||
priority = 0.1;
|
priority = 0.1;
|
||||||
icon = QUOTE(PATHTOF(UI\DAGR_Icon.paa));
|
icon = QUOTE(PATHTOF(UI\DAGR_Icon.paa));
|
||||||
exceptions[] = {"isNotInside"};
|
exceptions[] = {"isNotInside", "isNotSitting"};
|
||||||
class GVAR(toggle) {
|
class GVAR(toggle) {
|
||||||
displayName = "Toggle DAGR";
|
displayName = "Toggle DAGR";
|
||||||
condition = QUOTE([ARR_2(_player,'ACE_DAGR')] call EFUNC(common,hasItem));
|
condition = QUOTE([ARR_2(_player,'ACE_DAGR')] call EFUNC(common,hasItem));
|
||||||
@ -18,7 +18,7 @@ class CfgVehicles {
|
|||||||
showDisabled = 0;
|
showDisabled = 0;
|
||||||
priority = 0.2;
|
priority = 0.2;
|
||||||
icon = QUOTE(PATHTOF(UI\DAGR_Icon.paa));
|
icon = QUOTE(PATHTOF(UI\DAGR_Icon.paa));
|
||||||
exceptions[] = {"notOnMap", "isNotInside"};
|
exceptions[] = {"notOnMap", "isNotInside", "isNotSitting"};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
["ACE3 Equipment", QGVAR(MenuKey), "Configure DAGR",
|
["ACE3 Equipment", QGVAR(MenuKey), "Configure DAGR",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
if !([ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||||
if !([ACE_player, "ACE_DAGR"] call EFUNC(common,hasItem)) exitWith {false};
|
if !([ACE_player, "ACE_DAGR"] call EFUNC(common,hasItem)) exitWith {false};
|
||||||
|
|
||||||
// Statement
|
// Statement
|
||||||
@ -19,7 +19,7 @@
|
|||||||
["ACE3 Equipment", QGVAR(ToggleKey), "Toggle DAGR",
|
["ACE3 Equipment", QGVAR(ToggleKey), "Toggle DAGR",
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
if !([ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||||
if !([ACE_player, "ACE_DAGR"] call EFUNC(common,hasItem)) exitWith {false};
|
if !([ACE_player, "ACE_DAGR"] call EFUNC(common,hasItem)) exitWith {false};
|
||||||
|
|
||||||
// Statement
|
// Statement
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
["ACE3 Equipment", QGVAR(KestrelDialogKey), localize LSTRING(KestrelDialogKey),
|
["ACE3 Equipment", QGVAR(KestrelDialogKey), localize LSTRING(KestrelDialogKey),
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
if !([ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||||
if (GVAR(Kestrel4500)) exitWith {
|
if (GVAR(Kestrel4500)) exitWith {
|
||||||
closeDialog 0;
|
closeDialog 0;
|
||||||
false
|
false
|
||||||
@ -16,7 +16,7 @@
|
|||||||
["ACE3 Equipment", QGVAR(DisplayKestrelKey), localize LSTRING(DisplayKestrelKey),
|
["ACE3 Equipment", QGVAR(DisplayKestrelKey), localize LSTRING(DisplayKestrelKey),
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
if !([ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||||
|
|
||||||
// Statement
|
// Statement
|
||||||
[] call FUNC(displayKestrel);
|
[] call FUNC(displayKestrel);
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
["ACE3 Weapons", QGVAR(switchLaserLightMode), localize LSTRING(switchLaserLight),
|
["ACE3 Weapons", QGVAR(switchLaserLightMode), localize LSTRING(switchLaserLight),
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
if !([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
if !([ACE_player, objNull, ["isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
if !([ACE_player] call EFUNC(common,canUseWeapon)) exitWith {false};
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ EXPLODE_2_PVT(_args,_magazineClassname,_lastAmmoCount);
|
|||||||
_fullMagazineCount = getNumber (configfile >> "CfgMagazines" >> _magazineClassname >> "count");
|
_fullMagazineCount = getNumber (configfile >> "CfgMagazines" >> _magazineClassname >> "count");
|
||||||
|
|
||||||
//Don't show anything if player can't interact:
|
//Don't show anything if player can't interact:
|
||||||
if (!([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith))) exitWith {};
|
if (!([ACE_player, objNull, ["isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith))) exitWith {};
|
||||||
|
|
||||||
_structuredOutputText = if (_errorCode == 0) then {
|
_structuredOutputText = if (_errorCode == 0) then {
|
||||||
format ["<t align='center'>%1</t><br/>", (localize LSTRING(RepackComplete))];
|
format ["<t align='center'>%1</t><br/>", (localize LSTRING(RepackComplete))];
|
||||||
|
@ -31,7 +31,7 @@ _fullMagazineCount = getNumber (_magazineCfg >> "count");
|
|||||||
_isBelt = (isNumber (_magazineCfg >> "ACE_isBelt")) && {(getNumber (_magazineCfg >> "ACE_isBelt")) == 1};
|
_isBelt = (isNumber (_magazineCfg >> "ACE_isBelt")) && {(getNumber (_magazineCfg >> "ACE_isBelt")) == 1};
|
||||||
|
|
||||||
//Check canInteractWith:
|
//Check canInteractWith:
|
||||||
if (!([_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith))) exitWith {};
|
if (!([_player, objNull, ["isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith))) exitWith {};
|
||||||
|
|
||||||
[_player] call EFUNC(common,goKneeling);
|
[_player] call EFUNC(common,goKneeling);
|
||||||
|
|
||||||
@ -69,5 +69,5 @@ _totalTime,
|
|||||||
{_this call FUNC(magazineRepackFinish)},
|
{_this call FUNC(magazineRepackFinish)},
|
||||||
(localize LSTRING(RepackingMagazine)),
|
(localize LSTRING(RepackingMagazine)),
|
||||||
{_this call FUNC(magazineRepackProgress)},
|
{_this call FUNC(magazineRepackProgress)},
|
||||||
["isNotInside"]
|
["isNotInside", "isNotSitting"]
|
||||||
] call EFUNC(common,progressBar);
|
] call EFUNC(common,progressBar);
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
PARAMS_1(_display);
|
PARAMS_1(_display);
|
||||||
|
|
||||||
//Can't place markers when can't interact
|
//Can't place markers when can't interact
|
||||||
if (!([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith))) exitWith {
|
if (!([ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith))) exitWith {
|
||||||
_display closeDisplay 2; //emulate "Cancel" button
|
_display closeDisplay 2; //emulate "Cancel" button
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ _conditonCode = {
|
|||||||
("ACE_microDAGR" in (items ACE_player))
|
("ACE_microDAGR" in (items ACE_player))
|
||||||
};
|
};
|
||||||
_toggleCode = {
|
_toggleCode = {
|
||||||
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {};
|
if !([ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {};
|
||||||
[] call FUNC(openDisplay); //toggle display mode
|
[] call FUNC(openDisplay); //toggle display mode
|
||||||
};
|
};
|
||||||
_closeCode = {
|
_closeCode = {
|
||||||
|
@ -26,11 +26,11 @@ case (DISPLAY_MODE_CLOSED): {_returnValue = true}; //Can always close
|
|||||||
case (DISPLAY_MODE_HIDDEN): {_returnValue = true}; //Can always hide
|
case (DISPLAY_MODE_HIDDEN): {_returnValue = true}; //Can always hide
|
||||||
|
|
||||||
case (DISPLAY_MODE_DIALOG): {
|
case (DISPLAY_MODE_DIALOG): {
|
||||||
_returnValue = ("ACE_microDAGR" in (items ACE_player)) && {[ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)};
|
_returnValue = ("ACE_microDAGR" in (items ACE_player)) && {[ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)};
|
||||||
};
|
};
|
||||||
case (DISPLAY_MODE_DISPLAY): {
|
case (DISPLAY_MODE_DISPLAY): {
|
||||||
//Can't have minimap up while zoomed in
|
//Can't have minimap up while zoomed in
|
||||||
_returnValue = (cameraview != "GUNNER") && {"ACE_microDAGR" in (items ACE_player)} && {[ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)};
|
_returnValue = (cameraview != "GUNNER") && {"ACE_microDAGR" in (items ACE_player)} && {[ACE_player, objNull, ["notOnMap", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ GVAR(ppEffectMuzzleFlash) ppEffectCommit 0;
|
|||||||
["ACE3 Equipment", QGVAR(IncreaseNVGBrightness), localize LSTRING(IncreaseNVGBrightness),
|
["ACE3 Equipment", QGVAR(IncreaseNVGBrightness), localize LSTRING(IncreaseNVGBrightness),
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
if !([ACE_player, objNull, ["isNotEscorting", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
if !([ACE_player, objNull, ["isNotEscorting", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if ((currentVisionMode ACE_player != 1)) exitWith {false};
|
if ((currentVisionMode ACE_player != 1)) exitWith {false};
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ GVAR(ppEffectMuzzleFlash) ppEffectCommit 0;
|
|||||||
["ACE3 Equipment", QGVAR(DecreaseNVGBrightness), localize LSTRING(DecreaseNVGBrightness),
|
["ACE3 Equipment", QGVAR(DecreaseNVGBrightness), localize LSTRING(DecreaseNVGBrightness),
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
if !([ACE_player, objNull, ["isNotEscorting", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
if !([ACE_player, objNull, ["isNotEscorting", "isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if ((currentVisionMode ACE_player != 1)) exitWith {false};
|
if ((currentVisionMode ACE_player != 1)) exitWith {false};
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ if !(hasInterface) exitWith {};
|
|||||||
["ACE3 Weapons", QGVAR(checkAmmo), localize LSTRING(checkAmmo),
|
["ACE3 Weapons", QGVAR(checkAmmo), localize LSTRING(checkAmmo),
|
||||||
{
|
{
|
||||||
// Conditions: canInteract
|
// Conditions: canInteract
|
||||||
if !([ACE_player, (vehicle ACE_player), ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
if !([ACE_player, (vehicle ACE_player), ["isNotInside", "isNotSitting"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||||
// Conditions: specific
|
// Conditions: specific
|
||||||
if !([ACE_player] call EFUNC(common,canUseWeapon) || {(vehicle ACE_player) isKindOf "StaticWeapon"}) exitWith {false};
|
if !([ACE_player] call EFUNC(common,canUseWeapon) || {(vehicle ACE_player) isKindOf "StaticWeapon"}) exitWith {false};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user