eggbeast 3673 Posted May 20, 2015 (edited) I'm editing the SMAW mags to add smoke and thermobaric warheads, based on pooks mod. however for some reason i can never load the new mags into the launcher. can anyone take a look at the configs below and see if you can see what is wrong? it's so weird i must be missing something... i can add maaws_hedp mag to the magazines list and it will load that fine into the smaw. i just cannot load these new NE and smoke mags into it. new mags - I can pick up from ammo box but will not show up as valid ammo for the weapon cfgammo //original mags - work fine class R_SMAW_HEDP: RocketBase { model = "\ca\weapons2\SMAW\SMAW_rocket_inflight.p3d"; hit = 150; indirectHit = 40; indirectHitRange = 12; cost = 200; initTime = 0.02; thrust = 610; thrustTime = 1; maxSpeed = 750; sideAirFriction = 0.22; timeToLive = 6; fuseDistance = 15; visibleFire = 28; audibleFire = 16; CraterEffects = "ATRocketCrater"; explosionEffects = "ATRocketExplosion"; effectsMissile = "missile3"; whistleDist = 24; }; class R_SMAW_HEAA: R_SMAW_HEDP { hit = 480; indirectHit = 12; indirectHitRange = 1.2; cost = 500; CraterEffects = "ATRocketCrater"; explosionEffects = "ATRocketExplosion"; whistleDist = 2; }; //new mags fail class EB_R_SMAW_NE: RocketBase { hit = 100; indirectHit = 80; indirectHitRange = 10; effectsMissile = "missile3"; explosionEffects = "EB_NapalmJet"; //defined correctly and works in other missiles in same config model = "\ca\weapons2\SMAW\SMAW_rocket_inflight.p3d"; cost = 200; initTime = 0.02; thrust = 610; thrustTime = 1; maxSpeed = 750; sideAirFriction = 0.22; timeToLive = 6; fuseDistance = 15; visibleFire = 28; audibleFire = 16; CraterEffects = "ATRocketCrater"; whistleDist = 24; }; class EB_R_SMAW_smoke: EB_R_SMAW_NE { hit = 5; indirectHit = 2; indirectHitRange = 0.2; explosioneffects = "WPExplosion"; }; cfgmagazines //original with edits - work fine class SMAW_HEDP: CA_LauncherMagazine { scope = 2; displayName = "Missile (SMAW HEDP)"; ammo = "R_SMAW_HEDP"; initSpeed = 250; model = "\ca\weapons2\SMAW\SMAW_rocket.p3d"; modelSpecial = "\ca\weapons2\SMAW\SMAW_loaded.p3d"; reloadAction = "ManActReloadAT"; picture = "\ca\weapons2\smaw\data\equip\M_SMAW_CA.paa"; descriptionShort = "Range: 500m Type: 83mm High-Explosive Dual-Purpose Used in SMAW"; type = "3 * 256"; displayNameShort = "83mm HEDP"; }; class SMAW_HEAA: SMAW_HEDP { displayName = "Missile (SMAW HEAA)"; ammo = "R_SMAW_HEAA"; descriptionShort = "Range: 500m Type: 83mm Anti-Armour Used in SMAW"; displayNameShort = "83mm HEAA"; }; //new - can pick up from ammo box but will not show up as valid ammo for the weapon class EB_SMAW_NE: CA_LauncherMagazine { scope = 2; displayName = "Missile (SMAW NE)"; ammo = "EB_R_SMAW_NE"; descriptionShort = "Range: 500m Type: 83mm Novel Explosive Used in SMAW"; displayNameShort = "83mm NE"; model = "\ca\weapons2\SMAW\SMAW_rocket.p3d"; modelSpecial = "\ca\weapons2\SMAW\SMAW_loaded.p3d"; reloadAction = "ManActReloadAT"; picture = "\ca\weapons2\smaw\data\equip\M_SMAW_CA.paa"; initSpeed = 250; type = "3 * 256"; }; class EB_SMAW_smoke: EB_SMAW_NE { displayName = "Missile (SMAW Smoke)"; ammo = "EB_R_SMAW_smoke"; type = 256; descriptionShort = "Range: 500m Type: 83mm Smoke Used in SMAW"; displayNameShort = "83mm Smoke"; }; cfgweapons class Launcher; class SMAW: Launcher { Displayname = "AT: SMAW Mk153"; visionMode[] = {"Normal","NVG"}; thermalMode[] = {}; magazines[] = {"SMAW_HEAA","SMAW_HEDP","EB_SMAW_smoke","EB_SMAW_NE"}; //last 2 mags fail to load descriptionShort = "SMAW Mk153 Mod 0 MAAWS 83mm Multi-use rocket launcher. Fires HEAA (anti-armour), HEDP, NE (thermobaric) and smoke rounds."; }; //test weapon - maaws mags load ok class EB_SMAW: SMAW { Displayname = "AT: SMAW Mk153 mod 0"; visionMode[] = {"Normal","NVG"}; thermalMode[] = {}; magazines[] = {"SMAW_HEAA","SMAW_HEDP","MAAWS_HEAT","MAAWS_HEDP","EB_SMAW_smoke","EB_SMAW_NE"}; descriptionShort = "SMAW Mk153 Mod 0 MAAWS 83mm Multi-use rocket launcher. Fires HEAA (anti-armour), HEDP, NE (thermobaric) and smoke rounds."; }; any idea what i could be doing wrong? if i pick up weapon: EB_SMAW mags: "SMAW_HEAA","SMAW_HEDP","EB_SMAW_smoke","EB_SMAW_NE" it will show up only 2 mags available and load AA and DP only. ---------- Post added at 10:46 AM ---------- Previous post was at 09:40 AM ---------- well, completely re-parenting the weapon like this works fine, so the ammo isn't at fault class EB_SMAW: Launcher { scope = 2; Displayname = "AT: SMAW Mk153 mod0"; visionMode[] = {"Normal","NVG"}; thermalMode[] = {}; magazines[] = {"SMAW_HEAA","SMAW_HEDP","EB_SMAW_smoke","EB_SMAW_NE"}; descriptionShort = "SMAW Mk153 Mod 0 MAAWS 83mm Multi-use rocket launcher. Fires HEAA (anti-armour), HEDP, NE (thermobaric) and smoke rounds."; model = "\ca\weapons2\SMAW\SMAW.p3d"; handAnim[] = {"OFP2_ManSkeleton","\Ca\weapons\data\Anim\SMAW.rtm"}; sound[] = {"Ca\sounds\Weapons\cannon\RocketLauncher_Shot04_A",10.0,1,1300}; drySound[] = {"Ca\sounds\Weapons\cannon\Javelin_dry_v1",0.0001,1,10}; reloadMagazineSound[] = {"Ca\sounds\Weapons\cannon\flare_reload",0.00031622776,1,20}; soundFly[] = {"Ca\sounds\Weapons\cannon\rocket_fly1",10.0,1.8,600}; minRange = 20; midRange = 250; maxRange = 500; recoil = "launcherBase"; aiRateOfFire = 10.0; aiRateOfFireDistance = 250; modelOptics = "\ca\weapons\optika_TOW"; opticsPPEffects[] = {"OpticsCHAbera2","OpticsBlur3"}; opticsZoomMin = 0.0625; opticsZoomMax = 0.0625; distanceZoomMin = 100; distanceZoomMax = 100; picture = "\ca\weapons2\smaw\data\equip\W_SMAW_CA.paa"; UiPicture = "\CA\weapons\data\Ico\i_at_CA.paa"; class Library { libTextDesc = "$STR_LIB_SMAW"; }; }; could it be a bad inheritance of the weapon somewhere in my mod? class CfgPatches { class EB_weapons { requiredVersion = 1.59; requiredAddons[] = {"CAWeapons","CAWeapons_AK","CAWeapons_E","CAWeapons_E_AK","CAWeapons_E_GrenadeLauncher","CAWeapons_E_scar","CAWeapons_BAF","CA_ACR","CAWEAPONS_ACR","CA_PMC","CAWeapons_PMC","CAWeapons2","CAWeapons_E_fnfal","CAWeapons_E_Metis","CAWeapons_E_M110","CAweapons_E_ksvk","CAWeapons_E_MAAWS","CAWeapons_VSS_vintorez","CAweapons_m107","CAweapons_E_m107","CAWeapons2_SMAW","CAWeapons_PMC_AS50","CAWeapons_PMC_XM8","CAWeapons_E_M47","CAWeapons_ACR_LRTV","CAWeapons_E_M240","CAWeapons_bizon","CAWeapons_E_M14","CAWeapons_ACR_UK59","Extended_eventhandlers"}; anyone know if the smaw is patched elsewhere other than CAweapons2_smaw ?? Edited May 20, 2015 by eggbeast Share this post Link to post Share on other sites