mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixed init problem; added mortar ammo boxes
This commit is contained in:
parent
73720f9313
commit
38fb97aeac
@ -139,4 +139,29 @@ class CfgVehicles {
|
|||||||
description = CSTRING(Module_Description);
|
description = CSTRING(Module_Description);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class Box_NATO_AmmoOrd_F;
|
||||||
|
class ACE_Box_82mm_Mo_HE: Box_NATO_AmmoOrd_F {
|
||||||
|
displayName = CSTRING(HEBox_DisplayName);
|
||||||
|
author = ECSTRING(common,ACETeam);
|
||||||
|
transportMaxWeapons = 4;
|
||||||
|
transportMaxmagazines = 8;
|
||||||
|
class TransportMagazines {
|
||||||
|
MACRO_ADDMAGAZINE(ACE_1Rnd_82mm_Mo_HE,8);
|
||||||
|
};
|
||||||
|
class TransportItems {};
|
||||||
|
class TransportWeapons {};
|
||||||
|
};
|
||||||
|
class ACE_Box_82mm_Mo_Smoke: ACE_Box_82mm_Mo_HE {
|
||||||
|
displayName = CSTRING(SmokeBox_DisplayName);
|
||||||
|
class TransportMagazines {
|
||||||
|
MACRO_ADDMAGAZINE(ACE_1Rnd_82mm_Mo_Smoke,8);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
class ACE_Box_82mm_Mo_Illum: ACE_Box_82mm_Mo_HE {
|
||||||
|
displayName = CSTRING(IllumBox_DisplayName);
|
||||||
|
class TransportMagazines {
|
||||||
|
MACRO_ADDMAGAZINE(ACE_1Rnd_82mm_Mo_Illum,8);
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
params ["_mortar","_crewPosition","_unit","_turretPath"];
|
params ["_mortar","_crewPosition","_unit","_turretPath"];
|
||||||
TRACE_4("",_mortar,_crewPosition,_unit,_turretPath);
|
TRACE_4("",_mortar,_crewPosition,_unit,_turretPath);
|
||||||
|
|
||||||
if (_unit != player || {_crewPosition != "GUNNER"}) exitWith {LOG("Exit")};
|
if (_unit != player) exitWith {LOG("Exit")};
|
||||||
|
|
||||||
if (!EGVAR(common,settingsInitFinished)) exitWith {
|
if (!EGVAR(common,settingsInitFinished)) exitWith {
|
||||||
EGVAR(common,runAtSettingsInitialized) pushBack [{
|
EGVAR(common,runAtSettingsInitialized) pushBack [{
|
||||||
@ -13,6 +13,4 @@ if (!EGVAR(common,settingsInitFinished)) exitWith {
|
|||||||
}, _mortar];
|
}, _mortar];
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!GVAR(useAmmoHandling)) exitWith {};
|
|
||||||
|
|
||||||
_mortar call FUNC(mortarInit);
|
_mortar call FUNC(mortarInit);
|
||||||
|
@ -13,6 +13,4 @@ if (!EGVAR(common,settingsInitFinished)) exitWith {
|
|||||||
}, _this];
|
}, _this];
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!GVAR(useAmmoHandling)) exitWith {};
|
|
||||||
|
|
||||||
_this call FUNC(mortarInit);
|
_this call FUNC(mortarInit);
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
if !(GVAR(useAmmoHandling)) exitWith {};
|
||||||
|
|
||||||
params ["_mortar"];
|
params ["_mortar"];
|
||||||
private ["_newWeapon","_currentWeapon"];
|
private ["_newWeapon","_currentWeapon"];
|
||||||
|
|
||||||
|
@ -135,6 +135,12 @@
|
|||||||
<Russian>Модуль настройки миномета MK6.</Russian>
|
<Russian>Модуль настройки миномета MK6.</Russian>
|
||||||
<French>Ce module permet de régler les options du mortier MK6</French>
|
<French>Ce module permet de régler les options du mortier MK6</French>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Mk6Mortar_useAmmoHandling_DisplayName">
|
||||||
|
<English>Use Ammunition handling</English>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Mk6Mortar_useAmmoHandling_Description">
|
||||||
|
<English>Removes mortar magazines, requiring individual rounds to be loaded by the gunner or loader. Does not affect AI mortars.</English>
|
||||||
|
</Key>
|
||||||
<Key ID="STR_ACE_Mk6Mortar_unloadMortar">
|
<Key ID="STR_ACE_Mk6Mortar_unloadMortar">
|
||||||
<English>Remove Round</English>
|
<English>Remove Round</English>
|
||||||
</Key>
|
</Key>
|
||||||
@ -180,11 +186,14 @@
|
|||||||
<Key ID="STR_ACE_Mk6Mortar_magazine_descriptionShort">
|
<Key ID="STR_ACE_Mk6Mortar_magazine_descriptionShort">
|
||||||
<English>Used in Mk6 mortar</English>
|
<English>Used in Mk6 mortar</English>
|
||||||
</Key>
|
</Key>
|
||||||
<Key ID="STR_ACE_Mk6Mortar_useAmmoHandling_DisplayName">
|
<Key ID="STR_ACE_Mk6Mortar_HEBox_DisplayName">
|
||||||
<English>Ammunition handling</English>
|
<English>[ACE] 82mm HE Rounds</English>
|
||||||
</Key>
|
</Key>
|
||||||
<Key ID="STR_ACE_Mk6Mortar_useAmmoHandling_Description">
|
<Key ID="STR_ACE_Mk6Mortar_SmokeBox_DisplayName">
|
||||||
<English>Removes mortar magazines, requiring individual rounds to be loaded by the gunner or loader</English>
|
<English>[ACE] 82mm Smoke Rounds</English>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Mk6Mortar_IllumBox_DisplayName">
|
||||||
|
<English>[ACE] 82mm Illumination Rounds</English>
|
||||||
</Key>
|
</Key>
|
||||||
</Package>
|
</Package>
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
Reference in New Issue
Block a user