Jump to content
doc. caliban

How to create a new ammo class?

Recommended Posts

Hello.

 

I'm trying to get some new ammo classes into the game, and with the examples, documentation, and feedback so far It still hasn't been working.

 

UPDATE: It's working!

 

The current config.cpp:

Spoiler

class CfgPatches
{
	class CSU_Ammo
	{
		name = "CSU Ops - Ammo";
		author = "CSU Ops";
		version = "1.0.3";
		build = "20170317.1356";
		requredVersion = 1.64;
		requiredAddons[] = {"A3_Weapons_F","A3_Weapons_F_Mark"};
		units[] = {};
		weapons[] = {};
		ammo[] = {
			"CSU_9x21_Ball",
			"CSU_9x21_124PlusP_TracerGreen",
			"CSU_9x21_124PlusP_TracerIR",
			"CSU_9x21_147SD_TracerGreen",
			"CSU_9x21_147SD_TracerIR",

			"CSU_45ACP_Ball",
			"CSU_45ACP_185PlusP_TracerGreen",
			"CSU_45ACP_185PlusP_TracerIR",
			"CSU_45ACP_230SD_TracerGreen",
			"CSU_45ACP_230SD_TracerIR",
			
			"CSU_65x39_Caseless_TracerGreen",
			"CSU_65x39_Caseless_TracerIR",

			"CSU_762x51_Mk316_Mod0_TracerGreen",
			"CSU_762x51_Mk316_Mod0_TracerIR",

			"CSU_338_NM_TracerGreen",
			"CSU_338_NM_TracerIR",

			"CSU_338_LM_Ball_TracerGreen",
			"CSU_338_LM_Ball_TracerIR",

			"CSU_408_Ball_TracerGreen",
			"CSU_408_Ball_TracerIR",

			"CSU_127x54_TracerGreen",
			"CSU_127x54_TracerIR"
		};
		
		magazines[] = {
			"CSU_16Rnd_9x21_124PlusP_TracerGreen_Mag",
			"CSU_16Rnd_9x21_124PlusP_TracerIR_Mag",
			"CSU_16Rnd_9x21_147SD_TracerGreen_Mag",
			"CSU_16Rnd_9x21_147SD_TracerIR_Mag",

			"CSU_30Rnd_9x21_124PlusP_TracerGreen_Mag_SMG_02",
			"CSU_30Rnd_9x21_124PlusP_TracerIR_Mag_SMG_02",
			"CSU_30Rnd_9x21_147SD_TracerGreen_Mag_SMG_02",
			"CSU_30Rnd_9x21_147SD_TracerIR_Mag_SMG_02",

			"CSU_11Rnd_45ACP_185PlusP_TracerGreen_Mag",
			"CSU_11Rnd_45ACP_185PlusP_TracerIR_Mag",
			"CSU_11Rnd_45ACP_230SD_TracerGreen_Mag",
			"CSU_11Rnd_45ACP_230SD_TracerIR_Mag",
		
			"CSU_30Rnd_45ACP_185PlusP_TracerGreen_Mag_SMG_01",
			"CSU_30Rnd_45ACP_185PlusP_TracerIR_Mag_SMG_01",
			"CSU_30Rnd_45ACP_230SD_TracerGreen_Mag_SMG_01",
			"CSU_30Rnd_45ACP_230SD_TracerIR_Mag_SMG_01",
			
			"CSU_30Rnd_65x39_Caseless_TracerGreen_Mag",
			"CSU_30Rnd_65x39_Caseless_TracerIR_Mag",
			"CSU_100Rnd_65x39_Caseless_TracerGreen_Mag",
			"CSU_100Rnd_65x39_Caseless_TracerIR_Mag",

			"CSU_20Rnd_762x51_Mk316_Mod0_TracerGreen_Mag",
			"CSU_20Rnd_762x51_Mk316_Mod0_TracerIR_Mag",

			"CSU_130Rnd_338_NM_TracerGreen_Mag",
			"CSU_130Rnd_338_NM_TracerIR_Mag",

			"CSU_10Rnd_338_LM_TracerGreen_Mag",
			"CSU_10Rnd_338_LM_TracerIR_Mag",

			"CSU_7Rnd_408_TracerGreen_Mag",
			"CSU_7Rnd_408_TracerIR_Mag",
			
			"CSU_127x54_TracerGreen_Mag",
			"CSU_127x54_TracerIR_Mag"
		};
	};
};

class CfgAmmo
{
	//External Class References
	class B_9x21_Ball;
	class B_45ACP_Ball;
	class B_65x39_Caseless_green ;
	class B_762x51_Ball;
	class B_338_NM_Ball;
	class B_338_Ball;
	class B_408_Ball;
	class B_127x54_Ball;

	//9mm 124gr +P
	class CSU_9x21_Ball: B_9x21_Ball {
		author = "CSU Ops";
		hit = 5;
		airFriction = -0.002; 
		typicalSpeed = 400;
		nvgOnly = 0;
		tracerStartTime = 0.007;
		tracerEndTime = 3;
		tracerScale = 0.5;
		tracerColor[] = {0.7,0.7,0.5,0.04};
		tracerColorR[] = {0.7,0.7,0.5,0.04};
	};
	
