diff --git a/addons/mk6mortar/CfgVehicles.hpp b/addons/mk6mortar/CfgVehicles.hpp index 481687f89f..97d3d1ec01 100644 --- a/addons/mk6mortar/CfgVehicles.hpp +++ b/addons/mk6mortar/CfgVehicles.hpp @@ -34,6 +34,37 @@ class CfgVehicles { discreteDistanceInitIndex = 0; }; }; + class ACE_Actions { + class ACE_MainACtions { + class GVAR(loadMagazine_HE) { + displayName = CSTRING(loadMagazine_HE); + distance = 4; + condition = QUOTE([ARR_2(_player,_target)] call FUNC(canLoadMagazine)); + statement = QUOTE([ARR_3(_player,_target,'HE')] call FUNC(loadMagazine)); + icon = ""; + class GVAR(loadMagazine_Smoke) { + displayName = CSTRING(loadMagazine_Smoke); + distance = 4; + condition = QUOTE([ARR_3(_player,_target,'Smoke')] call FUNC(canLoadMagazine)); + statement = QUOTE([ARR_3(_player,_target,'Smoke')] call FUNC(loadMagazine)); + icon = ""; + }; + class GVAR(loadMagazine_Illum) { + displayName = CSTRING(loadMagazine_Illum); + distance = 4; + condition = QUOTE([ARR_3(_player,_target,'Illum')] call FUNC(canLoadMagazine)); + statement = QUOTE([ARR_3(_player,_target,'Illum')] call FUNC(loadMagazine)); + icon = ""; + }; + }; + class GVAR(unloadMagazine) { + displayName = CSTRING(unloadMagazine); + distance = 4; + condition = QUOTE([ARR_2(_player,_target)] call FUNC(canUnloadMagazine)); + statement = QUOTE([ARR_2(_player,_target)] call FUNC(unloadMagazine)); + icon = ""; + }; + }; class ACE_SelfActions { class GVAR(toggleMils) { displayName = "Toggle MILS"; diff --git a/addons/mk6mortar/CfgWeapons.hpp b/addons/mk6mortar/CfgWeapons.hpp index 97952af2d1..b3d6bcd440 100644 --- a/addons/mk6mortar/CfgWeapons.hpp +++ b/addons/mk6mortar/CfgWeapons.hpp @@ -12,4 +12,19 @@ class CfgWeapons { mass = 0.5; }; }; + + class CannonCore; + class mortar_82mm: CannonCore { + class Single1; + }; + class ACE_mortar_82mm: mortar_82mm { + magazines[] = {"ACE_1Rnd_82mm_Mo_HE","ACE_1Rnd_82mm_Mo_Smoke","ACE_1Rnd_82mm_Mo_Illum", + "ACE_1Rnd_82mm_Mo_HE_Guided","ACE_1Rnd_82mm_Mo_HE_LaserGuided"}; + modes[] = {"Single1","Single2","Single3"}; + reloadTime = 0.5; + magazineReloadTime = 0.5; + class Single1: Single1 { + reloadTime = 0.5; + }; + }; }; diff --git a/addons/mk6mortar/cfgMagazines.hpp b/addons/mk6mortar/cfgMagazines.hpp new file mode 100644 index 0000000000..7075d2310e --- /dev/null +++ b/addons/mk6mortar/cfgMagazines.hpp @@ -0,0 +1,32 @@ +class cfgMagazines { + class 8Rnd_82mm_Mo_shells; + class ACE_1Rnd_82mm_Mo_HE: 8Rnd_82mm_Mo_shells { + count = 1; + displayName = CSTRING(magazine_HE_displayName); + // Infantry-carry stuff here + }; + class 8Rnd_82mm_Mo_Smoke_white; + class ACE_1Rnd_82mm_Mo_Smoke: 8Rnd_82mm_Mo_Smoke_white { + count = 1; + displayName = CSTRING(magazine_Smoke_displayName); + + }; + class 8Rnd_82mm_Mo_Flare_white; + class ACE_1Rnd_82mm_Mo_Illum: 8Rnd_82mm_Mo_Flare_white { + count = 1; + displayName = CSTRING(magazine_Illum_displayName); + + }; + class 8Rnd_82mm_Mo_guided; + class ACE_1Rnd_82mm_Mo_HE_Guided: 8Rnd_82mm_Mo_guided { + count = 1; + displayName = CSTRING(magazine_HE_Guided_displayName); + + }; + class 8Rnd_82mm_Mo_LG; + class ACE_1Rnd_82mm_Mo_HE_LaserGuided: 8Rnd_82mm_Mo_LG { + count = 1; + displayName = CSTRING(magazine_HE_LaserGuided_displayName); + + }; +}; diff --git a/addons/mk6mortar/stringtable.xml b/addons/mk6mortar/stringtable.xml index f1bbef9228..e36cf14e0c 100644 --- a/addons/mk6mortar/stringtable.xml +++ b/addons/mk6mortar/stringtable.xml @@ -135,5 +135,38 @@ Модуль настройки миномета MK6. Ce module permet de régler les options du mortier MK6 + + Load HE Round + + + Load Smoke Round + + + Load Illumination Round + + + Load Guided HE Round + + + Load Laser Guided HE Round + + + Unload Round + + + 82mm HE Round + + + 82mm Smoke Round + + + 82mm Illumination Round + + + 82mm Guided HE Round + + + 82mm Laser Guided HE Round +