Skip to content

Commit

Permalink
add optional component to remove stock missions (#975)
Browse files Browse the repository at this point in the history
* add optional component to remove stock missions

* delete superfluous

* rename

* delete empty line

* add may be needed array
  • Loading branch information
commy2 committed Sep 10, 2018
1 parent ba49d70 commit ae98d8b
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions optionals/no_stock_missions/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x\cba\addons\no_stock_missions
19 changes: 19 additions & 0 deletions optionals/no_stock_missions/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = CSTRING(component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_no_stock_missions_prep"};
version = VERSION;
authors[] = {"commy2"};
};
};

class CfgMissions {
class MPMissions {};
};
18 changes: 18 additions & 0 deletions optionals/no_stock_missions/no_stock_missions_prep/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#include "script_component.hpp"

class CfgPatches {
class ADDON {
author = "$STR_CBA_Author";
name = ECSTRING(no_stock_missions,component);
url = "$STR_CBA_URL";
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cba_common"};
version = VERSION;
};
};

class CfgMissions {
delete MPMissions;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#define COMPONENT no_stock_missions_prep
#include "\x\cba\addons\main\script_mod.hpp"
#include "\x\cba\addons\main\script_macros.hpp"
3 changes: 3 additions & 0 deletions optionals/no_stock_missions/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#define COMPONENT no_stock_missions
#include "\x\cba\addons\main\script_mod.hpp"
#include "\x\cba\addons\main\script_macros.hpp"

0 comments on commit ae98d8b

Please sign in to comment.