mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Initial commit for mortar ammunition handling.
This commit is contained in:
parent
c689cbfdfe
commit
170095ae35
@ -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";
|
||||
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
32
addons/mk6mortar/cfgMagazines.hpp
Normal file
32
addons/mk6mortar/cfgMagazines.hpp
Normal file
@ -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);
|
||||
|
||||
};
|
||||
};
|
@ -135,5 +135,38 @@
|
||||
<Russian>Модуль настройки миномета MK6.</Russian>
|
||||
<French>Ce module permet de régler les options du mortier MK6</French>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Mk6Mortar_loadMagazine_HE">
|
||||
<English>Load HE Round</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Mk6Mortar_loadMagazine_Smoke">
|
||||
<English>Load Smoke Round</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Mk6Mortar_loadMagazine_Illum">
|
||||
<English>Load Illumination Round</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Mk6Mortar_loadMagazine_HE_Guided">
|
||||
<English>Load Guided HE Round</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Mk6Mortar_loadMagazine_HE_LaserGuided">
|
||||
<English>Load Laser Guided HE Round</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Mk6Mortar_unloadMagazine">
|
||||
<English>Unload Round</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Mk6Mortar_magazine_HE_displayName">
|
||||
<English>82mm HE Round</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Mk6Mortar_magazine_Smoke_displayName">
|
||||
<English>82mm Smoke Round</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Mk6Mortar_magazine_Illum_displayName">
|
||||
<English>82mm Illumination Round</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Mk6Mortar_magazine_HE_Guided_displayName">
|
||||
<English>82mm Guided HE Round</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Mk6Mortar_magazine_HE_LaserGuided_displayName">
|
||||
<English>82mm Laser Guided HE Round</English>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user