Erliens il y a 4 ans
Parent
commit
190fe2c6ae

+ 4 - 3
addons - Copy/RD501_Vehicle_Weapons/land/static/config.cpp → addons - Copy/RD501_Vehicle_Weapons/land/static/config.cpp.old

@@ -17,7 +17,8 @@ class CfgPatches
 		units[]={};
 		weapons[]={
 			macro_new_weapon(stat,eweb),
-			macro_new_weapon(stat,ragl40)
+			macro_new_weapon(stat,ragl40),
+			macro_new_weapon(stat,aap4)
 		};
 	};
 };
@@ -51,10 +52,10 @@ class CfgWeapons
 	class ace_javelin_Titan_Static;
 	class macro_new_weapon(stat,aap4):ace_javelin_Titan_Static
 	{
-		magazines[]=
+		/*magazines[]=
 		{
 			macro_new_mag(aap,4)
-		};
+		};*/
 	};
 };
 class CfgMagazines

+ 121 - 0
addons - Copy/RD501_Vehicles/static/TitanTurret.hpp

@@ -0,0 +1,121 @@
+ace_fcs_DistanceInterval = 5;
+ace_fcs_Enabled = 0;
+ace_fcs_MaxDistance = 5500;
+ace_fcs_MinDistance = 200;
+aggregateReflectors[] = {};
+allowLauncherIn = 0;
+allowLauncherOut = 0;
+allowTabLock = 1;
+animationSourceBody = "mainTurret";
+animationSourceCamElev = "camElev";
+animationSourceGun = "mainGun";
+animationSourceHatch = "hatchGunner";
+armorLights = 0.4;
+body = "mainTurret";
+canEject = 0;
+canHideGunner = -1;
+canUseScanners = 1;
+castGunnerShadow = 1;
+commanding = 1;
+disableSoundAttenuation = 1;
+discretefov[] = {0.08333,0.04167};
+discreteInitIndex = 0;
+displayName = "";
+dontCreateAI = 0;
+ejectDeadGunner = 1;
+forceHideGunner = 0;
+forceNVG = 0;
+gun = "mainGun";
+gunBeg = "Usti hlavne";
+gunEnd = "Konec hlavne";
+gunnerAction = "gunner_staticlauncher";
+gunnerCompartments = "Compartment1";
+gunnerDoor = "";
+gunnerFireAlsoInInternalCamera = 1;
+gunnerForceOptics = 0;
+gunnergetInAction = "";
+gunnergetOutAction = "";
+gunnerInAction = "ManActTestDriver";
+gunnerLeftHandAnimName = "OtocHlaven_shake";
+gunnerLeftLegAnimName = "";
+gunnerName = "Gunner";
+gunnerOpticsColor[] = {0,0,0,1};
+gunnerOpticsEffect[] = {};
+gunnerOpticsModel = "\z\ace\addons\javelin\data\reticle_titan.p3d";
+gunnerOpticsShowCursor = 0;
+gunnerOutFireAlsoInInternalCamera = 1;
+gunnerOutForceOptics = 0;
+gunnerOutOpticsColor[] = {0,0,0,1};
+gunnerOutOpticsEffect[] = {};
+gunnerOutOpticsModel = "";
+gunnerOutOpticsShowCursor = 0;
+gunnerRightHandAnimName = "OtocHlaven_shake";
+gunnerRightLegAnimName = "";
+gunnerType = "";
+gunnerUsesPilotView = 0;
+hasGunner = 1;
+hideWeaponsGunner = 1;
+inGunnerMayFire = 1;
+initCamElev = 0;
+initElev = 0;
+initOutElev = 0;
+initOutTurn = 0;
+initTurn = 0;
+isCopilot = 0;
+lockWhenDriverOut = 0;
+lockWhenVehicleSpeed = -1;
+LODTurnedIn = -1;
+LODTurnedOut = -1;
+magazines[] = {"RD501_aap_x4_mag"};
+maxCamElev = 90;
+maxElev = 70;
+maxHorizontalRotSpeed = 1.2;
+maxOutElev = 20;
+maxOutTurn = 60;
+maxTurn = 40;
+maxVerticalRotSpeed = 1.2;
+memoryPointGun = "usti hlavne";
+memoryPointGunnerOptics = "look";
+memoryPointGunnerOutOptics = "";
+memoryPointsGetInGunner = "pos_gunner_dir";
+memoryPointsGetInGunnerDir = "pos_gunner";
+memoryPointsGetInGunnerPrecise = "";
+minCamElev = -90;
+minElev = -20;
+minOutElev = -4;
+minOutTurn = -60;
+minTurn = -40;
+missileBeg = "spice rakety";
+missileEnd = "konec rakety";
+optics = 1;
+opticsFlare = 0;
+opticsPPEffects[] = {"OpticsCHAbera1","OpticsBlur1"};
+opticsZoomInit = 0.08333;
+opticsZoomMax = 0.04167;
+opticsZoomMin = 0.08333;
+outGunnerMayFire = 1;
+playerPosition = 0;
+preciseGetInOut = 0;
+primary = 1;
+primaryGunner = 1;
+primaryObserver = 0;
+proxyIndex = 1;
+proxyType = "CPGunner";
+selectionFireAnim = "";
+showAllTargets = 0;
+showCrewAim = 0;
+showHMD = 0;
+slingLoadOperator = 0;
+soundElevation[] = {"",0.00316228,1};
+soundServo[] = {"",0.00316228,1};
+stabilizedInAxes = 3;
+startEngine = 1;
+turretCanSee = 0;
+turretFollowFreeLook = 0;
+turretInfoType = "ACE_RscOptics_javelin";
+viewGunnerInExternal = 0;
+viewGunnerShadow = 1;
+viewGunnerShadowAmb = 1;
+viewGunnerShadowDiff = 1;
+weapons[] = {"RD501_stat_aap4"};
+