	//9mm 124gr +P (Green) Tracer
	class CSU_9x21_124PlusP_TracerGreen: CSU_9x21_Ball {
		author = "CSU Ops";
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_green";
	};
	
	//9mm 124gr +P IR Tracer
	class CSU_9x21_124PlusP_TracerIR: CSU_9x21_Ball {
		author = "CSU Ops";
	nvgOnly = 1;
	model  =  "\A3\Weapons_f\Data\bullettracer\tracer_yellow";
	};
	
	//9mm 147gr Subsonic Green Tracer
	class CSU_9x21_147SD_TracerGreen: CSU_9x21_Ball {
		author = "CSU Ops";
		typicalSpeed = 325;
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_green";
	};
	
	//9mm 147gr Subsonic IR Tracer
	class CSU_9x21_147SD_TracerIR: CSU_9x21_Ball {
		author = "CSU Ops";
		typicalSpeed = 325;
		nvgOnly = 1;
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_yellow";
	};
	
	
	//.45 ACP 185gr +P
	class CSU_45ACP_Ball: B_45ACP_Ball {
		author = "CSU Ops";
		hit = 6;
		airFriction = -0.0008;
		typicalSpeed = 377;
		nvgOnly = 0;
		tracerStartTime = 0.007;
		tracerEndTime = 3;
		tracerScale = 0.5;
		tracerColor[] = {0.7,0.7,0.5,0.04};
	};
	
	//.45 ACP 185gr +P (Green) Tracer
	class CSU_45ACP_185PlusP_TracerGreen: CSU_45ACP_Ball {
		author = "CSU Ops";
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_green";
	};
	
	//.45 ACP 185gr +P IR Tracer
	class CSU_45ACP_185PlusP_TracerIR: CSU_45ACP_Ball {
		author = "CSU Ops";
		nvgOnly = 1;
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_yellow";
	};
	
	//.45 ACP 230gr Subsonic Green Tracer
	class CSU_45ACP_230SD_TracerGreen: CSU_45ACP_Ball {
		author = "CSU Ops";
		typicalSpeed = 325;
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_green";
	};
	
	//.45 ACP 230gr Subsonic IR Tracer
	class CSU_45ACP_230SD_TracerIR: CSU_45ACP_Ball {
		author = "CSU Ops";
		typicalSpeed = 325;
		nvgOnly = 1;
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_yellow";
	};


	//6.5x39mm Green Tracer
	class CSU_65x39_Caseless_TracerGreen: B_65x39_Caseless_green {
		author = "CSU Ops";
		tracerStartTime = 0.007;
		tracerEndTime = 5;
		tracerScale = 0.6;
	};		
	
	//6.5x39mm IR Tracer
	class CSU_65x39_Caseless_TracerIR: CSU_65x39_Caseless_TracerGreen {
		author = "CSU Ops";
		nvgOnly = 1;
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_yellow";
	};

	
	//7.62x51mm Mk316 Mod 0 Green Tracer
	class CSU_762x51_Mk316_Mod0_TracerGreen: B_762x51_Ball {
		author = "CSU Ops";
		airFriction = -0.0008;
		caliber = 1.8;
		hit = 16;
		typicalSpeed = 790;
		nvgOnly = 0;
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_green";
		tracerStartTime = 0.007;
		tracerEndTime = 5;
		tracerScale = 0.6;
		tracerColor[] = {0.7,0.7,0.5,0.04};
	};
	
	//7.62x51mm Mk316 Mod 0 IR Tracer
	class CSU_762x51_Mk316_Mod0_TracerIR: CSU_762x51_Mk316_Mod0_TracerGreen {
		author = "CSU Ops";
		nvgOnly = 1;
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_yellow";
	};


	//.338 Norma Magnum Green Tracer
	class CSU_338_NM_TracerGreen: B_338_NM_Ball {
		author = "CSU Ops";
		airFriction = -0.0006;
		typicalSpeed = 807;
		nvgOnly = 0;
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_green";
		tracerStartTime = 0.07;
		tracerEndTime = 5;
		tracerScale = 0.7;
		tracerColor[] = {0.7,0.7,0.5,0.04};
	};
	
	//.338 Norma Magnum IR Tracer
	class CSU_338_NM_TracerIR: CSU_338_NM_TracerGreen {
		author = "CSU Ops";
		nvgOnly = 1;
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_yellow";
	};
	

	//.338 Lapua Magnum Green Tracer
	class CSU_338_LM_TracerGreen: B_338_Ball {
		author = "CSU Ops";
		airFriction = -0.0006;
		hit = 18;
		typicalSpeed = 915;
		nvgOnly = 0;
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_green";
		tracerStartTime = 0.07;
		tracerEndTime = 5;
		tracerScale = 0.7;
		tracerColor[] = {0.7,0.7,0.5,0.04};
	};
	
	//.338 Lapua Magnum IR Tracer
	class CSU_338_LM_TracerIR: CSU_338_LM_TracerGreen {
		author = "CSU Ops";
		nvgOnly = 1;
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_yellow";
	};	


