Browse Source

EMP ammo for 15X

Erliens 4 years ago
parent
commit
6cb66dfdbc

+ 2 - 1
addons - Copy/RD501_Weapons/DC_Family/DC_15x/config.cpp

@@ -112,7 +112,8 @@ class cfgWeapons
 		baseWeapon=macro_new_weapon(DC,r15x)
 		magazines[]=
 		{
-			macro_new_mag(40mw,5)
+			macro_new_mag(40mw,5),
+			macro_new_mag(40mwemp,1)
 		};
 		class Single:Single
 		{

+ 10 - 0
addons - Copy/RD501_Weapons/_ammo/config.cpp

@@ -110,6 +110,16 @@ class CfgAmmo
 		airFriction=0;
 		explosive = 0.4;
 	};
+	class macro_new_ammo(40mwemp) : 3AS_EC70_BluePlasma
+	{
+		hit=0.01;
+		airLock=1;
+		typicalSpeed=1100;
+		caliber=1;
+		airFriction=0;
+		explosive = 0;
+		JLTS_isEMPAmmo=1;
+	};
 	class macro_new_ammo(50mw) : 3AS_EC80_BluePlasma
 	{
 		hit=300;

+ 8 - 0
addons - Copy/RD501_Weapons/_mag/config.cpp

@@ -129,6 +129,14 @@ class CfgMagazines
 		typicalSpeed=1100;
 		descriptionShort="High power magazine";
 	};
+	class macro_new_mag(40mwemp,1) : 3AS_45Rnd_EC50_Mag
+	{
+		displayName="1 Round 40MW EMP Cell";
+		count = 1;
+		ammo=macro_new_ammo(40mwemp)
+		typicalSpeed=1100;
+		descriptionShort="EMP Round";
+	};
 	class macro_new_mag(50mw,10) : 3AS_45Rnd_EC50_Mag
 	{
 		displayName="10 Round 50MW Cell";