+ 239 - 24
addons - Copy/RD501_Vehicles/static/config.cpp

@@ -19,7 +19,10 @@ class CfgPatches
         };
         weapons[]=
         {
-            
+        	macro_new_weapon(stat,eweb),
+			macro_new_weapon(stat,ragl40),
+			macro_new_weapon(stat,aap4),
+			macro_new_weapon(stat,mar1)
         };
     };
 };
@@ -27,6 +30,15 @@ class CfgPatches
 class CfgVehicles
 {
 	class StaticMGWeapon;
+	class AT_01_base_F:StaticMGWeapon
+	{
+		class Turrets;
+	};
+	class B_static_AT_F:AT_01_base_F 
+	{
+		class Turrets:Turrets{
+		class MainTurret;};
+	};
 	class 3AS_HeavyRepeater_base:StaticMGWeapon
 	{
 		class Turrets;
@@ -50,21 +62,17 @@ class CfgVehicles
 	{
 		class Turrets;
 	};
-	class StaticAAWeapon:StaticWeapon
+	class OPTRE_Static_M41:StaticMGWeapon
 	{
-		class Turrets : Turrets
-		{
-			
-		};
+		class Turrets;
 	};
-	class OPTRE_LAU65D_pod:StaticAAWeapon 
+	class OPTRE_Static_Gauss:OPTRE_Static_M41
 	{
 		class Turrets: Turrets
 		{
 			class MainTurret;
 		};
 	};
-	class OPTRE_Static_Gauss;
 	class macro_new_vehicle(stat,reweb): 3AS_HeavyRepeater_Unarmoured
 	{
 		scope = 2;
@@ -87,6 +95,13 @@ class CfgVehicles
 				};
 			};
 		};
+		class assembleInfo
+		{
+			dissasembleTo[]=
+			{
+				macro_new_vehicle(stat,reweb_bag)
+			};
+		};
 	};
 	class macro_new_vehicle(stat,ragl40): 3AS_HeavyRepeater_Armoured
 	{
@@ -110,8 +125,15 @@ class CfgVehicles
 				};
 			};
 		};
+		class assembleInfo
+		{
+			dissasembleTo[]=
+			{
+				macro_new_vehicle(stat,ragl40_bag)
+			};
+		};
 	};