	//.408 Cheyenne Tactical Green Tracer	
	class CSU_408_TracerGreen: B_408_Ball {
		author = "CSU Ops";
		airFriction = -0.0004;
		typicalSpeed = 867;
		nvgOnly = 0;
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_green";
		tracerStartTime = 0.07;
		tracerEndTime = 5;
		tracerScale = 1;
		tracerColor[] = {0.7,0.7,0.5,0.04};
	};
	
	//.408 Cheyenne Tactical IR Tracer
	class CSU_408_TracerIR: CSU_408_TracerGreen {
		author = "CSU Ops";
		nvgOnly = 1;
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_yellow";
	};
	
	//12.7x54mm APDS Green Tracer
	class  CSU_127x54_TracerGreen: B_127x54_Ball {
		author = "CSU Ops";
		hit = 21;
		airFriction = -0.0004;
		typicalSpeed = 330;
		nvgOnly = 0;
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_green";
		tracerStartTime = 0.07;
		tracerEndTime = 5;
		tracerScale = 1;
		tracerColor[] = {0.7,0.7,0.5,0.04};
	};
	
	//12.7x54mm APDS IR Tracer
	class  CSU_127x54_TracerIR: CSU_127x54_TracerGreen {
		author = "CSU Ops";
		nvgOnly = 1;
		model  =  "\A3\Weapons_f\Data\bullettracer\tracer_yellow";
	};
};

class CfgMagazines
{
	//External Class References
	class 16Rnd_9x21_Mag;
	class 30Rnd_9x21_Mag;
	class 11Rnd_45ACP_Mag;
	class 30Rnd_45ACP_Mag_SMG_01;
	class 30Rnd_9x21_Mag_SMG_02;
	class 30Rnd_65x39_caseless_mag;
	class 20Rnd_762x51_Mag;
	class 130Rnd_338_Mag;
	class 10Rnd_338_Mag;
	class 7Rnd_408_Mag;
	class 10Rnd_127x54_Mag;
	
	//9mm 124gr +P (Green) Tracer 16Rnd
	class CSU_16Rnd_9x21_124PlusP_TracerGreen_Mag: 16Rnd_9x21_Mag {
		author = "CSU Ops";
		ammo = "CSU_9x21_124PlusP_TracerGreen";
		scope = 2;
		initSpeed = 390;
		lastRoundsTracer = 3;
		displayName = "CSU 9mm +P 16Rnd Mag Tracer (Green)";
		displayNameShort = "9mm +P (Green)";
		descriptionShort = "Caliber: 9mm +P 124gr<br />Rounds: 16<br />Used in: PDW2000, P07, ROOK-40";
	};
	
	//9mm 124gr +P IR Tracer 16Rnd
	class CSU_16Rnd_9x21_124PlusP_TracerIR_Mag:  16Rnd_9x21_Mag {
		author = "CSU Ops";
		ammo = "CSU_9x21_124PlusP_TracerIR";
		scope = 2;
		initSpeed = 390;
		lastRoundsTracer = 3;
		displayName = "CSU 9mm +P 16Rnd Mag Tracer (IR)";
		displayNameShort = "9mm +P (IR)";
		descriptionShort = "Caliber: 9mm +P 124gr<br />Rounds: 16<br />Used in: PDW2000, P07, ROOK-40";
	};
	
	//9mm 147gr Subsonic Green Tracer 16Rnd
	class CSU_16Rnd_9x21_147SD_TracerGreen_Mag:  16Rnd_9x21_Mag {
		author = "CSU Ops";
		ammo = "CSU_9x21_147SD_TracerGreen";
		scope = 2;
		initSpeed = 325;
		lastRoundsTracer = 3;
		displayName = "CSU 9mm SD 16Rnd Mag Tracer (Green)";
		displayNameShort = "9mm SD (Green)";
		descriptionShort = "Caliber: 9mm SD 147gr<br />Rounds: 16<br />Used in: PDW2000, P07, ROOK-40";
	};
	
	//9mm 147gr Subsonic IR Tracer 16Rnd
	class CSU_16Rnd_9x21_147SD_TracerIR_Mag: 16Rnd_9x21_Mag {
		author = "CSU Ops";
		ammo = "CSU_9x21_147SD_TracerIR";
		scope = 2;
		initSpeed = 325;
		lastRoundsTracer = 3;
		displayName = "CSU 9mm SD 16Rnd Mag Tracer (IR)";
		displayNameShort = "9mm SD (IR)";
		descriptionShort = "Caliber: 9mm SD 147gr<br />Rounds: 16<br />Used in: PDW2000, P07, ROOK-40";
	};
	
	//9mm 124gr +P (Green) Tracer 30Rnd
	class CSU_30Rnd_9x21_124PlusP_TracerGreen_Mag_SMG_02: 30Rnd_9x21_Mag_SMG_02 {
		author = "CSU Ops";
		ammo = "CSU_9x21_124PlusP_TracerGreen";
		scope = 2;
		initSpeed = 400;
		tracersEvery = 3;
		lastRoundsTracer = 6;
		displayName = "CSU 9mm +P 30Rnd Mag Tracer (Green)";
		displayNameShort = "9mm +P (Green)";
		descriptionShort = "Caliber: 9mm +P 124gr<br />Rounds: 30<br />Used in: Sting, Protector";
	};
	
