瀏覽代碼

Merge pull request #42 from 501st-Aux-Mod-Team/EMPGL

Empgl
Erliens 4 年之前
父節點
當前提交
383d91a134

+ 6 - 1
addons - Copy/RD501_Units/opfor/B2/B2_Reskins.hpp

@@ -6,7 +6,9 @@ class macro_new_uniform_skin_class(opfor,B2_Armor): SWOP_B2_superdroid
         macro_unit_skin_textures\CIS\B2\rocket\ReskinB2_waist.paa,
         macro_unit_skin_textures\CIS\B2\rocket\ReskinB2_legs.paa
     };
-
+	JLTS_isDroid = 1; 
+    JLTS_hasEMPProtection = 0; 
+    JLTS_deathSounds = "DeathDroid"; 
     // armor = 18;
 	// armorStructural = 32;
 };
@@ -19,6 +21,9 @@ class macro_new_uniform_skin_class(opfor,B2_Aqua): SWOP_B2_superdroid
         macro_unit_skin_textures\CIS\B2\aqua\ReskinB2_waist_camo.paa,
         macro_unit_skin_textures\CIS\B2\aqua\ReskinB2_legs_camo.paa
     };
+	JLTS_isDroid = 1; 
+    JLTS_hasEMPProtection = 0; 
+    JLTS_deathSounds = "DeathDroid"; 
 };
 
 

+ 9 - 0
addons - Copy/RD501_Units/opfor/B2/config.cpp

@@ -62,6 +62,9 @@ class cfgWeapons
 		picture = "\SWOP_droids\data\ico\B2ico.paa";
 		nakedUniform = "U_BasicBody";
 		model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
+		JLTS_isDroid = 1; 
+        JLTS_hasEMPProtection = 0; 
+        JLTS_deathSounds = "DeathDroid";
 		class ItemInfo: UniformItem
 		{
 			uniformModel = "-";
@@ -85,6 +88,9 @@ class cfgWeapons
 		picture = "\SWOP_droids\data\ico\B2ico.paa";
 		nakedUniform = "U_BasicBody";
 		model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
+		JLTS_isDroid = 1; 
+        JLTS_hasEMPProtection = 0; 
+        JLTS_deathSounds = "DeathDroid";
 		class ItemInfo: UniformItem
 		{
 			uniformModel = "-";
@@ -111,6 +117,9 @@ class cfgWeapons
 		hiddenSelectionsMaterials[] = {};
 		hiddenUnderwaterSelections[] = {};
 		hiddenUnderwaterSelectionsTextures[] = {};
+		JLTS_isDroid = 1; 
+        JLTS_hasEMPProtection = 0; 
+        JLTS_deathSounds = "DeathDroid";
 		class ItemInfo: UniformItem
 		{
 				uniformModel = "-";

+ 86 - 0
addons - Copy/RD501_Weapons/Grenades/config.cpp

@@ -55,6 +55,8 @@ class CfgAmmo
 {
 	class SmokeShell;
 	class SWOP_SCAR_Dioxis;
+	class GrenadeHand_stone;
+	class G_40mm_HE;
 	class RD501_ShadowMag: SWOP_SCAR_Dioxis
 	{
 		model = "\thermalD\Dioxis.p3d";
@@ -67,10 +69,61 @@ class CfgAmmo
 		smokeColor[] = {0.2125,0.6258,0.48909998,1};
 		effectsSmoke = "Shadow_Smoke";
 	};
+	class RD501_grenade_emp_ammo: G_40mm_HE
+    {
+            JLTS_isEMPAmmo=1;
+            hit = 0.1;
+            indirectHit = 0.01;
+            indirectHitRange = 12;
+            timeToLive =30;
+            model = "\thermalD\EMP_Grenade_ammo.p3d";
+            fuseDistance = 1;
+
+            explosive = 0.0001;
+            deflecting = 5;
+            caliber = 5;
+
+            ace_frag_enabled = 0;
+            ace_frag_force = 0;
+            ace_frag_classes[] = {""};
+            ace_frag_metal = 0;
+            ace_frag_charge = 0;
+            ace_frag_gurney_c = 0;
+            ace_frag_gurney_k = "0";
+            ace_rearm_caliber = 0;
+            explosionEffects="JLTS_fx_exp_EMP";
+            grenadeBurningSound[]=
+            {
+                "EMPSoundLoop1",
+                0.5
+            };
+            EMPSoundLoop1[]=
+            {
+                "MRC\JLTS\weapons\Grenades\sounds\grenade_burning.wss",
+                0.125893,
+                1,
+                70
+            };
+            SoundSetExplosion[]=
+            {
+                "JLTS_GrenadeEMP_Exp_SoundSet",
+                "JLTS_GrenadeEMP_Tail_SoundSet",
+                "Explosion_Debris_SoundSet"
+            };
+            aiAmmoUsageFlags=0;
+            class CamShakeExplode
+            {
+                distance=10;
+                duration=1;
+                frequency=20;
+                power=0;
+            };
+    };
 };
 class CfgMagazines
 {
 	class SmokeShell;
+	class EGLM;
 	class RD501_BlueShadow_Grenade: SmokeShell
 	{
 		model = "\thermalD\Dioxis.p3d";
@@ -85,6 +138,39 @@ class CfgMagazines
 			libTextDesc = "";
 		};
 	};
+	class RD501_emp_GL_x1_mag : EGLM
+{
+	ammo = "RD501_grenade_emp_ammo";
+	count = 1;
+	descriptionShort = "1Rnd EMP DC-15A Grenade";
+	displayName = "1 Rnd EMP DC-15A Grenades";
+	displayNameShort = "1Rnd EMP DC-15A";
+	initSpeed = 120;
+	mass = 50;
+	maxLeadSpeed = 25;
+	maxThrowHoldTime = 2;
+	maxThrowIntensityCoef = 1.4;
+	minThrowIntensityCoef = 0.3;
+	model = "\thermalD\EMP_Grenade_ammo.p3d";
+	modelSpecial = "";
+	nameSound = "";
+	picture = "\thermalD\flash_x_ca.paa";
+	quickReload = 0 ;
+	reloadAction = "";
+	scope = 2;
+	selectionFireAnim = "zasleh";
+	simulation = "ProxyMagazines";
+	type = 16;
+	useAction = 0;
+	useActionTitle = "";
+	value = 1;
+	weaponpoolavailable = 1;
+	weight = 0;
+	class InventoryPlacements;
+	class Library {
+		libTextDesc = "";
+	}
+};
 };
 class CfgWeapons
 {

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

@@ -79,9 +79,9 @@ class CfgMagazineWells
 			"3Rnd_SmokePurple_Grenade_shell",
 			"3Rnd_SmokeBlue_Grenade_shell",
 			"3Rnd_SmokeOrange_Grenade_shell",
-			"ACE_HuntIR_M203"
+			"ACE_HuntIR_M203",
+			"RD501_emp_GL_x1_mag"
 		};
-
 	
 	};