-	class macro_new_vehicle(stat,Striker): OPTRE_LAU65D_pod
+	class macro_new_vehicle(stat,Striker): B_static_AT_F
 	{
 		scope = 2;
 		author="501st Aux Mod";
@@ -119,24 +141,30 @@ class CfgVehicles
 		faction = macro_republic_faction
 		editorSubcategory = macro_editor_cat(turrets)
 		vehicleClass = macro_editor_vehicle_type(turrets)
-		_generalMacro = "B_static_AT_F";
-		radarType = 0;
+		model = "\OPTRE_Weapons\static\LAU65D\LAU65D_pod.p3d";
 		class Turrets: Turrets
 		{
-			class MainTurret: MainTurret
+		class MainTurret: MainTurret
+		{
+			animationSourceBody = "Turret_rot";
+			animationSourceCamElev = "camElev";
+			animationSourceGun = "camElev";
+			memoryPointsGetInGunner = "pos_gunner";
+			memoryPointsGetInGunnerDir = "pos_gunner_dir";
+			body = "Turret_rot";
+			discreteDistanceCameraPoint[] = {"eye"};
+			stabilizedInAxes = "StabilizedInAxesNone";
+			gunnerAction = "Gunner_OPTRE_Lau";
+			maxTurn = 360;
+			weapons[] = {macro_new_weapon(stat,aap4)};
+			magazines[] = {macro_new_mag(aap,4)};
+		};
+		};
+		class assembleInfo
+		{
+			dissasembleTo[]=
 			{
-				gunnerForceOptics = 0;
-				turretInfoType = "ACE_RscOptics_javelin";  // Inteface
-				gunnerOpticsModel = "\z\ace\addons\javelin\data\reticle_titan.p3d";  // Optics model
-				opticsFlare = 0;
-				weapons[]=
-				{
-					macro_new_weapon(stat,aap4)
-				};
-				magazines[]=
-				{
-					macro_new_mag(aap,4)
-				};
+				macro_new_vehicle(stat,Striker_bag)
 			};
 		};
 	};
@@ -148,5 +176,192 @@ class CfgVehicles
 		faction = macro_republic_faction
 		editorSubcategory = macro_editor_cat(turrets)
 		vehicleClass = macro_editor_vehicle_type(turrets)