	//9mm 124gr +P IR Tracer 30Rnd
	class CSU_30Rnd_9x21_124PlusP_TracerIR_Mag_SMG_02: 30Rnd_9x21_Mag_SMG_02 {
		author = "CSU Ops";
		ammo = "CSU_9x21_124PlusP_TracerIR";
		scope = 2;
		initSpeed = 400;
		tracersEvery = 3;
		lastRoundsTracer = 6;
		displayName = "CSU 9mm +P 30Rnd Mag Tracer (IR)";
		displayNameShort = "9mm +P (IR)";
		descriptionShort = "Caliber: 9mm +P 124gr<br />Rounds: 30<br />Used in: Sting, Protector";
	};	
	
	//9mm 147gr Subsonic Green Tracer 30Rnd
	class CSU_30Rnd_9x21_147SD_TracerGreen_Mag_SMG_02: 30Rnd_9x21_Mag_SMG_02 {
		author = "CSU Ops";
		ammo = "CSU_9x21_147SD_TracerGreen";
		scope = 2;
		initSpeed = 325;
		tracersEvery = 3;
		lastRoundsTracer = 6;
		displayName = "CSU 9mm SD 30Rnd Mag Tracer (Green)";
		displayNameShort = "9mm SD (Green)";
		descriptionShort = "Caliber: 9mm SD 147gr<br />Rounds: 30<br />Used in: Sting, Protector";
	};
	
	//9mm 147gr Subsonic IR Tracer 30Rnd
	class CSU_30Rnd_9x21_147SD_TracerIR_Mag_SMG_02: 30Rnd_9x21_Mag_SMG_02 {
		author = "CSU Ops";
		ammo = "CSU_9x21_147SD_TracerIR";
		scope = 2;
		initSpeed = 325;
		tracersEvery = 3;
		lastRoundsTracer = 6;
		displayName = "CSU 9mm SD 30Rnd Mag Tracer (IR)";
		displayNameShort = "9mm SD (IR)";
		descriptionShort = "Caliber: 9mm SD 147gr<br />Rounds: 30<br />Used in: Sting, Protector";
	};
	
	
	//.45 ACP 185gr +P (Green) Tracer 11Rnd
	class CSU_11Rnd_45ACP_185PlusP_TracerGreen_Mag: 11Rnd_45ACP_Mag {
		author = "CSU Ops";
		ammo = "CSU_45ACP_185PlusP_TracerGreen";
		scope = 2;
		initSpeed = 377;
		lastRoundsTracer = 3;
		displayName = "CSU .45 ACP +P 11Rnd Mag Tracer (Green)";
		displayNameShort = ".45 ACP +P (Green)";
		descriptionShort = "Caliber: .45 ACP +P 185gr<br />Rounds: 11<br />Used in: 4-five";
	};
	
	//.45 ACP 185gr +P IR Tracer 11Rnd
	class CSU_11Rnd_45ACP_185PlusP_TracerIR_Mag: 11Rnd_45ACP_Mag {
		author = "CSU Ops";
		ammo = "CSU_45ACP_185PlusP_TracerIR";
		scope = 2;
		initSpeed = 377;
		lastRoundsTracer = 3;
		displayName = "CSU .45 ACP +P 11Rnd Mag Tracer (IR)";
		displayNameShort = ".45 ACP +P (IR)";
		descriptionShort = "Caliber: .45 ACP +P 185gr<br />Rounds: 11<br />Used in: 4-five";
	};
	
	//.45 ACP 185gr +P IR Tracer 11Rnd
	class CSU_11Rnd_45ACP_230SD_TracerGreen_Mag: 11Rnd_45ACP_Mag {
		author = "CSU Ops";
		ammo = "CSU_45ACP_230SD_TracerGreen";
		scope = 2;
		initSpeed = 377;
		lastRoundsTracer = 3;
		displayName = "CSU .45 ACP SD 11Rnd Mag Tracer (Green)";
		displayNameShort = ".45 ACP SD (Green)";
		descriptionShort = "Caliber: .45 ACP SD 230gr<br />Rounds: 11<br />Used in: 4-five";
	};
	
	//.45 ACP 230gr Subsonic IR Tracer 11Rnd
	class CSU_11Rnd_45ACP_230SD_TracerIR_Mag: 11Rnd_45ACP_Mag {
		author = "CSU Ops";
		ammo = "CSU_45ACP_230SD_TracerIR";
		scope = 2;
		initSpeed = 325;
		lastRoundsTracer = 3;
		displayName = "CSU .45 ACP SD 11Rnd Mag Tracer (IR)";
		displayNameShort = ".45 ACP SD (IR)";
		descriptionShort = "Caliber: .45 ACP SD 230gr<br />Rounds: 11<br />Used in: 4-five";
	};	
	
