From 885fe3ea1b553053e4bd0e24c541bf345c837a0b Mon Sep 17 00:00:00 2001 From: SAM Date: Thu, 4 Jun 2015 14:57:43 +0200 Subject: [PATCH] Added NLAW disposable --- optionals/compat_cup/CfgMagazines.hpp | 16 ++++++++++++++-- optionals/compat_cup/CfgWeapons.hpp | 15 +++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/optionals/compat_cup/CfgMagazines.hpp b/optionals/compat_cup/CfgMagazines.hpp index 1ad8b0894c..b05b0c3efd 100644 --- a/optionals/compat_cup/CfgMagazines.hpp +++ b/optionals/compat_cup/CfgMagazines.hpp @@ -1,11 +1,13 @@ class CfgMagazines { class CUP_M136_M; class CUP_RPG18_M; + class CUP_NLAW_M; class ACE_PreloadedMissileDummy_CUP: CUP_M136_M { // The dummy magazine author = "$STR_ACE_Common_ACETeam"; scope = 1; scopeArsenal = 1; - displayName = "$STR_ACE_Disposable_PreloadedMissileDummy"; + displayName = "Preloaded Missle"; + //displayName = "$STR_ACE_Disposable_PreloadedMissileDummy"; picture = PATHTOEF(common,UI\blank_CO.paa); weaponPoolAvailable = 0; mass = 0; @@ -23,7 +25,17 @@ class CfgMagazines { modelSpecial = ""; mass = 0; }; - class ACE_UsedTube_RPG18_M_F: CUP_RPG18_M { + class ACE_UsedTube_RPG18_F: CUP_RPG18_M { + author = "$STR_ACE_Common_ACETeam"; + displayName = "$STR_ACE_Disposable_UsedTube"; + descriptionShort = "$STR_ACE_Disposable_UsedTubeDescription"; + displayNameShort = "-"; + count = 0; + weaponPoolAvailable = 0; + modelSpecial = ""; + mass = 0; + }; + class ACE_UsedTube_NLAW_F: CUP_NLAW_M { author = "$STR_ACE_Common_ACETeam"; displayName = "$STR_ACE_Disposable_UsedTube"; descriptionShort = "$STR_ACE_Disposable_UsedTubeDescription"; diff --git a/optionals/compat_cup/CfgWeapons.hpp b/optionals/compat_cup/CfgWeapons.hpp index f9cf5a3a1e..e897384343 100644 --- a/optionals/compat_cup/CfgWeapons.hpp +++ b/optionals/compat_cup/CfgWeapons.hpp @@ -565,6 +565,21 @@ class CfgWeapons EGVAR(overpressure,angle) = 30; EGVAR(overpressure,range) = 2; EGVAR(overpressure,damage) = 0.5; + ACE_UsedTube = "ACE_launch_NLAW_Used_F"; // The class name of the used tube. + magazines[] = {"ACE_PreloadedMissileDummy_CUP"}; // The dummy magazine + }; + class ACE_launch_NLAW_Used_F: CUP_launch_NLAW { + scope = 1; + ACE_isUsedLauncher = 1; + author = "$STR_ACE_Common_ACETeam"; + //displayName = "$STR_ACE_Disposable_UsedTube"; + //descriptionShort = "$STR_ACE_Disposable_UsedTubeDescription"; + displayName = "NLAW (Used)"; + descriptionShort = "Used NLAW Tube"; + magazines[] = {"ACE_FiredMissileDummy_CUP"}; + //picture = ""; @todo + //model = ""; @todo + weaponPoolAvailable = 0; }; class CUP_launch_RPG18: Launcher_Base_F { EGVAR(overpressure,angle) = 40;