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:
jonpas 2023-08-16 14:16:44 +02:00 committed by GitHub
parent 9abb43ad3a
commit 0cef0ba6e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 38 additions and 11 deletions

View File

@ -32,6 +32,17 @@
}, {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
addMissionEventHandler ["Draw3D", {
if (!(cursorObject isKindOf "Helicopter")) exitWith {};

View File

@ -8,7 +8,7 @@ class CfgPatches {
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_interaction","ace_logistics_rope"};
author = ECSTRING(common,ACETeam);
authors[] = {"KoffeinFlummi", "BaerMitUmlaut", "Pokertour"};
authors[] = {"KoffeinFlummi", "BaerMitUmlaut", "Pokertour", "veteran29"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};

View File

@ -9,3 +9,11 @@ private _category = [LELSTRING(common,categoryUncategorized), LLSTRING(setting_c
{[QGVAR(requireRopeItems), _this] call EFUNC(common,cbaSettings_settingChanged)},
false // needRestart
] 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;

View File

@ -314,5 +314,13 @@
<Turkish>Halatla kaymak için halat gerekli</Turkish>
<Korean>줄이 필요합니다</Korean>
</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>
</Project>

View File

@ -1,8 +1,8 @@
---
layout: wiki
title: Fast-Roping
title: Fastroping
component: fastroping
description: System for adding fast roping capabilities to helicopters.
description: System for adding fastroping capabilities to helicopters.
group: feature
category: realism
parent: wiki
@ -14,10 +14,10 @@ version:
---
## 1. Overview
The fast roping module adds the possibility to do fast roping insertions from helicopters.
The fast roping module adds the possibility to do fastroping insertions from helicopters.
## 2. Usage
If you are sitting in the back of a helicopter that has fast roping capabilities, open your interaction menu to deploy the ropes. Depending on the helicopter and its FRIES (abbr. for Fast Rope Insertion Extraction System) the deployment of the ropes is a two step process:
If you are sitting in the back of a helicopter that has fastroping capabilities, open your interaction menu to deploy the ropes. Depending on the helicopter and its FRIES (abbr. for FastRope Insertion Extraction System) the deployment of the ropes is a two step process:
1. FRIES preparation, usually consisting of opening the helicopters doors and the extension of the hooks (not necessary for some helicopters)
2. Rope deployment

View File

@ -1,7 +1,7 @@
---
layout: wiki
title: Fast Roping Framework
description: Explains the config values and functions used for making a helicopter fast roping capable.
title: Fastroping Framework
description: Explains the config values and functions used for making a helicopter fastroping capable.
group: framework
order: 5
parent: wiki
@ -12,7 +12,7 @@ version:
patch: 0
---
If you want to prepare a helicopter from your addon for fast roping, there's a few ways to do that.
If you want to prepare a helicopter from your addon for fastroping, there's a few ways to do that.
## 1. Using simple rope origin points
@ -37,7 +37,7 @@ You can also use more or less than two rope origins. You can additionally execut
## 2. Using a FRIES
If your helicopter is not fast roping capable by default, you can make it take a FRIES. A FRIES is just a simple model that gets attached to the helicopter with its own rope origin points. ACE3 already includes two FRIES that are used in real life and can be attached to most helicopters.
If your helicopter is not fastroping capable by default, you can make it take a FRIES. A FRIES is just a simple model that gets attached to the helicopter with its own rope origin points. ACE3 already includes two FRIES that are used in real life and can be attached to most helicopters.
To make your helicopter FRIES capable, you need to add the following config entries:
@ -52,10 +52,10 @@ ace_fastroping_ropeOrigins[] = {"ropeOriginLeft", "ropeOriginRight"};
Let us go through each of them:
- `ace_fastroping_enabled = 2` tells ACE that your helicopter is fast roping capabale but needs a FRIES for that.
- `ace_fastroping_enabled = 2` tells ACE that your helicopter is fastroping capabale but needs a FRIES for that.
- `ace_fastroping_friesType` defines the object that will be used as a FRIES on your helicopter
- `ace_fastroping_friesAttachmentPoint` defines the coordinates at which the FRIES will be attached to.
- See 3.3 for more information about `ace_fastroping_onCut` and `ace_fastroping_onPrepare`. Note: These two entries are necessary for fast roping with a FRIES.
- See 3.3 for more information about `ace_fastroping_onCut` and `ace_fastroping_onPrepare`. Note: These two entries are necessary for fastroping with a FRIES.
- `ace_fastroping_ropeOrigins` defines the memory points or coordinates from the FRIES where the ropes will be attached to.
## 2.1 Using one of the given FRIES