	//.45 ACP 185gr +P (Green) Tracer 30Rnd
	class CSU_30Rnd_45ACP_185PlusP_TracerGreen_Mag_SMG_01: 30Rnd_45ACP_Mag_SMG_01 {
		author = "CSU Ops";
		ammo = "CSU_45ACP_185PlusP_TracerGreen";
		scope = 2;
		initSpeed = 390;
		tracersEvery = 2;
		lastRoundsTracer = 6;
		displayName = "CSU .45 ACP +P 30Rnd Mag Tracer (Green)";
		displayNameShort = ".45 ACP +P (Green)";
		descriptionShort = "Caliber: .45 ACP +P 185gr<br />Rounds: 30<br />Used in: Vermin SMG";
	};

	//.45 ACP 185gr +P IR Tracer 30Rnd
	class CSU_30Rnd_45ACP_185PlusP_TracerIR_Mag_SMG_01: 30Rnd_45ACP_Mag_SMG_01 {
		author = "CSU Ops";
		ammo = "CSU_45ACP_185PlusP_TracerIR";
		scope = 2;
		initSpeed = 390;
		tracersEvery = 2;
		lastRoundsTracer = 6;
		displayName = "CSU .45 ACP +P 30Rnd Mag Tracer (IR)";
		displayNameShort = ".45 ACP +P (IR)";
		descriptionShort = "Caliber: .45 ACP +P 185gr<br />Rounds: 30<br />Used in: Vermin SMG";
	};	
	
	//.45 ACP 230gr Subsonic Green Tracer 30Rnd
	class CSU_30Rnd_45ACP_230SD_TracerGreen_Mag_SMG_01: 30Rnd_45ACP_Mag_SMG_01 {
		author = "CSU Ops";
		ammo = "CSU_45ACP_230SD_TracerGreen";
		scope = 2;
		initSpeed = 325;
		tracersEvery = 2;
		lastRoundsTracer = 6;
		displayName = "CSU .45 ACP SD 30Rnd Mag Tracer (Green)";
		displayNameShort = ".45 ACP SD (Green)";
		descriptionShort = "Caliber: .45 ACP SD 230gr<br />Rounds: 30<br />Used in: Vermin SMG";
	};

	//.45 ACP 230gr Subsonic IR Tracer 30Rnd
	class CSU_30Rnd_45ACP_230SD_TracerIR_Mag_SMG_01: 30Rnd_45ACP_Mag_SMG_01 {
		author = "CSU Ops";
		ammo = "CSU_45ACP_230SD_TracerIR";
		scope = 2;
		initSpeed = 325;
		tracersEvery = 2;
		lastRoundsTracer = 6;
		displayName = "CSU .45 ACP SD 30Rnd Mag Tracer (IR)";
		displayNameShort = ".45 ACP SD (IR)";
		descriptionShort = "Caliber: .45 ACP SD 230gr<br />Rounds: 30<br />Used in: Vermin SMG";
	};	
	

	//6.5x39mm Green Tracer 30Rnd
	class CSU_30Rnd_65x39_Caseless_TracerGreen_Mag: 30Rnd_65x39_caseless_mag {
		author = "CSU Ops";
		ammo = "CSU_65x39_Caseless_TracerGreen";
		scope = 2;
		tracersEvery = 1;
		lastRoundsTracer = 30;
		displayName = "CSU 6.5x39 30Rnd Mag Tracer (Green)";
		displayNameShort = "6.5x39mm (Green)";
		descriptionShort = "Caliber: 6.5x39mm<br/>Rounds: 30<br />Used in:Used in: All MX variants";
	};
	
	//6.5x39mm IR Tracer 30Rnd
	class CSU_30Rnd_65x39_Caseless_TracerIR_Mag: 30Rnd_65x39_caseless_mag {
		author = "CSU Ops";
		ammo = "CSU_65x39_Caseless_TracerIR";
		scope = 2;
		tracersEvery = 1;
		lastRoundsTracer = 30;
		displayName = "CSU 6.5x39 30Rnd Mag Tracer (IR)";
		displayNameShort = "6.5x39mm (IR)";
		descriptionShort = "Caliber: 6.5x39mm<br/>Rounds: 30<br />Used in:Used in: All MX variants";
	};

	//6.5x39mm Green Tracer 100Rnd
	class CSU_100Rnd_65x39_Caseless_TracerGreen_Mag: 30Rnd_65x39_caseless_mag {
		author = "CSU Ops";
		ammo = "CSU_65x39_Caseless_TracerGreen";
		scope = 2;
		tracersEvery = 1;
		lastRoundsTracer = 100;
		displayName = "CSU 6.5x39 100Rnd Mag Tracer (Green)";
		displayNameShort = "6.5x39mm (Green)";
		descriptionShort = "Caliber: 6.5x39mm<br/>Rounds: 100<br />Used in: MXM";
	};
	
