Browse Source

Attachments

Erliens 4 years ago
parent
commit
b7dc76d8c7

+ 19 - 0
addons - Copy/RD501_Weapons/DC_Family/DC_15a/config.cpp

@@ -110,6 +110,8 @@ class cfgWeapons
 		class WeaponSlotsInfo
 		{
 			class CowsSlot;
+			class MuzzleSlot;
+			class PointerSlot;
 		};
 	};
 	class macro_new_weapon(DC,r15a):3AS_DC15A_F
@@ -152,6 +154,23 @@ class cfgWeapons
 				};
 
 			};
+			class MuzzleSlot: MuzzleSlot
+			{
+				linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
+				displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
+				compatibleItems[]=
+				{
+					"RD501_muzzle_flash"
+				};
+				iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
+				iconPinpoint="Center";
+			};
+			class PointerSlot : PointerSlot
+			{
+				linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
+				displayName = "Pointer Slot";
+				compatibleItems[] = {"acc_flashlight","acc_pointer_IR"}; 
+			};
 		};
 	};
 	//#include "DC_15a__LE_rifle.hpp"

+ 23 - 6
addons - Copy/RD501_Weapons/DC_Family/DC_15c/config.cpp

@@ -20,7 +20,6 @@ class CfgPatches
 		};
 	};
 };
-
 class CfgWeapons
 {	
 	class RD501_stun_muzzle;
@@ -30,8 +29,10 @@ class CfgWeapons
 		class FullAuto;
 		class Single;
 		class WeaponSlotsInfo
-		{
-		class CowsSlot;	
+			{
+			class CowsSlot;	
+			class MuzzleSlot;
+			class PointerSlot;
 		};
 	};
 	class macro_new_weapon(DC,15c):3AS_DC15C_F
@@ -72,13 +73,29 @@ class CfgWeapons
 				iconPinpoint = "Bottom";
 				iconPosition[] = {0.5,0.35};
 				iconScale = 0.2;
-				linkProxy = "\a3\data_f\proxies\weapon_slots\top";
+				linkProxy = "\a3\data_f\proxies\weapon_slots\TOP";
 				scope = 0;
 				compatibleItems[] = 
 				{
-					macro_new_weapon(scope,dc_15a_acog)
+					macro_new_weapon(scope,dc_15a_acogtcw)
 				};
-
+			};
+			class MuzzleSlot: MuzzleSlot
+			{
+				linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
+				displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
+				compatibleItems[]=
+				{
+					"RD501_muzzle_flash"
+				};
+				iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
+				iconPinpoint="Center";
+			};
+			class PointerSlot : PointerSlot
+			{
+				linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
+				displayName = "Pointer Slot";
+				compatibleItems[] = {"acc_flashlight","acc_pointer_IR"}; 
 			};
 		};
 	};

+ 19 - 0
addons - Copy/RD501_Weapons/DC_Family/DC_15gl/config.cpp

@@ -32,6 +32,8 @@ class CfgWeapons
 		class WeaponSlotsInfo
 		{
 		class CowsSlot;	
+		class PointerSlot;
+		class MuzzleSlot;
 		};
 	};
 	class macro_new_weapon(DC,15gl):JLTS_DC15A_ugl_plastic
@@ -86,6 +88,23 @@ class CfgWeapons
 				};
 
 			};
+			class MuzzleSlot: MuzzleSlot
+			{
+				linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
+				displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
+				compatibleItems[]=
+				{
+					"RD501_muzzle_flash"
+				};
+				iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
+				iconPinpoint="Center";
+			};
+			class PointerSlot : PointerSlot
+			{
+				linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
+				displayName = "Pointer Slot";
+				compatibleItems[] = {"acc_flashlight","acc_pointer_IR"}; 
+			};
 		};
 	};
 };

+ 14 - 1
addons - Copy/RD501_Weapons/DC_Family/DC_15l/config.cpp

