Project setup
This commit is contained in:
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.spp filter=lfs diff=lfs merge=lfs -text
|
||||||
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
*.exe
|
||||||
|
|
||||||
|
.hemttout/
|
||||||
|
|
||||||
|
*.vscode/
|
||||||
|
releases/
|
||||||
BIN
.hemtt/missions/test.Stratis/mission.sqm
Normal file
BIN
.hemtt/missions/test.Stratis/mission.sqm
Normal file
Binary file not shown.
36
.hemtt/project.toml
Normal file
36
.hemtt/project.toml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
name = "M119"
|
||||||
|
author = "TBD Team"
|
||||||
|
prefix = "tbd_m119"
|
||||||
|
mainprefix = "x"
|
||||||
|
|
||||||
|
[files]
|
||||||
|
include=["mod.cpp"]
|
||||||
|
exclude=[".vscode/**/*"]
|
||||||
|
|
||||||
|
[version]
|
||||||
|
major=0
|
||||||
|
minor=1
|
||||||
|
patch=
|
||||||
|
|
||||||
|
git_hash=0
|
||||||
|
|
||||||
|
[hemtt.release]
|
||||||
|
sign =true
|
||||||
|
archive=false
|
||||||
|
|
||||||
|
[hemtt.launch]
|
||||||
|
workshop = [
|
||||||
|
"450814997", # CBA_A3
|
||||||
|
"463939057", # ACE
|
||||||
|
"2369477168", # Advanced Developer Tools
|
||||||
|
"3058335345", # TBD Mortars
|
||||||
|
]
|
||||||
|
|
||||||
|
mission = "test.Stratis"
|
||||||
|
|
||||||
|
parameters = [
|
||||||
|
"-skipIntro", # These parameters are passed to the Arma 3 executable
|
||||||
|
"-noSplash", # They do not need to be added to your list
|
||||||
|
"-showScriptErrors", # You can add additional parameters here
|
||||||
|
"-debug",
|
||||||
|
]
|
||||||
1
addons/m119/$PBOPREFIX$
Normal file
1
addons/m119/$PBOPREFIX$
Normal file
@@ -0,0 +1 @@
|
|||||||
|
x\tbd_m119\addons\m119
|
||||||
17
addons/m119/CfgEventhandlers.hpp
Normal file
17
addons/m119/CfgEventhandlers.hpp
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
class Extended_PreInit_EventHandlers {
|
||||||
|
class ADDON {
|
||||||
|
init = QUOTE(call COMPILE_FILE(XEH_preInit));
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
class Extended_PostInit_EventHandlers {
|
||||||
|
class ADDON {
|
||||||
|
init = QUOTE(call COMPILE_FILE(XEH_postInit));
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
class Extended_PreStart_EventHandlers {
|
||||||
|
class ADDON {
|
||||||
|
init = QUOTE(call COMPILE_FILE(XEH_preStart));
|
||||||
|
};
|
||||||
|
};
|
||||||
0
addons/m119/XEH_PREP.hpp
Normal file
0
addons/m119/XEH_PREP.hpp
Normal file
1
addons/m119/XEH_postInit.sqf
Normal file
1
addons/m119/XEH_postInit.sqf
Normal file
@@ -0,0 +1 @@
|
|||||||
|
#include "script_component.hpp"
|
||||||
5
addons/m119/XEH_preInit.sqf
Normal file
5
addons/m119/XEH_preInit.sqf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
#include "XEH_PREP.hpp"
|
||||||
|
|
||||||
|
ADDON = true;
|
||||||
5
addons/m119/XEH_preStart.sqf
Normal file
5
addons/m119/XEH_preStart.sqf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
#include "XEH_PREP.hpp"
|
||||||
|
|
||||||
|
ADDON = true;
|
||||||
13
addons/m119/config.cpp
Normal file
13
addons/m119/config.cpp
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
class CfgPatches {
|
||||||
|
class ADDON {
|
||||||
|
name = QUOTE(COMPONENT);
|
||||||
|
units[] = {QUOTE(TBD_2B9_VASILEK), QUOTE(TBD_2B9_VASILEK_MAGAZINE)};
|
||||||
|
weapons[] = {};
|
||||||
|
requiredVersion = 2.04;
|
||||||
|
requiredAddons[] = {"cba_main", "ace_interact_menu", "tbd_mortars_main"};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#include "CfgEventhandlers.hpp"
|
||||||
0
addons/m119/functions/.gitkeep
Normal file
0
addons/m119/functions/.gitkeep
Normal file
20
addons/m119/script_component.hpp
Normal file
20
addons/m119/script_component.hpp
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
#define PREFIX TBD_M119
|
||||||
|
#define COMPONENT m119
|
||||||
|
#include "\x\cba\addons\main\script_macros_common.hpp"
|
||||||
|
|
||||||
|
#define DISABLE_COMPILE_CACHE
|
||||||
|
|
||||||
|
#ifdef DISABLE_COMPILE_CACHE
|
||||||
|
#undef PREP
|
||||||
|
#define PREP(fncName) TRIPLES(ADDON,fnc,fncName) = compile preprocessFileLineNumbers QPATHTOF(functions\DOUBLES(fnc,fncName).sqf)
|
||||||
|
#else
|
||||||
|
#undef PREP
|
||||||
|
#define PREP(fncName) [QPATHTOF(functions\DOUBLES(fnc,fncName).sqf), QFUNC(fncName)] call CBA_fnc_compileFunction
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define PREP_SUB(subfolder,fncName) [QPATHTOF(functions\subfolder\DOUBLES(fnc,fncName).sqf), QUOTE(DFUNC(DOUBLES(subfolder,fncName)))] call CBA_fnc_compileFunction
|
||||||
|
|
||||||
|
#define TBD_MORT(cmp,fncName) tbd_mortars##_##cmp##_##fnc##_##fncName
|
||||||
|
//#define TBD_MORT(cmp,fncName) tbd##_##cmp##_##fnc##_##fncName
|
||||||
|
|
||||||
|
#define TBD_M119 tbd_m119
|
||||||
9
addons/m119/stringtable.xml
Normal file
9
addons/m119/stringtable.xml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project name="tbd_mortar">
|
||||||
|
<Package name="Translation">
|
||||||
|
<Key ID="STR_TBD_M119_NAME">
|
||||||
|
<English>M119</English>
|
||||||
|
<Czech>M119</Czech>
|
||||||
|
</Key>
|
||||||
|
</Package>
|
||||||
|
</Project>
|
||||||
3
addons/m119/tbd_m119/CfgVehicles.hpp
Normal file
3
addons/m119/tbd_m119/CfgVehicles.hpp
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
class CfgVehicles {
|
||||||
|
|
||||||
|
};
|
||||||
7
addons/m119/tbd_m119/config.cpp
Normal file
7
addons/m119/tbd_m119/config.cpp
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#include "..\script_component.hpp"
|
||||||
|
|
||||||
|
class CfgPatches {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#include "CfgVehicles.hpp"
|
||||||
1
include/x/cba/addons/main/$PBOPREFIX$
Normal file
1
include/x/cba/addons/main/$PBOPREFIX$
Normal file
@@ -0,0 +1 @@
|
|||||||
|
x\cba\addons\main
|
||||||
1835
include/x/cba/addons/main/script_macros_common.hpp
Normal file
1835
include/x/cba/addons/main/script_macros_common.hpp
Normal file
File diff suppressed because it is too large
Load Diff
1
include/x/cba/addons/xeh/$PBOPREFIX$
Normal file
1
include/x/cba/addons/xeh/$PBOPREFIX$
Normal file
@@ -0,0 +1 @@
|
|||||||
|
x\cba\addons\xeh
|
||||||
132
include/x/cba/addons/xeh/script_xeh.hpp
Normal file
132
include/x/cba/addons/xeh/script_xeh.hpp
Normal file
@@ -0,0 +1,132 @@
|
|||||||
|
/*
|
||||||
|
Header: script_xeh.hpp
|
||||||
|
|
||||||
|
Description:
|
||||||
|
Used internally.
|
||||||
|
*/
|
||||||
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// MACRO: EXTENDED_EVENTHANDLERS
|
||||||
|
// Add all XEH event handlers
|
||||||
|
/////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#define EXTENDED_EVENTHANDLERS init = "call cba_xeh_fnc_init"; \
|
||||||
|
fired = "call cba_xeh_fnc_fired"; \
|
||||||
|
animChanged = "call cba_xeh_fnc_animChanged"; \
|
||||||
|
animDone = "call cba_xeh_fnc_animDone"; \
|
||||||
|
animStateChanged = "call cba_xeh_fnc_animStateChanged"; \
|
||||||
|
cargoLoaded = "call cba_xeh_fnc_cargoLoaded"; \
|
||||||
|
cargoUnloaded = "call cba_xeh_fnc_cargoUnloaded"; \
|
||||||
|
containerClosed = "call cba_xeh_fnc_containerClosed"; \
|
||||||
|
containerOpened = "call cba_xeh_fnc_containerOpened"; \
|
||||||
|
controlsShifted = "call cba_xeh_fnc_controlsShifted"; \
|
||||||
|
dammaged = "call cba_xeh_fnc_dammaged"; \
|
||||||
|
deleted = "call cba_xeh_fnc_deleted"; \
|
||||||
|
disassembled = "call cba_xeh_fnc_disassembled"; \
|
||||||
|
engine = "call cba_xeh_fnc_engine"; \
|
||||||
|
epeContact = "call cba_xeh_fnc_epeContact"; \
|
||||||
|
epeContactEnd = "call cba_xeh_fnc_epeContactEnd"; \
|
||||||
|
epeContactStart = "call cba_xeh_fnc_epeContactStart"; \
|
||||||
|
explosion = "call cba_xeh_fnc_explosion"; \
|
||||||
|
firedMan = "call cba_xeh_fnc_firedMan"; \
|
||||||
|
firedNear = "call cba_xeh_fnc_firedNear"; \
|
||||||
|
fuel = "call cba_xeh_fnc_cba_xeh_fuel"; \
|
||||||
|
gear = "call cba_xeh_fnc_gear"; \
|
||||||
|
gestureChanged = "call cba_xeh_fnc_gestureChanged"; \
|
||||||
|
gestureDone = "call cba_xeh_fnc_gestureDone"; \
|
||||||
|
getIn = "call cba_xeh_fnc_getIn"; \
|
||||||
|
getInMan = "call cba_xeh_fnc_getInMan"; \
|
||||||
|
getOut = "call cba_xeh_fnc_getOut"; \
|
||||||
|
getOutMan = "call cba_xeh_fnc_getOutMan"; \
|
||||||
|
hit = "call cba_xeh_fnc_hit"; \
|
||||||
|
hitPart = "call cba_xeh_fnc_hitPart"; \
|
||||||
|
incomingMissile = "call cba_xeh_fnc_incomingMissile"; \
|
||||||
|
inventoryClosed = "call cba_xeh_fnc_inventoryClosed"; \
|
||||||
|
inventoryOpened = "call cba_xeh_fnc_inventoryOpened"; \
|
||||||
|
killed = "call cba_xeh_fnc_killed"; \
|
||||||
|
landedTouchDown = "call cba_xeh_fnc_landedTouchDown"; \
|
||||||
|
landedStopped = "call cba_xeh_fnc_landedStopped"; \
|
||||||
|
local = "call cba_xeh_fnc_local"; \
|
||||||
|
opticsModeChanged = "call cba_xeh_fnc_opticsModeChanged"; \
|
||||||
|
opticsSwitch = "call cba_xeh_fnc_opticsSwitch"; \
|
||||||
|
put = "call cba_xeh_fnc_put"; \
|
||||||
|
reloaded = "call cba_xeh_fnc_reloaded"; \
|
||||||
|
respawn = "call cba_xeh_fnc_respawn"; \
|
||||||
|
ropeAttach = "call cba_xeh_fnc_ropeAttach"; \
|
||||||
|
ropeBreak = "call cba_xeh_fnc_ropeBreak"; \
|
||||||
|
seatSwitched = "call cba_xeh_fnc_seatSwitched"; \
|
||||||
|
seatSwitchedMan = "call cba_xeh_fnc_seatSwitchedMan"; \
|
||||||
|
slotItemChanged = "call cba_xeh_fnc_slotItemChanged"; \
|
||||||
|
suppressed = "call cba_xeh_fnc_suppressed"; \
|
||||||
|
soundPlayed = "call cba_xeh_fnc_soundPlayed"; \
|
||||||
|
take = "call cba_xeh_fnc_take"; \
|
||||||
|
turnIn = "call cba_xeh_fnc_turnIn"; \
|
||||||
|
turnOut = "call cba_xeh_fnc_turnOut"; \
|
||||||
|
visionModeChanged = "call cba_xeh_fnc_visionModeChanged"; \
|
||||||
|
weaponAssembled = "call cba_xeh_fnc_weaponAssembled"; \
|
||||||
|
weaponDisassembled = "call cba_xeh_fnc_weaponDisassembled"; \
|
||||||
|
weaponDeployed = "call cba_xeh_fnc_weaponDeployed"; \
|
||||||
|
weaponRested = "call cba_xeh_fnc_weaponRested";
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
MACRO: DELETE_EVENTHANDLERS
|
||||||
|
|
||||||
|
Removes all event handlers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define DELETE_EVENTHANDLERS init = ""; \
|
||||||
|
fired = ""; \
|
||||||
|
animChanged = ""; \
|
||||||
|
animDone = ""; \
|
||||||
|
animStateChanged = ""; \
|
||||||
|
cargoLoaded = ""; \
|
||||||
|
cargoUnloaded = ""; \
|
||||||
|
containerClosed = ""; \
|
||||||
|
containerOpened = ""; \
|
||||||
|
controlsShifted = ""; \
|
||||||
|
dammaged = ""; \
|
||||||
|
deleted = ""; \
|
||||||
|
disassembled = ""; \
|
||||||
|
engine = ""; \
|
||||||
|
epeContact = ""; \
|
||||||
|
epeContactEnd = ""; \
|
||||||
|
epeContactStart = ""; \
|
||||||
|
explosion = ""; \
|
||||||
|
firedMan = ""; \
|
||||||
|
firedNear = ""; \
|
||||||
|
fuel = ""; \
|
||||||
|
gear = ""; \
|
||||||
|
gestureChanged = ""; \
|
||||||
|
gestureDone = "" \
|
||||||
|
getIn = ""; \
|
||||||
|
getInMan = ""; \
|
||||||
|
getOut = ""; \
|
||||||
|
getOutMan = ""; \
|
||||||
|
hit = ""; \
|
||||||
|
hitPart = ""; \
|
||||||
|
incomingMissile = ""; \
|
||||||
|
inventoryClosed = ""; \
|
||||||
|
inventoryOpened = ""; \
|
||||||
|
killed = ""; \
|
||||||
|
landedTouchDown = ""; \
|
||||||
|
landedStopped = ""; \
|
||||||
|
local = ""; \
|
||||||
|
opticsModeChanged = ""; \
|
||||||
|
opticsSwitch = ""; \
|
||||||
|
put = ""; \
|
||||||
|
reloaded = ""; \
|
||||||
|
respawn = ""; \
|
||||||
|
ropeAttach = ""; \
|
||||||
|
ropeBreak = ""; \
|
||||||
|
seatSwitched = ""; \
|
||||||
|
seatSwitchedMan = ""; \
|
||||||
|
soundPlayed = ""; \
|
||||||
|
suppressed = ""; \
|
||||||
|
take = ""; \
|
||||||
|
turnIn = ""; \
|
||||||
|
turnOut = ""; \
|
||||||
|
visionModeChanged = ""; \
|
||||||
|
weaponAssembled = ""; \
|
||||||
|
weaponDisassembled = ""; \
|
||||||
|
weaponDeployed = ""; \
|
||||||
|
weaponRested = "";
|
||||||
8
mod.cpp
Normal file
8
mod.cpp
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
name = "M119"; // Name of your mod
|
||||||
|
author = "TBD Team";
|
||||||
|
actionName = "Author"; // Text displayed on the "website" button
|
||||||
|
action = "https://tbdevent.eu/"; // Website URL, that can accessed from the expansions menu
|
||||||
|
tooltipOwned = "TBD Event"; // Tool tip displayed when the mouse is left over, in the main menu
|
||||||
|
|
||||||
|
// Overview text, displayed from the extension menu
|
||||||
|
overview = "M119";
|
||||||
Reference in New Issue
Block a user