Browse Source

Final stage for chaingun, just needs the scripts.
Addded 15C because I such at branches

Erliens 4 years ago
parent
commit
5a8366a088

+ 85 - 0
addons - Copy/RD501_Weapons/DC_Family/DC_15c/config.cpp

@@ -0,0 +1,85 @@
+#define COMPONENT DC_15s
+#include "../../../RD501_main/config_macros.hpp"
+#include "../../_common/common.hpp"
+
+
+class CfgPatches
+{
+	class macro_patch_name(dc_15c)
+	{
+		author="RD501";
+		addonRootClass= macro_patch_name(weapons)
+		requiredAddons[]=
+		{
+			macro_patch_name(weapons)
+		};
+		requiredVersion=0.1;
+		units[]={};
+		weapons[]={
+			macro_new_weapon(DC,15c),
+		};
+	};
+};
+class Mode_SemiAuto;
+class Mode_Burst;
+class Mode_FullAuto;
+class SlotInfo;
+class CowsSlot;
+class MuzzleSlot;
+class PointerSlot;
+class UnderBarrelSlot;
+class WeaponSlotsInfo;
+class CfgWeapons
+{
+	class 3AS_DC15C_F;
+	class macro_new_weapon(DC,15c):3AS_DC15C_F
+	{
+		displayName="Republic DC-15C";
+		magazines[]=
+		{
+			"RD501_Mag_30rnd_10MW"
+		};
+		class WeaponSlotsInfo: WeaponSlotsInfo
+		{
+			mass = 30;
+			class CowsSlot: CowsSlot
+			{
+				access = 1;
+				compatibleItems[] = 
+				{
+					macro_new_weapon(scope,dc_15a_acog)
+				};
+
+			};
+		};
+	};
+};
+class CfgMagazines
+{
+	class 3AS_40Rnd_EC40_Mag;
+	class RD501_Mag_30rnd_10MW : 3AS_40Rnd_EC40_Mag
+	{
+		scope=2;
+		displayName="30 round 10MW Magazine";
+		picture="\3AS\3AS_Weapons\Data\Textures\Energy_Cell_Arsenal.paa";
+		ammo="RD501_10MW_Round";
+		count=30;
+		mass=12;
+		initSpeed=420;
+		tracersEvery=1;
+		lastRoundsTracer=30;
+		descriptionShort="Standard charge cell used by the DC-15C platform.";
+	};
+};
+class CfgAmmo
+{
+	class 3AS_EC40_BluePlasma;
+	class RD501_10MW_Round : 3AS_EC40_BluePlasma
+	{
+		hit=9;
+		cost=1.2;
+		airLock=1;
+		typicalSpeed=600;
+		caliber=0.86956501;
+	};
+};

+ 12 - 0
addons - Copy/RD501_Weapons/Z6/config.cpp

@@ -108,12 +108,24 @@ class cfgWeapons
     {
         scope=2;
         scopeArsenal=2;
+		reloadAction="broken";
         displayName="Z1000 Chaingun";
         _generalMacro="launch_RPG32_F";
 		magazines[]=
 		{
 			macro_new_mag(z1000,3000)
 		};
+    };
+	class macro_new_weapon_nofam(z1000u): 3AS_Chaingun
+    {
+        scope=1;
+        scopeArsenal=1;
+        displayName="Z1000 Chaingun(Used)";
+        _generalMacro="launch_RPG32_F";
+		magazines[]=
+		{
+			"none"
+		};
     };
 	class SWOP_BlasterRifle_Base;
 	class SWOP_Valken38XAuto:SWOP_BlasterRifle_Base

+ 7 - 2
addons - Copy/RD501_Weapons/config.cpp

@@ -513,9 +513,12 @@ class CfgMagazines
 	class macro_new_mag(z1000,3000) : 3AS_Chaingun_Drum_Mag
 	{
 		count = 3000;
+		tracersEvery=1;
 		ammo = macro_new_ammo(z1000)
 		displayName="3000Rnd Z1000 Chaingun Drum";
-		initSpeed=400;
+		initSpeed=860;
+		weight=400;
+		scope=1;
 	};
 	
 };
@@ -1018,7 +1021,9 @@ class CfgAmmo
 	class macro_new_ammo(z1000) : 3AS_Chaingun_Ammo
 	{
 		hit=57.45;
-		caliber=8;
+		caliber=3.5999999;
+		typicalSpeed=860;
+		model="\A3\Weapons_f\Data\bullettracer\tracer_green";
 	};