@@ -32,6 +32,8 @@ class CfgWeapons
 		class WeaponSlotsInfo
 		{
 		class CowsSlot;	
+		class MuzzleSlot;
+		class UnderBarrelSlot;
 		};
 	};
 	class macro_new_weapon(DC,15l):3AS_DC15L_F
@@ -66,7 +68,7 @@ class CfgWeapons
 				};
 
 			};
-		class UnderBarrelSlot
+		class UnderBarrelSlot:UnderBarrelSlot
 			{
 			linkProxy="\A3\Data_F_Mark\Proxies\Weapon_Slots\UNDERBARREL";
 			compatibleItems[]=
@@ -76,6 +78,17 @@ class CfgWeapons
 			iconPicture="\A3\Weapons_F_Mark\Data\UI\attachment_under.paa";
 			iconPinpoint="Bottom";
 			};
+			class MuzzleSlot: MuzzleSlot
+			{
+				linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
+				displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
+				compatibleItems[]=
+				{
+					"RD501_muzzle_flash"
+				};
+				iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
+				iconPinpoint="Center";
+			};
 		};
 	};
 };

+ 41 - 0
addons - Copy/RD501_Weapons/DC_Family/DC_15s/config.cpp

@@ -182,6 +182,12 @@ class cfgWeapons
 	{
 		class Single;
 		class FullAuto;
+		class WeaponSlotsInfo
+		{
+			class CowsSlot;
+			class MuzzleSlot;
+			class PointerSlot;
+		};
 	};
 	class macro_new_weapon(DC,r15s):3AS_DC15S_F
 	{
@@ -210,6 +216,41 @@ class cfgWeapons
 		{
 			reloadTime=0.066;
 		};
+		class WeaponSlotsInfo: WeaponSlotsInfo
+		{
+			mass = 30;
+			class CowsSlot: CowsSlot
+			{
+				displayName = "Optics Slot";
+				iconPicture = "\A3\Weapons_F\Data\UI\attachment_top.paa";
+				iconPinpoint = "Bottom";
+				iconPosition[] = {0.5,0.35};
+				iconScale = 0.2;
+				linkProxy = "\a3\data_f\proxies\weapon_slots\TOP";
+				scope = 0;
+				compatibleItems[] = 
+				{
+					
+				};
+			};
+			class MuzzleSlot: MuzzleSlot
+			{
+				linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
+				displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
+				compatibleItems[]=
+				{
+					"RD501_muzzle_flash"
+				};
+				iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
+				iconPinpoint="Center";
+			};
+			class PointerSlot : PointerSlot
+			{
+				linkProxy = "\A3\data_f\proxies\weapon_slots\SIDE";
+				displayName = "Pointer Slot";
+				compatibleItems[] = {"acc_flashlight","acc_pointer_IR"}; 
+			};
+		};
 	};
 };
 };

+ 24 - 2
addons - Copy/RD501_Weapons/Valken/config.cpp

@@ -31,6 +31,7 @@ class CfgWeapons
 		class WeaponSlotsInfo
 		{
 		class CowsSlot;	
+		class MuzzleSlot;
 		};
 	};
 	class macro_new_weapon_nofam(valken38x):3AS_Valken38X_F
@@ -57,7 +58,17 @@ class CfgWeapons
 				{
 					macro_new_weapon(scope,valken_6_12x)
 				};
-
+			};
+			class MuzzleSlot: MuzzleSlot
+			{
+				linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
+				displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
+				compatibleItems[]=
+				{
+					"RD501_muzzle_flash"
+				};
+				iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
+				iconPinpoint="Center";
 			};
 		};
 	};
@@ -68,6 +79,7 @@ class CfgWeapons
 		class WeaponSlotsInfo
 		{
 		class CowsSlot;	
+		class MuzzleSlot;
 		};
 	};
 	class macro_new_weapon_nofam(valken38y):JLTS_DW32S
@@ -95,7 +107,17 @@ class CfgWeapons
 				{
 					macro_new_weapon(scope,valken_6_12x)
 				};
