Skip to content

Commit

Permalink
Supplies - Move RF to sub config with cup dependency (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson authored Jan 6, 2025
1 parent 6b1ea25 commit 2e9e6ce
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
2 changes: 0 additions & 2 deletions addons/compat_rf/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class CfgPatches {
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {
"tacgt_main",
"tacgt_supplies",
"RF_Weapons_Launchers_PSRL1"
};
skipWhenMissingDependencies = 1;
Expand All @@ -20,4 +19,3 @@ class CfgPatches {
};

#include "CfgWeapons.hpp"
#include "CfgVehicles.hpp"
File renamed without changes.
23 changes: 23 additions & 0 deletions addons/supplies/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",
"CUP_Weapons_LoadOrder"
};
skipWhenMissingDependencies = 1;
author = ECSTRING(main,Author);
authors[] = {"Mike"};
url = ECSTRING(main,URL);
VERSION_CONFIG;
};
};

#include "CfgVehicles.hpp"
4 changes: 4 additions & 0 deletions addons/supplies/rf/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#define COMPONENT supplies_rf
#define COMPONENT_BEAUTIFIED Supplies RF
#include "\x\tacgt\addons\main\script_mod.hpp"
#include "\x\tacgt\addons\main\script_macros.hpp"

0 comments on commit 2e9e6ce

Please sign in to comment.