Prechádzať zdrojové kódy

update camera on nu and z95;

thefloff 4 rokov pred
rodič
commit
4054ca6099

+ 1 - 17
addons - Copy/RD501_Vehicles/air/LAAT/common_stuff_tcw.hpp

@@ -55,23 +55,7 @@ smokeLauncherGrenadeCount=48;
 smokeLauncherAngle=360;
 smokeLauncherVelocity=14;
 
-class pilotCamera
-{
-	#include "common_optics.hpp"
-
-	minTurn=-180;
-	maxTurn=180;
-	initTurn=0;
-
-	minElev=-10;
-	maxElev=90;
-	initElev=-10;
-
-	maxXRotSpeed=0.30000001;
-	maxYRotSpeed=0.30000001;
-	pilotOpticsShowCursor=1;
-	controllable=1;
-};
+#include "../../common/common_pilotCamera.hpp"
 class ViewPilot: ViewPilot
 {
 	initAngleX = 0;

+ 6 - 6
addons - Copy/RD501_Vehicles/air/LAAT/config.cpp

@@ -103,7 +103,7 @@ class CfgVehicles
 				minturn=-240;
 				maxelev=40;
 				maxturn=-120;
-				#include "common_optics.hpp"
+				#include "../../common/common_optics.hpp"
 			};
 			class LeftDoorgun: LeftDoorgun
 			{
@@ -119,7 +119,7 @@ class CfgVehicles
 					macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),
 					macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300)
 				};
-				#include "common_optics.hpp"
+				#include "../../common/common_optics.hpp"
 				memorypointgunneroptics="FIXME";
 			};
 			class RightDoorGun: RightDoorGun
@@ -136,7 +136,7 @@ class CfgVehicles
 					macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),
 					macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300),macro_new_mag(laat_ball_beam,300)
 				};
-				#include "common_optics.hpp"
+				#include "../../common/common_optics.hpp"
 				memorypointgunneroptics="FIXME";
 			};
 			class CargoTurret_01: CargoTurret_01{};
@@ -184,7 +184,7 @@ class CfgVehicles
 				minturn=-240;
 				maxelev=40;
 				maxturn=-120;
-				#include "common_optics.hpp"
+				#include "../../common/common_optics.hpp"
 			};
 			class CargoTurret_01: CargoTurret_01{};
 			class CargoTurret_02: CargoTurret_02{};
@@ -232,7 +232,7 @@ class CfgVehicles
 				minturn=-240;
 				maxelev=40;
 				maxturn=-120;
-				#include "common_optics.hpp"
+				#include "../../common/common_optics.hpp"
 			};
 			class CargoTurret_01: CargoTurret_01{};
 			class CargoTurret_02: CargoTurret_02{};
@@ -275,7 +275,7 @@ class CfgVehicles
 				minturn=-240;
 				maxelev=40;
 				maxturn=-120;
-				#include "common_optics.hpp"
+				#include "../../common/common_optics.hpp"
 			};
 			class CargoTurret_01: CargoTurret_01{};
 			class CargoTurret_02: CargoTurret_02{};

+ 3 - 0
addons - Copy/RD501_Vehicles/air/NuClass/config.cpp

@@ -40,6 +40,9 @@ class CfgVehicles
 		faction = macro_republic_faction
 		editorSubcategory = macro_editor_cat_air(Republic_heli)
 		vehicleClass = macro_editor_vehicle_type_air(Republic)
+		
+		#include "../../common/common_pilotCamera.hpp"
+
 		weapons[]=
 		{
 			"ParticleBeamCannon_Nu",

+ 1 - 0
addons - Copy/RD501_Vehicles/air/Z95/config.cpp

@@ -70,6 +70,7 @@ class CfgVehicles
 		aileronSensitivity=2.9;
 		aileronControlsSensitivityCoef=4;
 		#include "../../common/universal_mfd.hpp"
+		#include "../../common/common_pilotCamera.hpp"
 		weapons[]=
 		{
 			"CMFlareLauncher",

+ 0 - 0
addons - Copy/RD501_Vehicles/air/LAAT/common_optics.hpp → addons - Copy/RD501_Vehicles/common/common_optics.hpp


+ 17 - 0
addons - Copy/RD501_Vehicles/common/common_pilotCamera.hpp

@@ -0,0 +1,17 @@
+class pilotCamera
+{
+	#include "common/common_optics.hpp"
+
+	minTurn=-180;
+	maxTurn=180;
+	initTurn=0;
+
+	minElev=-10;
+    maxElev=90;
+	initElev=-10;
+
+	maxXRotSpeed=0.30000001;
+	maxYRotSpeed=0.30000001;
+	pilotOpticsShowCursor=1;
+	controllable=1;
+};