mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fastroping - Add Auto add FRIES setting (#9319)
Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
This commit is contained in:
parent
9abb43ad3a
commit
0cef0ba6e9
@ -32,6 +32,17 @@
|
|||||||
}, {false}] call CBA_fnc_addKeybind;
|
}, {false}] call CBA_fnc_addKeybind;
|
||||||
|
|
||||||
|
|
||||||
|
if (isServer) then {
|
||||||
|
["Helicopter", "init", {
|
||||||
|
if (!GVAR(autoAddFRIES)) exitWith {};
|
||||||
|
params ["_vehicle"];
|
||||||
|
if (isNumber (configOf _vehicle >> QGVAR(enabled)) && {isNil {_vehicle getVariable [QGVAR(FRIES), nil]}}) then {
|
||||||
|
[_vehicle] call FUNC(equipFRIES);
|
||||||
|
};
|
||||||
|
}, true, ["ACE_friesBase"], true] call CBA_fnc_addClassEventHandler;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
#ifdef DRAW_FASTROPE_INFO
|
#ifdef DRAW_FASTROPE_INFO
|
||||||
addMissionEventHandler ["Draw3D", {
|
addMissionEventHandler ["Draw3D", {
|
||||||
if (!(cursorObject isKindOf "Helicopter")) exitWith {};
|
if (!(cursorObject isKindOf "Helicopter")) exitWith {};
|
||||||
|
@ -8,7 +8,7 @@ class CfgPatches {
|
|||||||
requiredVersion = REQUIRED_VERSION;
|
requiredVersion = REQUIRED_VERSION;
|
||||||
requiredAddons[] = {"ace_interaction","ace_logistics_rope"};
|
requiredAddons[] = {"ace_interaction","ace_logistics_rope"};
|
||||||
author = ECSTRING(common,ACETeam);
|
author = ECSTRING(common,ACETeam);
|
||||||
authors[] = {"KoffeinFlummi", "BaerMitUmlaut", "Pokertour"};
|
authors[] = {"KoffeinFlummi", "BaerMitUmlaut", "Pokertour", "veteran29"};
|
||||||
url = ECSTRING(main,URL);
|
url = ECSTRING(main,URL);
|
||||||
VERSION_CONFIG;
|
VERSION_CONFIG;
|
||||||
};
|
};
|
||||||
|
@ -9,3 +9,11 @@ private _category = [LELSTRING(common,categoryUncategorized), LLSTRING(setting_c
|
|||||||
{[QGVAR(requireRopeItems), _this] call EFUNC(common,cbaSettings_settingChanged)},
|
{[QGVAR(requireRopeItems), _this] call EFUNC(common,cbaSettings_settingChanged)},
|
||||||
false // needRestart
|
false // needRestart
|
||||||
] call CBA_fnc_addSetting;
|
] call CBA_fnc_addSetting;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(autoAddFRIES), "CHECKBOX",
|
||||||
|
[LSTRING(setting_autoAddFRIES_displayName), LSTRING(setting_autoAddFRIES_description)],
|
||||||
|
_category,
|
||||||
|
false, // default value
|
||||||
|
true // isGlobal
|
||||||
|
] call CBA_fnc_addSetting;
|
||||||
|
@ -314,5 +314,13 @@
|
|||||||
<Turkish>Halatla kaymak için halat gerekli</Turkish>
|
<Turkish>Halatla kaymak için halat gerekli</Turkish>
|
||||||
<Korean>줄이 필요합니다</Korean>
|
<Korean>줄이 필요합니다</Korean>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Fastroping_setting_autoAddFRIES_displayName">
|
||||||
|
<English>Auto-Equip FRIES</English>
|
||||||
|
<Polish>Automatycznie Zamontuj FRIES</Polish>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Fastroping_setting_autoAddFRIES_description">
|
||||||
|
<English>Automatically add FRIES to helicopters that support them.</English>
|
||||||
|
<Polish>Automatycznie dodawaj FRIES do śmigłowców które je wspierają.</Polish>
|
||||||
|
</Key>
|
||||||
</Package>
|
</Package>
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
layout: wiki
|
layout: wiki
|
||||||
title: Fast-Roping
|
title: Fastroping
|
||||||
component: fastroping
|
component: fastroping
|
||||||
description: System for adding fastroping capabilities to helicopters.
|
description: System for adding fastroping capabilities to helicopters.
|
||||||
group: feature
|
group: feature
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
layout: wiki
|
layout: wiki
|
||||||
title: Fast Roping Framework
|
title: Fastroping Framework
|
||||||
description: Explains the config values and functions used for making a helicopter fastroping capable.
|
description: Explains the config values and functions used for making a helicopter fastroping capable.
|
||||||
group: framework
|
group: framework
|
||||||
order: 5
|
order: 5
|
||||||
|
Loading…
Reference in New Issue
Block a user