	//6.5x39mm IR Tracer 100Rnd
	class CSU_100Rnd_65x39_Caseless_TracerIR_Mag: 30Rnd_65x39_caseless_mag {
		author = "CSU Ops";
		ammo = "CSU_65x39_Caseless_TracerIR";
		scope = 2;
		tracersEvery = 1;
		lastRoundsTracer = 100;
		displayName = "CSU 6.5x39 100Rnd Mag Tracer (IR)";
		displayNameShort = "6.5x39mm (IR)";
		descriptionShort = "Caliber: 6.5x39mm<br/>Rounds: 100<br />Used in: MXM";
	};

	
	//7.62x51 Mk316 Mod 0 Green Tracer 20Rnd
	class CSU_20Rnd_762x51_Mk316_Mod0_TracerGreen_Mag: 20Rnd_762x51_Mag {
		author = "CSU Ops";
		ammo = "CSU_762x51_Mk316_Mod0_TracerGreen";
		scope = 2;
		initSpeed = 790;
		tracersEvery = 1;
		lastRoundsTracer = 20;
		displayName = "CSU 7.62 20Rnd Mag Tracer (Green)";
		displayNameShort = "7.62 Mk316 (Green)";
		descriptionShort = "Caliber: 7.62x51mm Mk316 Mod 0<br/>Rounds: 20<br />Used in: Mk18 ABR, Mk-I EMR, Mk14";
	};
	
	//7.62x51 Mk316 Mod 0 IR Tracer 20Rnd
	class CSU_20Rnd_762x51_Mk316_Mod0_TracerIR_Mag: 20Rnd_762x51_Mag {
		author = "CSU Ops";
		ammo = "CSU_762x51_Mk316_Mod0_TracerIR";
		scope = 2;
		initSpeed = 790;
		tracersEvery = 1;
		lastRoundsTracer = 20;
		displayName = "CSU 7.62 20Rnd Mag Tracer (IR)";
		displayNameShort = "7.62 Mk316 (IR)";
		descriptionShort = "Caliber: 7.62x51mm Mk316 Mod 0<br/>Rounds: 20<br />Used in: Mk18 ABR, Mk-I EMR, Mk14";
	};
	
	
	//.338 Norma Magnum Green Tracer 130Rnd
	class CSU_130Rnd_338_NM_TracerGreen_Mag: 130Rnd_338_Mag {
		author = "CSU Ops";
		ammo = "CSU_338_NM_TracerGreen";
		scope = 2;
		initSpeed = 807;
		tracersEvery = 1;
		lastRoundsTracer = 130;
		displayName = "CSU .338 NM 130Rnd Belt Tracer (Green)";
		displayNameShort = ".338 NM (Green)";
		descriptionShort = "Caliber: .338 Norma Magnum<br/>Rounds: 130<br />Used in: SPMG";
	};
	
	//.338 Norma Magnum IR Tracer 130Rnd
	class CSU_130Rnd_338_NM_TracerIR_Mag: 130Rnd_338_Mag {
		author = "CSU Ops";
		ammo = "CSU_338_NM_TracerIR";
		scope = 2;
		initSpeed = 807;
		tracersEvery = 1;
		lastRoundsTracer = 130;
		displayName = "CSU .338 NM 130Rnd Belt Tracer (IR)";
		displayNameShort = ".338 NM (IR)";
		descriptionShort = "Caliber: .338 Norma Magnum<br/>Rounds: 130<br />Used in: SPMG";
	};
	

	//.338 Lapua Magnum Green Tracer 10Rnd
	class CSU_10Rnd_338_LM_TracerGreen_Mag: 10Rnd_338_Mag {
		author = "CSU Ops";
		ammo = "CSU_338_LM_TracerGreen";
		scope = 2;
		initSpeed = 915;
		tracersEvery = 1;
		lastRoundsTracer = 10;
		displayName = "CSU .338 10Rnd Mag Tracer (Green)";
		displayNameShort = ".338 LM (Green)";
		descriptionShort = "Caliber: .338 Lapua Magnum<br />Rounds: 10<br />Used in: MAR-10";
	};
	
	//.338 Lapua Magnum IR Tracer 10Rnd
	class CSU_10Rnd_338_LM_TracerIR_Mag: 10Rnd_338_Mag {
		author = "CSU Ops";
		ammo = "CSU_338_LM_TracerIR";
		scope = 2;
		initSpeed = 915;
		tracersEvery = 1;
		lastRoundsTracer = 10;
		displayName = "CSU .338 10Rnd Mag Tracer (IR)";
		displayNameShort = ".338 LM (IR)";
		descriptionShort = "Caliber: .338 Lapua Magnum<br />Rounds: 10<br />Used in: MAR-10";
	};	
	

	//.408 Cheyenne Tactical Green Tracer 7Rnd
	class CSU_7Rnd_408_TracerGreen_Mag: 7Rnd_408_Mag {
		author = "CSU Ops";
		ammo = "CSU_408_TracerGreen";
		scope = 2;
		initSpeed = 867;
		tracersEvery = 1;
		lastRoundsTracer = 7;
		displayName = "CSU .408 7Rnd Mag Tracer (Green)";
		displayNameShort = ".408 (Green)";
		descriptionShort = "Caliber: .408 Cheyenne Tactical<br/>Rounds: 7<br />Used in: M320 LRR";
	};
	
