swtx 42 Posted March 28, 2017 Trying to get my custom ammo and mag to be seen in the virtual arsenal and usable in game. So far I'm not having any luck. I'll post my config below. Gotta be something I'm doing wrong. Thx in advance for your help. class CfgPatches { class BCTracers_Edited { units[] = {""}; weapons[] = {""}; ammo[]={ "B_762x51_Tracer_Yellow_DIM"}; magazines[]={"20Rnd_762x51_Mag_Yellow_Tracer"}; requiredVersion = 0.1; requiredAddons[] = {"A3_Weapons_F", "A3_Weapons_F_Beta", "A3_Weapons_F_Gamma", "A3_weapons_f_exp"}; }; }; class CfgAmmo { class BulletBase; // External class reference class SubmunitionCore; // External class reference class B_762x51_Ball; // External class reference class SubmunitionBase : SubmunitionCore {}; class B_65x39_Caseless; // External class reference class SubmunitionBullet : SubmunitionBase {}; class B_762x51_Tracer_Yellow_DIM : B_762x51_Ball { model = "BCTracers_Edited\Data\Bullettracer\yellow"; tracerScale = 0.08; airFriction=-0.00082029; caliber=1.8; hit=16; typicalSpeed=805; nvgOnly=0; tracerStartTime=0.01; tracerEndTime=6; tracersEvery = 1; }; class CfgMagazines { class CA_Magazine; // External class reference class ItemCore; // External class reference class VehicleMagazine; // External class reference 20Rnd_762x51_Mag; // External class reference class 20Rnd_762x51_Mag_Yellow_Tracer : 20Rnd_762x51_Mag { tracersEvery = 1; author="SWTX"; picture = "\A3\weapons_f\data\UI\M_20Rnd_762x51_CA.paa"; ammo="B_762x51_Tracer_Yellow_DIM"; scope=2; initSpeed=910; lastRoundsTracer=20; displayName="(BCT) 7.62x51mm 20Rnd Mag Tracer Mag"; displayNameShort="7.62 Mk316 Tracer Yellow"; descriptionShort = "Caliber: 7.62x51mm NATO Tracer<br />Rounds: 20<br />Used in: Mk18 ABR"; }; }; Share this post Link to post Share on other sites
Bnae 1431 Posted March 28, 2017 Bracket at the end of CfgAmmo Spoiler class CfgPatches { class BCTracers_Edited { units[] = {""}; weapons[] = {""}; ammo[]={ "B_762x51_Tracer_Yellow_DIM"}; magazines[]={"20Rnd_762x51_Mag_Yellow_Tracer"}; requiredVersion = 0.1; requiredAddons[] = {"A3_Weapons_F", "A3_Weapons_F_Beta", "A3_Weapons_F_Gamma", "A3_weapons_f_exp"}; }; }; class CfgAmmo { class B_762x51_Ball; // External class reference class B_762x51_Tracer_Yellow_DIM : B_762x51_Ball { model = "BCTracers_Edited\Data\Bullettracer\yellow"; tracerScale = 0.08; airFriction=-0.00082029; caliber=1.8; hit=16; typicalSpeed=805; nvgOnly=0; tracerStartTime=0.01; tracerEndTime=6; tracersEvery = 1; }; }; class CfgMagazines { 20Rnd_762x51_Mag; // External class reference class 20Rnd_762x51_Mag_Yellow_Tracer : 20Rnd_762x51_Mag { tracersEvery = 1; author="SWTX"; picture = "\A3\weapons_f\data\UI\M_20Rnd_762x51_CA.paa"; ammo="B_762x51_Tracer_Yellow_DIM"; scope=2; initSpeed=910; lastRoundsTracer=20; displayName="(BCT) 7.62x51mm 20Rnd Mag Tracer Mag"; displayNameShort="7.62 Mk316 Tracer Yellow"; descriptionShort = "Caliber: 7.62x51mm NATO Tracer<br />Rounds: 20<br />Used in: Mk18 ABR"; }; }; Share this post Link to post Share on other sites
swtx 42 Posted March 29, 2017 Got another issue with my 100 rnd MX SW mag not showing up in the virtual arsenal. Thx in advance for your help. class CfgPatches { class BCTracers_Edited { units[] = {""}; weapons[] = {""}; ammo[]={ "B_762x51_Tracer_Yellow_DIM"}; magazines[]={"20Rnd_762x51_Mag_Yellow_Tracer"}; requiredVersion = 0.1; requiredAddons[] = {"A3_Weapons_F", "A3_Weapons_F_Beta", "A3_Weapons_F_Gamma", "A3_weapons_f_exp"}; }; }; class CfgAmmo { class BulletBase; // External class reference class SubmunitionCore; // External class reference class B_762x51_Ball; // External class reference class SubmunitionBase : SubmunitionCore {}; class B_65x39_Caseless; // External class reference class SubmunitionBullet : SubmunitionBase {}; class B_65x39_Caseless_red : B_65x39_Caseless { model = "BCTracers_Edited\Data\Bullettracer\red"; tracerScale = 0.08; airFriction=-0.00082029; caliber=1.8; hit=13; typicalSpeed=805; nvgOnly=0; tracerStartTime=0.05; tracerEndTime=6; tracersEvery = 1; }; }; class CfgMagazines { class CA_Magazine; // External class reference class ItemCore; // External class reference class VehicleMagazine; // External class reference class 30Rnd_9x21_Mag_SMG_02; // External class reference class 16Rnd_9x21_Mag; // External class reference class 100Rnd_65x39_caseless_mag; // External class reference class 100Rnd_65x39_caseless_mag_Tracer : 100Rnd_65x39_caseless_mag { tracersEvery = 1; author="SWTX"; picture = "\A3\weapons_f\data\UI\M_100Rnd_65x39_red_CA.paa"; ammo="B_65x39_Caseless_red"; scope=2; initSpeed=875; lastRoundsTracer=100; displayName="(BCT) 6.5x39mm 100Rnd Tracer Red"; displayNameShort="6.5x39mm T Red"; descriptionShort = "Caliber: 6.5x39mm NATO Tracer<br />Rounds: 100<br />Used in: MX SW Rifles and variants"; }; }; class cfgWeapons { // External class references class Pistol_Base_F; class Rifle_Base_F; class Rifle_Long_Base_F; class SMG_01_Base; class SMG_02_base_F; // MX SW 6.5 mm class arifle_MX_SW_F : Rifle_Base_F { magazines[]+={"100Rnd_65x39_caseless_mag_Tracer"}; }; }; Share this post Link to post Share on other sites