+		class Turrets: Turrets
+		{
+			class MainTurret: MainTurret
+			{
+				weapons[]=
+				{
+					macro_new_weapon(stat,mar1)
+				};
+				magazines[]=
+				{
+					macro_new_mag(mar,1)
+				};
+				class Viewoptics
+				{
+					initAngleX = 0;
+					initAngleY = 0;
+					initFov = 0.75;
+					maxAngleX = 30;
+					maxAngleY = 100;
+					maxFov = 1.1;
+					maxMoveX = 0;
+					maxMoveY = 0;
+					maxMoveZ = 0;
+					minAngleX = -30;
+					minAngleY = -100;
+					minFov = 0.0125;
+					minMoveX = 0;
+					minMoveY = 0;
+					minMoveZ = 0;
+					opticsZoomInit = 0.75;
+					opticsZoomMax = 0.75;
+					opticsZoomMin = 0.25;
+					thermalMode[] = {5,6};
+					visionMode[] = {"Normal","NVG","Ti"};
+				}
+			};
+		};
+		class assembleInfo
+		{
+			dissasembleTo[]=
+			{
+				macro_new_vehicle(stat,Railgun_bag)
+			};
+		};
+	};
+	class Weapon_bag_base;
+	class JLTS_UAV_prowler_gar_backpack:Weapon_bag_base
+	{
+		class assembleInfo;
+	}
+	class macro_new_vehicle(stat,reweb_bag):JLTS_UAV_prowler_gar_backpack
+	{
+		displayName="Republic E-Web Bag";
+		hiddenSelectionsTextures[]=
+		{
+			"\RD501_Vehicles\air\drones\Clone_backpack_uav.paa"
+		};
+		class assembleInfo: assembleInfo
+		{
+			displayName="Assemble E-Web Bag";
+			assembleTo = macro_new_vehicle(stat,reweb)
+		};
+	};
+	class macro_new_vehicle(stat,ragl40_bag):JLTS_UAV_prowler_gar_backpack
+	{
+		displayName="RAGL40 'Boomer' Bag";
+		hiddenSelectionsTextures[]=
+		{
+			"\RD501_Vehicles\air\drones\Clone_backpack_uav.paa"
+		};
+		class assembleInfo: assembleInfo
+		{
+			displayName="Assemble Boomer";
+			assembleTo = macro_new_vehicle(stat,ragl40)
+		};
+	};
+	class macro_new_vehicle(stat,Striker_bag):JLTS_UAV_prowler_gar_backpack
+	{
+		displayName="AAP4 'Striker' Bag";
+		hiddenSelectionsTextures[]=
+		{
+			"\RD501_Vehicles\air\drones\Clone_backpack_uav.paa"
+		};
+		class assembleInfo: assembleInfo
+		{
+			displayName="Assemble Striker";
+			assembleTo = macro_new_vehicle(stat,Striker)
+		};
+	};
+	class macro_new_vehicle(stat,Railgun_bag):JLTS_UAV_prowler_gar_backpack
+	{
+		displayName="MAR1 'Driver' Bag";
+		hiddenSelectionsTextures[]=
+		{
+			"\RD501_Vehicles\air\drones\Clone_backpack_uav.paa"
+		};
+		class assembleInfo: assembleInfo
+		{
+			displayName="Assemble Driver";
+			assembleTo = macro_new_vehicle(stat,Railgun)
+		};
+	};
+};
+class CfgWeapons
+{
+	class 3AS_HeavyRepeater;
+	class 3AS_BlasterTurret_Repeater:3AS_HeavyRepeater
+	{
+		class manual;
+	}
+	class macro_new_weapon(stat,eweb):3AS_BlasterTurret_Repeater
+	{
+		class manual: manual
+		{
+			dispersion=0.011;
+			reloadTime=0.05;
+		};
+		magazines[]=
+		{
+			macro_new_mag(eweb,600)
+		};
+	};
+	class macro_new_weapon(stat,ragl40):3AS_BlasterTurret_Repeater
+	{
+		magazines[]=
+		{
+			macro_new_mag(ragl40he,40)
+		};
+	};
+	class ace_javelin_Titan_Static;
+	class macro_new_weapon(stat,aap4):ace_javelin_Titan_Static
+	{
+		ace_javelin_enabled = 1;  // Enable Javelin-style locking (0-disabled, 1-enabled)
+        weaponInfoType = "ACE_RscOptics_javelin";  // Inteface
+        modelOptics = "\z\ace\addons\javelin\data\reticle_titan.p3d";  // Optics model
+        canLock = 0;  // Disable vanilla locking (0-disabled, 1-enabled)
+        lockingTargetSound[] = {"", 0, 1};  // Locking sound
+        lockedTargetSound[] = {"", 0, 1};  // Target acquired sound
+		magazines[]=
+		{
+			macro_new_mag(aap,4)
+		};
+	};
+	class macro_new_weapon(stat,mar1):3AS_BlasterTurret_Repeater
+	{
+		class manual: manual
+		{
+			dispersion=0.00001;
+			reloadTime=0.05;
+		};
+		magazines[]=
+		{
+			macro_new_mag(mar,1)
+		};
+	};
+};
+class CfgMagazines
+{
+	class 3AS_500_Rnd_BlasterTurret_mag;
+	class 40Rnd_20mm_G_belt;
+	class 1Rnd_GAT_missiles;
+	class macro_new_mag(eweb,600): 3AS_500_Rnd_BlasterTurret_mag
+	{
+		scope=2;
+		displayName= "Republic E-Web Charge"
+		count=600;
+		ammo=macro_new_ammo(z1000)
+	};
+	class macro_new_mag(ragl40he,40): 40Rnd_20mm_G_belt
+	{
+		scope=2;
+		displayName= "RAGL40 'Boomer' belt"
+		count=40;
+		ammo=macro_new_ammo(UGL_HE)
+	};
+	class macro_new_mag(aap,4): 1Rnd_GAT_missiles
+	{
+		scope=2;
+		displayName= "AAP4 'Striker' Pod"
+		count=4;
+	};
+		class macro_new_mag(mar,1): 3AS_500_Rnd_BlasterTurret_mag
+	{
+		scope=2;
+		displayName= "MAR1 'Driver' Slug"
+		count=1;
+		ammo=macro_new_ammo(mar1)
 	};
 };

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

@@ -150,6 +150,17 @@ class CfgAmmo
 		caliber=5;
 		airFriction=0;
 	};
+	class macro_new_ammo(mar1) : 3AS_EC80_BluePlasma
+	{
+		hit=900;
+		thrust=500;
+		explosive=0;
+		thrustTime=1.5;
+		airLock=1;
+		typicalSpeed=3000;
+		caliber=50;
+		airFriction=0;
+	};
 	class macro_new_ammo(UGL_AP): G_40mm_HE
 	{
 		hit = 350;