	//.408 Cheyenne Tactical IR Tracer 7Rnd
	class CSU_7Rnd_408_TracerIR_Mag: 7Rnd_408_Mag {
		author = "CSU Ops";
		ammo = "CSU_408_TracerIR";
		scope = 2;
		initSpeed = 867;
		tracersEvery = 1;
		lastRoundsTracer = 7;
		displayName = "CSU .408 7Rnd Mag Tracer (IR)";
		displayNameShort = ".408 (IR)";
		descriptionShort = "Caliber: .408 Cheyenne Tactical<br/>Rounds: 7<br />Used in: M320 LRR";
	};


	//12.7x54 APDS Green Tracer 10Rnd
	class CSU_127x54_TracerGreen_Mag: 10Rnd_127x54_Mag {
		author = "CSU Ops";
		ammo = "CSU_127x54_TracerGreen";
		scope = 2;
		initSpeed = 330;
		tracerEvery = 1;
		lastRoundsTracer = 10;
		displayName = "CSU 12.7x54mm 10Rnd Mag Tracer (Green)";
		displayNameShort = "12.7x54mm (Green)";
		descriptionShort = "Caliber: 12.7x54mm APDS<br/>Rounds: 10<br />Used in: ASP-1 Kir";
	};
	
	//12.7x54 APDS IR Tracer 10Rnd
	class CSU_127x54_TracerIR_Mag: 10Rnd_127x54_Mag {
		author = "CSU Ops";
		ammo = "CSU_127x54_TracerIR";
		scope = 2;
		initSpeed = 330;
		tracerEvery = 1;
		lastRoundsTracer = 10;
		displayName = "CSU 12.7x54mm 10Rnd Mag Tracer (IR)";
		displayNameShort = "12.7x54mm (IR)";
		descriptionShort = "Caliber: 12.7x54mm APDS<br/>Rounds: 10<br />Used in: ASP-1 Kir";
	};
};

class cfgWeapons
{
	//External class references
	class Pistol_Base_F;
	class SMG_01_Base;
	class SMG_02_base_F;
	class SMG_05_base_F;
	class Rifle_Base_F;
	class arifle_MX_Base_F;
	class Rifle_Long_Base_F;
	class LRR_base_F;
	class DMR_04_base_F;
	
	//P07 9mm
	class hgun_P07_F: Pistol_Base_F {
		initSpeed = 0;
		magazines[] = {
			"CSU_16Rnd_9x21_124PlusP_TracerGreen_Mag",
			"CSU_16Rnd_9x21_124PlusP_TracerIR_Mag",
			"CSU_16Rnd_9x21_147SD_TracerGreen_Mag",
			"CSU_16Rnd_9x21_147SD_TracerIR_Mag"
		};
	};
	
	//Rook-40 9mm
	class hgun_Rook40_F: Pistol_Base_F {
		initSpeed = 0;
		magazines[] = {
			"CSU_16Rnd_9x21_124PlusP_TracerGreen_Mag",
			"CSU_16Rnd_9x21_124PlusP_TracerIR_Mag",
			"CSU_16Rnd_9x21_147SD_TracerGreen_Mag",
			"CSU_16Rnd_9x21_147SD_TracerIR_Mag"
		};
	};
	
	//PDW2000 9mm
	class pdw2000_base_F: Rifle_Base_F {
		initSpeed = 0;
		magazines[] = {
			"CSU_16Rnd_9x21_124PlusP_TracerGreen_Mag",
			"CSU_16Rnd_9x21_124PlusP_TracerIR_Mag",
			"CSU_16Rnd_9x21_147SD_TracerGreen_Mag",
			"CSU_16Rnd_9x21_147SD_TracerIR_Mag"
		};
	};
	
	//Sting 9mm
	class SMG_02_F: SMG_02_base_F {
		initSpeed = 0;
		magazines[] = {
			"CSU_30Rnd_9x21_124PlusP_TracerGreen_Mag_SMG_02",
			"CSU_30Rnd_9x21_124PlusP_TracerIR_Mag_SMG_02",
			"CSU_30Rnd_9x21_147SD_TracerGreen_Mag_SMG_02",
			"CSU_30Rnd_9x21_147SD_TracerIR_Mag_SMG_02"
		};
	};
	
	//Protector 9mm
	class SMG_05_F: SMG_05_base_F {
		initSpeed = 0;
		magazines[] = {
			"CSU_30Rnd_9x21_124PlusP_TracerGreen_Mag_SMG_02",
			"CSU_30Rnd_9x21_124PlusP_TracerIR_Mag_SMG_02",
			"CSU_30Rnd_9x21_147SD_TracerGreen_Mag_SMG_02",
			"CSU_30Rnd_9x21_147SD_TracerIR_Mag_SMG_02"
		};
	};

