Explorar o código

Shields adds and fixes

Erliens %!s(int64=4) %!d(string=hai) anos
pai
achega
ae530a6870

+ 73 - 0
addons - Copy/RD501_Droids/BX/config.cpp

@@ -12,6 +12,7 @@ class CfgPatches
         requiredVersion = 0.1;
         units[] = {
             macro_new_unit_class(opfor,BX),
+			macro_new_unit_class(opfor,BX_shield)
         };
     };
 };
@@ -87,4 +88,76 @@ class CfgVehicles
 			_3(macro_zip_tie)
 		};
     };
+    class macro_new_unit_class(opfor,BX_shield): 3AS_BX_DROID_F
+    {
+        displayName = "BX Commando Droid(Shield)";
+		author = "RD501";
+		scope = 2;
+		faction = macro_cis_faction
+		editorSubcategory = macro_editor_cat(CIS_SpecOps)
+		cost = 4
+
+		weapons[]=
+		{
+			"JLTS_E5_shield",
+			"Throw",
+			"Put"
+		};
+		respawnWeapons[]=
+		{
+			"JLTS_E5_shield",
+			"Throw",
+			"Put"
+		};
+		magazines[]=
+		{
+			"JLTS_E5_mag",
+			"JLTS_E5_mag",
+			"JLTS_E5_mag",
+			macro_thermal_imp,
+			macro_thermal_imp,
+			macro_smoke,
+			macro_smoke,
+			macro_flashbang,
+			macro_flashbang,
+			macro_dioxis_grenade
+		};
+		respawnMagazines[]=
+		{
+			"JLTS_E5_mag",
+			"JLTS_E5_mag",
+			"JLTS_E5_mag",
+			macro_thermal_imp,
+			macro_thermal_imp,
+			macro_smoke,
+			macro_smoke,
+			macro_flashbang,
+			macro_flashbang,
+			macro_dioxis_grenade
+		};
+		linkeditems[]=
+		{
+			"ItemGPS",
+			"ItemMap",
+			"ItemCompass",
+			"ItemWatch",
+			"JLTS_droid_comlink",
+			"JLTS_NVG_droid_chip_1"
+		};
+		respawnlinkeditems[]=
+		{
+			"ItemGPS",
+			"ItemMap",
+			"ItemCompass",
+			"ItemWatch",
+			"JLTS_droid_comlink",
+			"JLTS_NVG_droid_chip_1"
+		};
+		items[]={
+			_3(macro_zip_tie)
+		};
+		respawnItems[]={
+			_3(macro_zip_tie)
+		};
+    };
 }

+ 7 - 2
addons - Copy/RD501_Vehicles/land/droideka/config.cpp

@@ -13,7 +13,8 @@ class CfgPatches
 		requiredVersion=0.1;
 		units[]=
 		{
-			macro_new_vehicle(droideka,base)
+			macro_new_vehicle(droideka,base),
+			macro_new_vehicle(droideka,normal)
 		};
 		weapons[]=
 		{
@@ -59,6 +60,10 @@ class CfgVehicles
 			};
 		};
 	};
-
+	class macro_new_vehicle(droideka,normal): macro_new_vehicle(droideka,base)
+	{
+		displayName = "Droideka (Moveable)";
+		forceInGarage = 0;
+	};
 
 };

BIN=BIN
addons - Copy/RD501_Vehicles/static/shields/trench/trench.p3d


+ 5 - 1
addons - Copy/RD501_Weapons/Grenades/config.cpp

@@ -98,7 +98,7 @@ class CfgWeapons
 	};
 	class Throw: GrenadeLauncher
 	{
-		muzzles[] += {"Shadow_Muzzle","Imploder_Muzzle","Thermaldet_Muzzle","Squad_Shield_Muzzle","Throwable_C_Type_Muzzle"};
+		muzzles[] += {"Shadow_Muzzle","Imploder_Muzzle","Thermaldet_Muzzle","Squad_Shield_Muzzle","Squad_Shield_Trench_Muzzle","Throwable_C_Type_Muzzle"};
 		class Shadow_Muzzle: ThrowMuzzle
 		{
 			magazines[] = {"RD501_BlueShadow_Grenade"};
@@ -115,6 +115,10 @@ class CfgWeapons
 		{
 			magazines[] = {macro_new_mag(squad_shield_sigma,1)};
 		};
+		class Squad_Shield_Trench_Muzzle: ThrowMuzzle
+		{
+			magazines[] = {macro_new_mag(squad_shield_alpha,1)};
+		};
 		class Throwable_C_Type_Muzzle: ThrowMuzzle
 		{
 			magazines[] = {macro_new_mag(throwable_c_type,1)};

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

@@ -305,6 +305,17 @@ class CfgAmmo
         rd501_grenade_deployable_timeToLive = 60;
 		simulation="shotShell";
 	}
+	class macro_new_ammo(squad_shield_alpha) : 3AS_CoreDetonator_1RND
+	{
+		hit=0;
+		indirectHit=0;
+		indirectHitRange=0;
+		model="\RD501_Weapons\Grenades\data\icecream.p3d";
+		rd501_grenade_deployable = 1;
+        rd501_grenade_deployable_object = "RD501_Squad_Shield_trench";
+        rd501_grenade_deployable_timeToLive = 120;
+		simulation="shotShell";
+	}
 ///////////////////////////////////////////////////////////////////////
 /////////////////////////Shotgun///////////////////////////////////////
 //////////////////////////////////////////////////////////////////////

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

@@ -370,6 +370,17 @@ class CfgMagazines
 		descriptionShort = "Republic Thermal Imploder";
 		picture="\RD501_Weapons\_mag\data\rd501_icon_mag_imploder.paa";
 	};
+	class macro_new_mag(squad_shield_alpha,1):3AS_BaridumCore
+	{
+		author="RD501";
+		scope=2;
+		displayName = "Republic Squad Shield Alpha";
+		displayNameShort = "Squad Shield Alpha";
+		count=1;
+		ammo = macro_new_ammo(squad_shield_alpha)
+		descriptionShort = "Republic Thermal Imploder";
+		picture="\RD501_Weapons\_mag\data\rd501_icon_mag_imploder.paa";
+	};
 
 	////////////////////////////////////////////////////
 	/////////////Missile  Magazines/////////////////////