-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move bush and grass cutter to own component (#96)
* Move bush and gras cutter to own component * Move version info to main component * Fix incorrect rename * Add punctuation * Ignore vscode folder * Update readme
- Loading branch information
Showing
26 changed files
with
170 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,5 @@ releases/* | |
keys/* | ||
.hemtt/local | ||
#### | ||
|
||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
PREP(addBushCutter); | ||
PREP(addChatCommands); | ||
PREP(addGrassCutter); | ||
PREP(areModsLoaded); | ||
PREP(arsenalPBWFix); | ||
PREP(parseNameToPlayer); | ||
PREP(seesBush); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
#include "script_component.hpp" | ||
|
||
call FUNC(addBushCutter); | ||
call FUNC(addGrassCutter); | ||
call FUNC(arsenalPBWFix); | ||
call FUNC(addChatCommands); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
z\mts_enhanced\addons\cutter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
class Extended_PreStart_EventHandlers { | ||
class ADDON { | ||
init = QUOTE(call COMPILE_SCRIPT(XEH_preStart)); | ||
}; | ||
}; | ||
|
||
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)); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
PREP(addBushCutter); | ||
PREP(addGrassCutter); | ||
PREP(seesBush); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include "script_component.hpp" | ||
|
||
call FUNC(addBushCutter); | ||
call FUNC(addGrassCutter); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "script_component.hpp" | ||
|
||
ADDON = false; | ||
|
||
PREP_RECOMPILE_START; | ||
#include "XEH_PREP.hpp" | ||
PREP_RECOMPILE_END; | ||
|
||
#include "initSettings.hpp" | ||
|
||
ADDON = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include "script_component.hpp" | ||
|
||
#include "XEH_PREP.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "script_component.hpp" | ||
|
||
class CfgPatches { | ||
class ADDON { | ||
name = COMPONENT_NAME; | ||
units[] = {}; | ||
weapons[] = {}; | ||
requiredVersion = REQUIRED_VERSION; | ||
requiredAddons[] = {"mts_main", "ace_common", "ace_interact_menu"}; | ||
author = ECSTRING(main,authors); | ||
authors[] = {"PhILoX", "Timi007"}; | ||
url = ECSTRING(main,URL); | ||
VERSION_CONFIG; | ||
}; | ||
}; | ||
|
||
#include "CfgEventHandlers.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* Nothing | ||
* | ||
* Example: | ||
* call mts_common_fnc_addBushCutter | ||
* call mts_cutter_fnc_addBushCutter | ||
* | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "\z\mts_enhanced\addons\cutter\script_component.hpp" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#define COMPONENT cutter | ||
#define COMPONENT_BEAUTIFIED Cutter | ||
#include "\z\mts_enhanced\addons\main\script_mod.hpp" | ||
|
||
// #define DEBUG_MODE_FULL | ||
// #define DISABLE_COMPILE_CACHE | ||
// #define CBA_DEBUG_SYNCHRONOUS | ||
|
||
#ifdef DEBUG_ENABLED_CUTTER | ||
#define DEBUG_MODE_FULL | ||
#endif | ||
|
||
#ifdef DEBUG_SETTINGS_CUTTER | ||
#define DEBUG_SETTINGS DEBUG_SETTINGS_CUTTER | ||
#endif | ||
|
||
#include "\z\mts_enhanced\addons\main\script_macros.hpp" | ||
|
||
#define BUSH_CUTTING_DISTANCE 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project name="mts"> | ||
<Package name="cutter"> | ||
<Container name="Grasscutter"> | ||
<Key ID="STR_mts_cutter_grasscutter_subCategory"> | ||
<Original>Grass cutter</Original> | ||
<German>Grasschneider</German> | ||
</Key> | ||
<Key ID="STR_mts_cutter_grasscutter"> | ||
<Original>Add grass cutter</Original> | ||
<German>Grasschneider hinzufügen</German> | ||
</Key> | ||
<Key ID="STR_mts_cutter_grasscutter_tooltip"> | ||
<Original>Adds the grass cutter to ACE interaction menu.</Original> | ||
<German>Fügt den Grasschneider zu dem ACE Interaktionmenu hinzu.</German> | ||
</Key> | ||
<Key ID="STR_mts_cutter_grasscutter_removeGrass"> | ||
<Original>Remove grass</Original> | ||
<German>Gras entfernen</German> | ||
</Key> | ||
<Key ID="STR_mts_cutter_grasscutter_size"> | ||
<Original>Grass cutter size</Original> | ||
<German>Grasschneidergröße</German> | ||
</Key> | ||
<Key ID="STR_mts_cutter_grasscutter_size_tooltip"> | ||
<Original>Changes the size of the grass cutter.</Original> | ||
<German>Ändert die Größe des Grasschneiders.</German> | ||
</Key> | ||
<Key ID="STR_mts_cutter_grasscutter_size_large"> | ||
<Original>Large</Original> | ||
<German>Groß</German> | ||
</Key> | ||
<Key ID="STR_mts_cutter_grasscutter_size_medium"> | ||
<Original>Medium</Original> | ||
<German>Mittel</German> | ||
</Key> | ||
<Key ID="STR_mts_cutter_grasscutter_duration"> | ||
<Original>Duration</Original> | ||
<German>Dauer</German> | ||
</Key> | ||
<Key ID="STR_mts_cutter_grasscutter_duration_tooltip"> | ||
<Original>Time it takes in seconds to remove grass.</Original> | ||
<German>Zeit in Sekunden, um Gras zu enfernen.</German> | ||
</Key> | ||
</Container> | ||
<Container name="Bushcutter"> | ||
<Key ID="STR_mts_cutter_bushcutter_subCategory"> | ||
<Original>Bush cutter</Original> | ||
<German>Buschschere</German> | ||
</Key> | ||
<Key ID="STR_mts_cutter_bushcutter"> | ||
<Original>Add bush cutter</Original> | ||
<German>Buschschere hinzufügen</German> | ||
</Key> | ||
<Key ID="STR_mts_cutter_bushcutter_tooltip"> | ||
<Original>Adds the bush cutter to ACE interaction menu.</Original> | ||
<German>Fügt die Buschschere zu dem ACE Interaktionmenu hinzu.</German> | ||
</Key> | ||
<Key ID="STR_mts_cutter_bushcutter_removeBush"> | ||
<Original>Remove bush</Original> | ||
<German>Busch entfernen</German> | ||
</Key> | ||
<Key ID="STR_mts_cutter_bushcutter_duration"> | ||
<Original>Duration</Original> | ||
<German>Dauer</German> | ||
</Key> | ||
<Key ID="STR_mts_cutter_bushcutter_duration_tooltip"> | ||
<Original>Time it takes in seconds to remove a bush.</Original> | ||
<German>Zeit in Sekunden, um einen Busch zu enfernen.</German> | ||
</Key> | ||
</Container> | ||
</Package> | ||
</Project> |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Extended_PreInit_EventHandlers { | ||
class ADDON { | ||
init = QUOTE(call COMPILE_SCRIPT(XEH_preInit)); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "script_component.hpp" | ||
|
||
// Print version to rpt log | ||
private _version = getText (configFile >> "CfgPatches" >> QUOTE(ADDON) >> "versionStr"); | ||
INFO_1("Metis Enhanced version: %1.", _version); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,6 @@ class CfgSettings { | |
}; | ||
}; | ||
}; | ||
|
||
|
||
#include "CfgEventHandlers.hpp" |