diff --git a/addons/compat_rf/$PBOPREFIX$ b/addons/compat_rf/$PBOPREFIX$ new file mode 100644 index 0000000..1929bc3 --- /dev/null +++ b/addons/compat_rf/$PBOPREFIX$ @@ -0,0 +1 @@ +x\tacgt\addons\compat_rf diff --git a/addons/compat_rf/CfgVehicles.hpp b/addons/compat_rf/CfgVehicles.hpp new file mode 100644 index 0000000..0c5ecb2 --- /dev/null +++ b/addons/compat_rf/CfgVehicles.hpp @@ -0,0 +1,19 @@ +class CfgVehicles { + class Box_NATO_WpsLaunch_F; + class tac_supplies_Launchers: Box_NATO_WpsLaunch_F { + class TransportMagazines { + MACRO_ADDMAGAZINE(PSRL1_AT_RF,12); + MACRO_ADDMAGAZINE(PSRL1_FRAG_RF,12); + MACRO_ADDMAGAZINE(PSRL1_HE_RF,12); + MACRO_ADDMAGAZINE(PSRL1_HEAT_RF,6); + }; + class TransportWeapons { + MACRO_ADDWEAPON(launch_PSRL1_PWS_black_RF,3); + MACRO_ADDWEAPON(launch_PSRL1_PWS_olive_RF,3); + MACRO_ADDWEAPON(launch_PSRL1_PWS_sand_RF,3); + MACRO_ADDWEAPON(launch_PSRL1_black_RF,3); + MACRO_ADDWEAPON(launch_PSRL1_olive_RF,3); + MACRO_ADDWEAPON(launch_PSRL1_sand_RF,3); + }; + }; +}; diff --git a/addons/compat_rf/CfgWeapons.hpp b/addons/compat_rf/CfgWeapons.hpp new file mode 100644 index 0000000..83a4451 --- /dev/null +++ b/addons/compat_rf/CfgWeapons.hpp @@ -0,0 +1,10 @@ +class CfgWeapons { + class launch_PSRL1_base_RF; + class launch_PSRL1_PWS_base_RF: launch_PSRL1_base_RF { + class OpticsModes { + class PWS { + visionMode[] = {"Normal", "NVG"}; // Remove TI + }; + }; + }; +}; diff --git a/addons/compat_rf/README.md b/addons/compat_rf/README.md new file mode 100644 index 0000000..292d287 --- /dev/null +++ b/addons/compat_rf/README.md @@ -0,0 +1,5 @@ +# Compat RF + +- Tweaks and compatibility for Reaction Forces. +- Removes Thermal from the PSRL-1 PWS Optic +- Adds PSRL-1 & Munitions to the Launcher supply box (tacgt_supplies) diff --git a/addons/compat_rf/config.cpp b/addons/compat_rf/config.cpp new file mode 100644 index 0000000..d471087 --- /dev/null +++ b/addons/compat_rf/config.cpp @@ -0,0 +1,23 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + name = COMPONENT_NAME; + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = { + "tacgt_main", + "tacgt_supplies", + "RF_Weapons_Launchers_PSRL1" + }; + skipWhenMissingDependencies = 1; + author = ECSTRING(main,Author); + authors[] = {"Mike"}; + url = ECSTRING(main,URL); + VERSION_CONFIG; + }; +}; + +#include "CfgWeapons.hpp" +#include "CfgVehicles.hpp" diff --git a/addons/compat_rf/script_component.hpp b/addons/compat_rf/script_component.hpp new file mode 100644 index 0000000..8c6f288 --- /dev/null +++ b/addons/compat_rf/script_component.hpp @@ -0,0 +1,4 @@ +#define COMPONENT compat_rf +#define COMPONENT_BEAUTIFIED Compat RF +#include "\x\tacgt\addons\main\script_mod.hpp" +#include "\x\tacgt\addons\main\script_macros.hpp"