Skip to content

Commit

Permalink
RF Compatibility (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-MF authored Dec 31, 2024
1 parent b9ac492 commit 306e074
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 0 deletions.
1 change: 1 addition & 0 deletions addons/compat_rf/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x\tacgt\addons\compat_rf
19 changes: 19 additions & 0 deletions addons/compat_rf/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -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);
};
};
};
10 changes: 10 additions & 0 deletions addons/compat_rf/CfgWeapons.hpp
Original file line number Diff line number Diff line change
@@ -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
};
};
};
};
5 changes: 5 additions & 0 deletions addons/compat_rf/README.md
Original file line number Diff line number Diff line change
@@ -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)
23 changes: 23 additions & 0 deletions addons/compat_rf/config.cpp
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 4 additions & 0 deletions addons/compat_rf/script_component.hpp
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 306e074

Please sign in to comment.