	//FN 4-Five .45 ACP
	class hgun_Pistol_heavy_01_F: Pistol_Base_F	{
		initSpeed = 0;
		magazines[] = {
			"CSU_11Rnd_45ACP_185PlusP_TracerGreen_Mag",
			"CSU_11Rnd_45ACP_185PlusP_TracerIR_Mag",
			"CSU_11Rnd_45ACP_230SD_TracerGreen_Mag",
			"CSU_11Rnd_45ACP_230SD_TracerIR_Mag"
		};
	};
	
	//Vermin .45 ACP
	class SMG_01_F: SMG_01_Base {
		initSpeed = 0;
		magazines[] = {
			"CSU_30Rnd_45ACP_185PlusP_TracerGreen_Mag_SMG_01",
			"CSU_30Rnd_45ACP_185PlusP_TracerIR_Mag_SMG_01",
			"CSU_30Rnd_45ACP_230SD_TracerGreen_Mag_SMG_01",
			"CSU_30Rnd_45ACP_230SD_TracerIR_Mag_SMG_01"
		};
	};
	
	//MX Rifles 6.5x39mm Caseless
	class arifle_MX_Base_F: Rifle_Base_F {
		magazines[] = {
			"CSU_30Rnd_65x39_Caseless_TracerGreen_Mag",
			"CSU_30Rnd_65x39_Caseless_TracerIR_Mag"
		};
	};	

	//MXM SAW 6.5x39mm Caseless
	class arifle_MXM_F: arifle_MX_Base_F {
		magazines[] = {
			"CSU_30Rnd_65x39_Caseless_TracerGreen_Mag",
			"CSU_30Rnd_65x39_Caseless_TracerIR_Mag",
			"CSU_100Rnd_65x39_Caseless_TracerGreen_Mag",
			"CSU_100Rnd_65x39_Caseless_TracerIR_Mag"
		};
	};
	
	//Mk18 ABR 7.62x51mm
	class EBR_base_F: Rifle_Long_Base_F	{
		initSpeed = 0;
		magazines[] = {
			"CSU_20Rnd_762x51_Mk316_Mod0_TracerGreen_Mag",
			"CSU_20Rnd_762x51_Mk316_Mod0_TracerIR_Mag"
		};
	};
	
	//Mk-I EMR 7.62x51mm
	class DMR_03_base_F: Rifle_Long_Base_F {
		initSpeed = 0;
		magazines[] = {
			"CSU_20Rnd_762x51_Mk316_Mod0_TracerGreen_Mag",
			"CSU_20Rnd_762x51_Mk316_Mod0_TracerIR_Mag"
		};
	};
	
	//Mk14 7.62x51mm
	class DMR_06_base_F: Rifle_Long_Base_F {
		initSpeed = 0;
		magazines[] = {
			"CSU_20Rnd_762x51_Mk316_Mod0_TracerGreen_Mag",
			"CSU_20Rnd_762x51_Mk316_Mod0_TracerIR_Mag"
		};
	};
	
	//SPMG .338 Norma Magnum
	class MMG_02_base_F: Rifle_Long_Base_F {
		initSpeed = 0;
		magazines[] = {
			"CSU_130Rnd_338_NM_TracerGreen_Mag",
			"CSU_130Rnd_338_NM_TracerIR_Mag"
		};
	};
	
	//MAR-10 .338 Lapua Magnum
	class DMR_02_base_F: Rifle_Long_Base_F {
		initSpeed = 0;
		magazines[] = {
			"CSU_10Rnd_338_LM_TracerGreen_Mag",
			"CSU_10Rnd_338_LM_TracerIR_Mag"
		};
	};
	
	//M320 LRR .408 Cheyenne Tactical
	class srifle_LRR_F : LRR_base_F {
		initSpeed = 0;
		magazines[] = {
			"CSU_7Rnd_408_TracerGreen_Mag",
			"CSU_7Rnd_408_TracerIR_Mag"
		};
	};
	
	//ASP-1 Kir 12.7x54mm APDS
	class srifle_DMR_04_F: DMR_04_base_F {
		initSpeed = 0;
		flashSize = 0.95;
		magazines[] = {
			"CSU_127x54_TracerGreen_Mag",
			"CSU_127x54_TracerIR_Mag"
		};
	};
};

 

 

Share this post


Link to post
Share on other sites

Not quite there yet, but I think I must be close.

 

Updated code in Post #1.

 

 

Share this post


Link to post
Share on other sites

Try removing author from ammo classes. Thats the only thing i noticed

Share this post


Link to post
Share on other sites

Hi, Bnae.  Thanks for the reply.   I checked and that seems to be ok, but I did get clued in to a few syntax errors and unneeded imports.  I've fixed those and will test everything at some point today.

 

Updated the code in Post #1.

 

Share this post


Link to post
Share on other sites

Oh man.   Everything was fine, and after today's patch, my new config crashes on startup.  I even stripped it all the way down to one new class each for ammo and a magazine. 

 

Murphy is alive and well.

 

Fixed.  Was inheriting Bullet_Base instead of BulletBase.  Didn't cause any issues as it turns out I wasn't using the class anymore anyway, but 1.66 ignored the nonexistent class name and 1.68 completely craps the bed --- CDT during startup.  The error handling seems to have slipped somewhere with the new update. 

 

Code in Post #1 updated.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×