-
+			};
+			class MuzzleSlot: MuzzleSlot
+			{
+				linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
+				displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
+				compatibleItems[]=
+				{
+					"RD501_muzzle_flash"
+				};
+				iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
+				iconPinpoint="Center";
 			};
 		};
 	};

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

@@ -108,6 +108,10 @@ class cfgWeapons
 	class JLTS_Z6:LMG_Mk200_F
 	{
 		class manual;
+		class WeaponSlotsInfo
+		{
+			class MuzzleSlot;
+		};
 	};
 	class macro_new_weapon_nofam(rZ6):JLTS_Z6
 	{
@@ -134,6 +138,21 @@ class cfgWeapons
 			burst = 25;
 			textureType = "fastAuto";
 		};
+		class WeaponSlotsInfo: WeaponSlotsInfo
+		{
+			mass = 30;
+			class MuzzleSlot: MuzzleSlot
+			{
+				linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
+				displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
+				compatibleItems[]=
+				{
+					"RD501_muzzle_flash"
+				};
+				iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
+				iconPinpoint="Center";
+			};
+		};
 		class HitEffects
 		{
 			Hit_Foliage_green="";

+ 76 - 0
addons - Copy/RD501_Weapons/_acc/config.cpp

@@ -0,0 +1,76 @@
+#define COMPONENT muzzleacc
+#include "../../RD501_main/config_macros.hpp"
+
+
+class CfgPatches
+{
+	class macro_patch_name(accxxx)
+	{
+		author="RD501";
+		addonRootClass= macro_patch_name(weapons)
+		requiredAddons[]=
+		{
+			macro_patch_name(weapons)
+		};
+		requiredVersion=0.1;
+		units[]={};
+		weapons[]={
+			"RD501_muzzle_flash"
+		};
+	};
+};
+
+class CfgWeapons
+{
+	class muzzle_snds_H;
+	class muzzle_snds_M:muzzle_snds_H
+	{
+		class ItemInfo;
+	};
+	class RD501_muzzle_flash:muzzle_snds_M
+	{
+		scope=2;
+		scopeInArsenal=2;
+		author="RD501";
+		displayName="Flash Hider Chip";
+		model="\A3\Weapons_F\Acc\acca_snds_lmg_blk_F.p3d";
+		picture="\RD501_Weapons\_acc\data\icon_flashhider.paa";
+		class ItemInfo: ItemInfo
+		{
+			mass=10;
+			class MagazineCoef
+			{
+				initSpeed=1.0;
+			};
+			class AmmoCoef
+			{
+				hit=1;
+				typicalSpeed=1;
+				airFriction=1;
+				visibleFire=1;
+				audibleFire=1;
+				visibleFireTime=1;
+				audibleFireTime=1;
+				cost = 1.0;
+			};
+			soundTypeIndex=0;
+			muzzleEnd="zaslehPoint";
+			alternativeFire="Zasleh2";
+			class MuzzleCoef
+			{
+				dispersionCoef=1.0;
+				artilleryDispersionCoef=1.0;
+				fireLightCoef=0.1;
+				recoilCoef=1.0;
+				recoilProneCoef=1.0;
+				minRangeCoef=1.0;
+				minRangeProbabCoef=1.0;
+				midRangeCoef=1.0;
+				midRangeProbabCoef=1.0;
+				maxRangeCoef=1.0;
+				maxRangeProbabCoef=1.0;
+			};
+		};
+		inertia=0.1;
+	};
+};

BIN
addons - Copy/RD501_Weapons/_acc/data/icon_flashhider.paa


+ 1 - 1
addons - Copy/RD501_Weapons/_mag/config.cpp

@@ -46,7 +46,7 @@ class CfgMagazines
 	};
 	class macro_new_mag(5mw,10) : 3AS_45Rnd_EC50_Mag
 	{
-		displayName="10 Round 5MW Cell";
+		displayName="15 Round 5MW Cell";
 		count = 15;
 		ammo=macro_new_ammo(5mw)
 		typicalSpeed=400;