Jump to content
Sign in to follow this  
Brickky

Cannot make UAV Turret Move

Recommended Posts

Using the Servo Skull UAV from Dos's mod (with Darter drone being the base for it), I've been trying to apply a gunner turret to it as part of a QoL improvement. Whilst I've managed to create the actual position, I've been getting no luck in moving said turret. I even scavenged lines from the UAV_01_base_F class just in case as well, but to no avail thus far. Where am I going wrong here?

 

class Turrets: Turrets
	{
		class GunnerTurret: MainTurret
		{
		body="MainTurret";
		gun="MainGun";
		isCopilot=0;
		minTurn= -90;	// yaw limits
		maxTurn=90;	// yaw limits
		initTurn=0;	// initial yaw angle
		minElev= -90;	// pitch limits
		maxElev=90;	// pitch limits
		initElev=70;	// initial pitch angle
		maxXRotSpeed = 1;	// yawing speed
		maxYRotSpeed = 1;	// pitching speed
		controllable = 1;	// set false to have static camera
		gunnerName = "Gunner";
		gunnerInAction = "ManActTestDriver";
		gunnerAction= "ManActTestDriver";
		turretAxis="OsaVeze";
		gunAxis="OsaHlavne";
		gunnerUsesPilotView = 1;
		animationSourceBody = "mainTurret";
		gunnerForceOptics = 1;
		commanding= -1;
		stabilizedInAxes=3;
		primary=1;
		primaryGunner=1;
		turretInfoType = "RscOptics_UAV_gunner";
		weapons[]=
				{
					"Laserdesignator_mounted"
				};
				magazines[]=
				{
					"Laserbatteries"
				};
		class OpticsIn
		{
			class Wide
			{
				gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_wide_F.p3d";
				initAngleX=0;
				minAngleX=-30;
				maxAngleX=30;
				initAngleY=0;
				minAngleY=-100;
				maxAngleY=100;
				initFov=0.2;
				minFov=0.005;
				maxFov=1;
				opticsDisplayName = "WFOV";
				thermalMode[] = {0,1};
				visionMode[] = {"Normal","NVG","Ti"};
			};
			
		};
		class ViewOptics
		{
			initAngleX = 15;
			minAngleX = -30;
			maxAngleX = 30;
			initAngleY = -90;
			minAngleY = -100;
			maxAngleY = 100;
			initFov = 0.3; // baseline FOV 0.4 / optic FOV 0.3  = x1.33 magnification
			minFov = 0.07; // baseline FOV 0.4 / optic FOV 0.07 = x5.7  magnification
			maxFov = 0.35; // baseline FOV 0.4 / optic FOV 0.35 = x1.14 magnification
			speedZoomMaxFOV=0;
			speedZoomMaxSpeed = 1e+010;
		};

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×