diff --git a/addons/trenches/$PBOPREFIX$ b/addons/trenches/$PBOPREFIX$ new file mode 100644 index 0000000000..dab2e4cdda --- /dev/null +++ b/addons/trenches/$PBOPREFIX$ @@ -0,0 +1 @@ +z\ace\addons\trenches \ No newline at end of file diff --git a/addons/trenches/CfgVehicles.hpp b/addons/trenches/CfgVehicles.hpp new file mode 100644 index 0000000000..1e3ecfc2a4 --- /dev/null +++ b/addons/trenches/CfgVehicles.hpp @@ -0,0 +1,17 @@ +class CfgVehicles { + class BagFence_base_F; + class ACE_envelope_small: BagFence_base_F { + author = ECSTRING(common,ACETeam); + displayName = CSTRING(EnvelopeSmallName); + descriptionShort = CSTRING(EnevlopeSmallDescription); + model = QUOTE(PATHTOF(data\ace_envelope_small.p3d)); + scope = 2; + }; + class ACE_envelope_big: BagFence_base_F { + author = ECSTRING(common,ACETeam); + displayName = CSTRING(EnvelopeBigName); + descriptionShort = CSTRING(EnevlopeBigDescription); + model = QUOTE(PATHTOF(data\ace_envelope_big.p3d)); + scope = 2; + }; +}; \ No newline at end of file diff --git a/addons/trenches/CfgWeapons.hpp b/addons/trenches/CfgWeapons.hpp new file mode 100644 index 0000000000..39016cf7e6 --- /dev/null +++ b/addons/trenches/CfgWeapons.hpp @@ -0,0 +1,16 @@ +class CfgWeapons { + class InventoryItem_Base_F; + class ACE_ItemCore; + + class ACE_entrenchingtool: ACE_ItemCore { + author = ECSTRING(common,ACETeam); + displayName = CSTRING(EntrenchingToolName); + descriptionShort = CSTRING(EntrenchingToolDescription); + model = QUOTE(PATHTOF(data\ace_entrchtool.p3d)); + picture = QUOTE(PATHTOF(ui\w_entrchtool_ca.paa)); + scope = 2; + class ItemInfo: InventoryItem_Base_F { + mass = 10; + }; + }; +}; \ No newline at end of file diff --git a/addons/trenches/README.md b/addons/trenches/README.md new file mode 100644 index 0000000000..7ebfbe238b --- /dev/null +++ b/addons/trenches/README.md @@ -0,0 +1,12 @@ +ace_trenches +================= + +Adds item 'ACE_entrenchingtool' +Adds 2 trenches; Envelope - Small & Envelop - Big + + +## Maintainers + +The people responsible for merging changes to this component or answering potential questions. + +- [Grey](https://github.com/Grey-Soldierman) diff --git a/addons/trenches/UI/w_entrchtool_ca.paa b/addons/trenches/UI/w_entrchtool_ca.paa new file mode 100644 index 0000000000..dceb288dc0 Binary files /dev/null and b/addons/trenches/UI/w_entrchtool_ca.paa differ diff --git a/addons/trenches/config.cpp b/addons/trenches/config.cpp new file mode 100644 index 0000000000..0e56494c3e --- /dev/null +++ b/addons/trenches/config.cpp @@ -0,0 +1,15 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + units[] = {"ACE_envelope_small","ACE_envelope_big"}; + weapons[] = {"ACE_entrenchingtool"}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"ace_interaction"}; + author[] = {"Grey"}; + authorUrl = ""; + VERSION_CONFIG; + }; +}; +#include "CfgWeapons.hpp" +#include "CfgVehicles.hpp" \ No newline at end of file diff --git a/addons/trenches/data/ace_entrchtool.p3d b/addons/trenches/data/ace_entrchtool.p3d new file mode 100644 index 0000000000..37ee559f5a Binary files /dev/null and b/addons/trenches/data/ace_entrchtool.p3d differ diff --git a/addons/trenches/data/ace_envelope_big.p3d b/addons/trenches/data/ace_envelope_big.p3d new file mode 100644 index 0000000000..560b3a9d0e Binary files /dev/null and b/addons/trenches/data/ace_envelope_big.p3d differ diff --git a/addons/trenches/data/ace_envelope_small.p3d b/addons/trenches/data/ace_envelope_small.p3d new file mode 100644 index 0000000000..102822de1c Binary files /dev/null and b/addons/trenches/data/ace_envelope_small.p3d differ diff --git a/addons/trenches/data/entrchtool.rvmat b/addons/trenches/data/entrchtool.rvmat new file mode 100644 index 0000000000..d0fd373c53 --- /dev/null +++ b/addons/trenches/data/entrchtool.rvmat @@ -0,0 +1,75 @@ +ambient[]={1,1,1,1}; +diffuse[]={2,2,2,0}; +forcedDiffuse[]={0,0,0,0}; +emmisive[]={0,0,0,1}; +specular[]={0.054000214,0.054000214,0.058000047,0}; +specularPower=50.700001; +PixelShaderID="Super"; +VertexShaderID="Super"; +class Stage1 +{ + texture="z\ace\addons\trenches\data\entrchtool_nohq.paa"; + uvSource="tex"; + class uvTransform + { + aside[]={1,0,0}; + up[]={0,1,0}; + dir[]={0,0,0}; + pos[]={0,0,0}; + }; +}; +class Stage2 +{ + texture="#(argb,8,8,3)color(0.5,0.5,0.5,1,DT)"; + uvSource="tex"; + class uvTransform + { + aside[]={4,0,0}; + up[]={0,6,0}; + dir[]={0,0,2}; + pos[]={0,0,0}; + }; + Filter="Anizotropic"; +}; +class Stage3 +{ + texture="#(argb,8,8,3)color(0,0,0,0,MC)"; + uvSource="tex"; + class uvTransform + { + aside[]={1,0,0}; + up[]={0,1,0}; + dir[]={0,0,0}; + pos[]={0,0,0}; + }; + Filter="Anizotropic"; +}; +class Stage4 +{ + texture="z\ace\addons\trenches\data\entrchtool_as.paa"; + uvSource="tex"; + class uvTransform + { + aside[]={1,0,0}; + up[]={0,1,0}; + dir[]={0,0,0}; + pos[]={0,0,0}; + }; +}; +class Stage5 +{ + texture="z\ace\addons\trenches\data\entrchtool_smdi.paa"; + uvSource="tex"; + class uvTransform + { + aside[]={1,0,0}; + up[]={0,1,0}; + dir[]={0,0,0}; + pos[]={0,0,0}; + }; +}; +class Stage6 +{ + texture="a3\data_f\env_co.paa"; + uvSource="none"; +}; diff --git a/addons/trenches/data/entrchtool_as.paa b/addons/trenches/data/entrchtool_as.paa new file mode 100644 index 0000000000..5facd40186 Binary files /dev/null and b/addons/trenches/data/entrchtool_as.paa differ diff --git a/addons/trenches/data/entrchtool_co.paa b/addons/trenches/data/entrchtool_co.paa new file mode 100644 index 0000000000..ad6dc41e5c Binary files /dev/null and b/addons/trenches/data/entrchtool_co.paa differ diff --git a/addons/trenches/data/entrchtool_nohq.paa b/addons/trenches/data/entrchtool_nohq.paa new file mode 100644 index 0000000000..477e912367 Binary files /dev/null and b/addons/trenches/data/entrchtool_nohq.paa differ diff --git a/addons/trenches/data/entrchtool_smdi.paa b/addons/trenches/data/entrchtool_smdi.paa new file mode 100644 index 0000000000..1011a99ca6 Binary files /dev/null and b/addons/trenches/data/entrchtool_smdi.paa differ diff --git a/addons/trenches/data/zr_plevel_co.paa b/addons/trenches/data/zr_plevel_co.paa new file mode 100644 index 0000000000..723a8ca572 Binary files /dev/null and b/addons/trenches/data/zr_plevel_co.paa differ diff --git a/addons/trenches/script_component.hpp b/addons/trenches/script_component.hpp new file mode 100644 index 0000000000..3bb65ab0a6 --- /dev/null +++ b/addons/trenches/script_component.hpp @@ -0,0 +1,12 @@ +#define COMPONENT trenches +#include "\z\ace\addons\main\script_mod.hpp" + +#ifdef DEBUG_ENABLED_TRENCHES + #define DEBUG_MODE_FULL +#endif + +#ifdef DEBUG_SETTINGS_TRENCHES + #define DEBUG_SETTINGS DEBUG_SETTINGS_TRENCHES +#endif + +#include "\z\ace\addons\main\script_macros.hpp" diff --git a/addons/trenches/stringtable.xml b/addons/trenches/stringtable.xml new file mode 100644 index 0000000000..e784f26c93 --- /dev/null +++ b/addons/trenches/stringtable.xml @@ -0,0 +1,25 @@ + + + + + Entrenching Tool + Saperka + + + Entrenching Tool + Saperka, używana do budowy okopów + + + Envelope - Small + + + Small Personal Trench + + + Envelope - Big + + + Large Personal Trench + + +