From 5b99372e1c80382ccafc676f6a97c103a0992d18 Mon Sep 17 00:00:00 2001 From: 3Mydlo3 Date: Wed, 18 Oct 2023 00:15:39 +0200 Subject: [PATCH] Remove FRIES component (#203) --- addons/fries/$PBOPREFIX$ | 1 - addons/fries/CfgEventHandlers.hpp | 10 ---------- addons/fries/README.md | 7 ------- addons/fries/XEH_postInit.sqf | 11 ----------- addons/fries/XEH_preInit.sqf | 6 ------ addons/fries/config.cpp | 19 ------------------- addons/fries/initSettings.sqf | 12 ------------ addons/fries/script_component.hpp | 15 --------------- addons/fries/stringtable.xml | 17 ----------------- 9 files changed, 98 deletions(-) delete mode 100644 addons/fries/$PBOPREFIX$ delete mode 100644 addons/fries/CfgEventHandlers.hpp delete mode 100644 addons/fries/README.md delete mode 100644 addons/fries/XEH_postInit.sqf delete mode 100644 addons/fries/XEH_preInit.sqf delete mode 100644 addons/fries/config.cpp delete mode 100644 addons/fries/initSettings.sqf delete mode 100644 addons/fries/script_component.hpp delete mode 100644 addons/fries/stringtable.xml diff --git a/addons/fries/$PBOPREFIX$ b/addons/fries/$PBOPREFIX$ deleted file mode 100644 index 61a5af74..00000000 --- a/addons/fries/$PBOPREFIX$ +++ /dev/null @@ -1 +0,0 @@ -z\afm\addons\fries \ No newline at end of file diff --git a/addons/fries/CfgEventHandlers.hpp b/addons/fries/CfgEventHandlers.hpp deleted file mode 100644 index a614deb1..00000000 --- a/addons/fries/CfgEventHandlers.hpp +++ /dev/null @@ -1,10 +0,0 @@ -class Extended_PreInit_EventHandlers { - class ADDON { - init = QUOTE(call COMPILE_SCRIPT(XEH_preInit)); - }; -}; -class Extended_PostInit_EventHandlers { - class ADDON { - init = QUOTE(call COMPILE_SCRIPT(XEH_postInit)); - }; -}; diff --git a/addons/fries/README.md b/addons/fries/README.md deleted file mode 100644 index 4fcd83d7..00000000 --- a/addons/fries/README.md +++ /dev/null @@ -1,7 +0,0 @@ -## Fries - -Automatically adds FRIES to supported helicopters if ACE Fastroping is loaded. - -### Authors - -- [veteran29](https://github.com/veteran29) diff --git a/addons/fries/XEH_postInit.sqf b/addons/fries/XEH_postInit.sqf deleted file mode 100644 index 0b07edff..00000000 --- a/addons/fries/XEH_postInit.sqf +++ /dev/null @@ -1,11 +0,0 @@ -#include "script_component.hpp" - -if (is3DEN || !(EGVAR(common,aceFastroping))) exitWith {}; - -if (isServer) then { - ["Helicopter", "init", { - params ["_vehicle"]; - if (!GVAR(autoAdd) || {!isNumber (configOf _vehicle >> QACEGVAR(fastroping,enabled))}) exitWith {}; - _vehicle call ACEFUNC(fastroping,equipFRIES); - }, true, ["ACE_friesBase"], true] call CBA_fnc_addClassEventHandler; -}; diff --git a/addons/fries/XEH_preInit.sqf b/addons/fries/XEH_preInit.sqf deleted file mode 100644 index 1d0ec583..00000000 --- a/addons/fries/XEH_preInit.sqf +++ /dev/null @@ -1,6 +0,0 @@ -#include "script_component.hpp" -ADDON = false; - -#include "initSettings.sqf" - -ADDON = true; diff --git a/addons/fries/config.cpp b/addons/fries/config.cpp deleted file mode 100644 index 7a2e1b3b..00000000 --- a/addons/fries/config.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include "script_component.hpp" - -class CfgPatches { - class ADDON { - name = COMPONENT_NAME; - units[] = {}; - weapons[] = {}; - requiredVersion = REQUIRED_VERSION; - requiredAddons[] = { - "afm_main", - "afm_common" - }; - author = "ArmaForces"; - authors[] = {"veteran29"}; - VERSION_CONFIG; - }; -}; - -#include "CfgEventHandlers.hpp" diff --git a/addons/fries/initSettings.sqf b/addons/fries/initSettings.sqf deleted file mode 100644 index d84a1adc..00000000 --- a/addons/fries/initSettings.sqf +++ /dev/null @@ -1,12 +0,0 @@ -#include "script_component.hpp" - -if (EGVAR(common,aceFastroping)) then { - [ - QGVAR(autoAdd), - "CHECKBOX", - [LSTRING(autoAdd), LSTRING(autoAdd_Description)], - LSTRING(DisplayName), - true, - true - ] call CBA_fnc_addSetting; -}; diff --git a/addons/fries/script_component.hpp b/addons/fries/script_component.hpp deleted file mode 100644 index ff47ef5c..00000000 --- a/addons/fries/script_component.hpp +++ /dev/null @@ -1,15 +0,0 @@ -#define COMPONENT fries -#include "\z\afm\addons\main\script_mod.hpp" - -// #define DEBUG_MODE_FULL -// #define DISABLE_COMPILE_CACHE - -#ifdef DEBUG_ENABLED_FRIES - #define DEBUG_MODE_FULL -#endif - -#ifdef DEBUG_SETTINGS_FRIES - #define DEBUG_SETTINGS DEBUG_SETTINGS_FRIES -#endif - -#include "\z\afm\addons\main\script_macros.hpp" diff --git a/addons/fries/stringtable.xml b/addons/fries/stringtable.xml deleted file mode 100644 index fcf87f6c..00000000 --- a/addons/fries/stringtable.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - ArmaForces - FRIES - ArmaForces - FRIES - - - Auto add FRIES - Auto dodawanie FRIES - - - Automatically add FRIES to helicopters that support them. - Automatycznie dodawaj FRIES do śmigłowców które je wspierają. - - -