Jump to content
Sign in to follow this  

Recommended Posts

For some reason, the HUD is suddenly broken inside a fighter I'm working on.

 

Full CfgVehicles code:

class CfgVehicles
{
	class Air;
	class Plane: Air
	{
		class HitPoints;
	};
	class Plane_Base_F: Plane
	{
		class AnimationSources;
		class HitPoints: HitPoints
		{
			class HitHull;
		};
	};
	class PlaneWreck;
	class Plane_Fighter_01_base_F: Plane_Base_F
	{
		features = "Randomization: No						<br />Camo selections: 1 - Body, wings, and gear						<br />Script door sources: None						<br />Script animations: None						<br />Executed scripts: None 						<br />Firing from vehicles: No						<br />Slingload: No						<br />Cargo proxy indexes: None";
		author = $STR_A3_Night515;
		DLC = AegisMod;
		mapSize = 15.5;
		class SimpleObject
		{
			animate[] = {};
			hide[] = {};
			verticalOffset = 0;
		};
		_generalMacro = "Plane_Fighter_01_base_F";
		scope = private;
		model = "\Air_F_Aegis\Plane_Fighter_01\Plane_Fighter_01_F.p3d";
		editorSubcategory = "EdSubcat_Planes";
		icon = "\Air_F_Aegis\Plane_Fighter_01\Data\UI\Map_Plane_Fighter_01_CA.paa";
		picture = "\Air_F_Aegis\Plane_Fighter_01\Data\UI\Plane_Fighter_01_CA.paa";
		destrType = DestructWreck;
		slingLoadCargoMemoryPoints[] = 
		{
			"SlingLoadCargo1",
			"SlingLoadCargo2",
			"SlingLoadCargo3",
			"SlingLoadCargo4"
		};
		memoryPointTaskMarker = "TaskMarker_1_pos";
		armor = 80;
		armorStructural = 1;
		armorLights = 1;
		epeImpulseDamageCoef = 200;
		damageResistance = 0.01096;
		accuracy = 0.4;
		class Library
		{
			libTextDesc = $STR_A3_CfgVehicles_B_Plane_Fighter_01_F_Library0;
		};
		driverAction = pilot_plane_fighter_01;
		getinAction = pilot_plane_fighter_01_Enter;
		getoutaction = pilot_plane_fighter_01_Exit;
		precisegetinout = true;
		viewDriverShadow = true;
		viewCargoShadow = true;
		viewDriverShadowDiff = 0.5;
		viewDriverShadowAmb = 0.5;
		LockDetectionSystem = CM_Lock_Radar;
		incomingMissileDetectionSystem = CM_Missile;
		class Turrets{};
		class TransportItems{};
		#include "sounds.hpp"
		vtol = true;
		altNoForce = 35000;
		altFullForce = 13636;
		maxSpeed = 1900;
		aileronSensitivity = 1.1;
		elevatorSensitivity = 0.8;
		rudderInfluence = 0.4;
		aileronControlsSensitivityCoef = 3;
		elevatorControlsSensitivityCoef = 4;
		rudderControlsSensitivityCoef = 4;
		elevatorCoef[] = {0.5,0.9,1.1,1.3,1.4,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5};
		aileronCoef[] = {1,1.75,2.5,2.5,3.5,3.5,3.5,3.5,3.5,3.5,3.5,3.5,3.5,2,1,1};
		rudderCoef[] = {0.6,1.0,1.0,0.9,0.8,0.7,0.6};
		flapsFrictionCoef = 0.5;
		angleOfIndicence = 0.05235987;
		draconicForceXCoef = 8.0;
		draconicForceYCoef = 2.3;
		draconicForceZCoef = 1.0;
		draconicTorqueXCoef = 1.2;
		draconicTorqueYCoef = 1.0;
		envelope[] = {0.1,0.5,3,8,9,9,9,6.85,6.5,5.8,4.6,2.8,0};
		thrustCoef[] = {1.2,1.6,2,1.9,1.8,1.7,1.6,1.5,1.4, 1.2,1.1,0.9,0.5,0.3,0,0};
		acceleration = 300;
		landingSpeed = 250;
		landingAoa = "rad 10";
		threat[] = {1,1,1};
		irScanRangeMin = 3000;
		irScanRangeMax = 10000;
		irScanToEyeFactor = 4;
		laserScanner = 1;
		showAllTargets = 4;
		minFireTime = 30;
		headAimDown = 0.0;
		cabinOpening = true;
		brakeDistance = 150;
		fov = 1.5;
		dustEffect = HeliDust;
		waterEffect = HeliWater;
		driverLeftHandAnimName = "throttle_stick";
		driverRightHandAnimName = "flight_stick";
		memoryPointsGetInDriver = "GetIn_driver_pos";
		memoryPointsGetInDriverDir = "GetIn_driver_dir";
		memoryPointLRocket = "Rocket_1";
		memoryPointRRocket = "Rocket_2";
		memoryPointCM[] = 
		{
			"FlareLauncher_1_pos",
			"FlareLauncher_2_pos"
		};
		memoryPointCMDir[] = 
		{
			"FlareLauncher_1_dir",
			"FlareLauncher_2_dir"
		};
		memoryPointLDust = "WheelDust_left_pos";
		memoryPointRDust = "WheelDust_right_pos";
		memoryPointGun = "Usti hlavne";
		gunAimDown = 0.0;
		selectionFireAnim = "zasleh";
		gearUpTime = 3;
		gearDownTime = 3;
		driveOnComponent[] = 
		{
			"wheel_1",
			"wheel_2",
			"wheel_3"
		};
		numberPhysicalWheels = 3;
		wheelSteeringSensitivity = 2.5;
		class Exhausts
		{
			class Exhaust_1
			{
				position = "Exhaust_1_pos";
				direction = "Exhaust_1_dir";
				effect = ExhaustsEffectJet;
			};
		};
		class WingVortices
		{
			class BodyLeft
			{
				effectName = BodyVortices;
				position = "body_vapour_L_S";
			};
			class BodyRight
			{
				effectName = BodyVortices;
				position = "body_vapour_R_S";
			};
			class WingTipLeft
			{
				effectName = WingVortices;
				position = "body_vapour_L_E";
			};
			class WingTipRight
			{
				effectName = WingVortices;
				position = "body_vapour_R_E";
			};
		};
		class Reflectors
		{
			class Gear_1_light
			{
				color[] = {0.9,1.0,0.8};
				ambient[] = {0.009,0.01,0.008};
				intensity = 25000;
				size = 1;
				innerAngle = 0;
				outerAngle = 90;
				coneFadeCoef = 12;
				position = "Light_L";
				direction = "Light_L_end";
				hitpoint = "";
				selection = "";
				useFlare = true;
				flareSize = 0.5;
				flareMaxDistance = 30;
				class Attenuation
				{
					start = false;
					constant = false;
					linear = 15;
					quadratic = 7;
					hardLimitStart = 75;
					hardLimitEnd = 100;
				};
			};
		};
		class AnimationSources: AnimationSources
		{
			class AddFalchion
			{
				source = user;
				animPeriod = 0.000001;
				initPhase = 0;
				weapon = Missile_AA_04_Plane_CAS_01_F;
			};
			class AddGbu12
			{
				source = user; 
				animPeriod = 0.000001; 
				initPhase = 0;
				weapon = GBU12BombLauncher;
			};
			class AddZephyr
			{
				source = user; 
				animPeriod = 0.000001; 
				initPhase = 0;
				weapon = missiles_Zephyr;
			};
			class Hatch_1_Bay
			{
				source = maxHoldsterValue;
				animPeriod = 0.6;
				initPhase = 0;
			};
			class Hatch_2_Bay
			{
				source = maxHoldsterValue;
				animPeriod = 0.6;
				initPhase = 0;
			};
			class Hatch_3_Bay
			{
				source = maxHoldsterValue;
				animPeriod = 0.6;
				initPhase = 0;
			};
			class Hatch_4_Bay
			{
				source = maxHoldsterValue;
				animPeriod = 0.6;
				initPhase = 0;
			};
			class Muzzle_flash
			{
				source = ammorandom;
				weapon = gatling_25mm;
			};
		};
		hiddenSelections[] = {"camo"};
		hiddenSelectionsTextures[] = {"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_ext_CO.paa"};
		class HitPoints: HitPoints
		{
			class HitHull: HitHull
			{
				armor = 999;
				explosionShielding = 10;
				name = "hull_hit";
				passThrough = 0.5;
				visual = "hull_hit";
				radius = 0.01;
				minimalHit = 0.02;
				depends = "Total";
				material = -1;
			};
			class HitEngine: HitHull
			{
				armor = 1.5;
				explosionShielding = 2;
				name = "engine_hit";
				passThrough = 1;
				visual = "engine_hit";
				radius = 0.48;
				minimalHit = 0.1;
			};
			class HitAvionics: HitHull
			{
				armor = 3;
				explosionShielding = 1;
				name = "avionics_hit";
				passThrough = 0.2;
				visual = "avionics_hit";
				radius = 0.3;
			};
			class HitFuel: HitHull
			{
				armor = 3;
				explosionShielding = 4;
				name = "fuel_hit";
				passThrough = 0.5;
				visual = "fuel_hit";
				radius = 2.3;
				minimalHit = 0.1;
			};
			class HitGlass1: HitHull
			{
				armor = 1.5;
				explosionShielding = 3;
				name = "glass_1";
				passThrough = 0;
				visual = "glass_1";
				radius = 0.2;
				minimalHit = 0.1;
			};
			class HitGlass2: HitHull
			{
				armor = 3;
				explosionShielding = 4;
				name = "glass_2";
				passThrough = 0;
				visual = "glass_2";
				radius = 0.1;
				minimalHit = 0.1;
			};
		};
		class Damage
		{
			tex[] = {};
			mat[] =
			{
				"\Air_F_Aegis\Plane_Fighter_01\Data\Cannon.rvmat",
				"\Air_F_Aegis\Plane_Fighter_01\Data\Cannon_damage.rvmat",
				"\Air_F_Aegis\Plane_Fighter_01\Data\Cannon_destruct.rvmat",
				"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_ext.rvmat",
				"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_ext_damage.rvmat",
				"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_ext_destruct.rvmat",
				"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_glass.rvmat",
				"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_glass_damage.rvmat",
				"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_glass_damage.rvmat",
				"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_int_glass.rvmat",
				"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_int_glass_damage.rvmat",
				"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_int_glass_damage.rvmat"
			};
		};
		memoryPointDriverOptics = "PilotCamera_pos";
		unitInfoType = RscOptics_CAS_01_TGP;
		class pilotCamera
		{
			class OpticsIn
			{
				class Wide
				{
					opticsDisplayName = "W";
					initAngleX = 0;
					minAngleX = 0;
					maxAngleX = 0;
					initAngleY = 0;
					minAngleY = 0;
					maxAngleY = 0;
					initFov = "(30 / 120)";
					minFov = "(30 / 120)";
					maxFov = "(30 / 120)";
					directionStabilized = true;
					visionMode[] = 
					{
						Normal,
						Ti
					};
					thermalMode[] = {0,1};
					gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_wide_F.p3d";
					opticsPPEffects[] = 
					{
						OpticsCHAbera2,
						OpticsBlur2
					};
				};
				class Medium: Wide
				{
					opticsDisplayName = "M";
					initFov = "(15 / 120)";
					minFov = "(15 / 120)";
					maxFov = "(15 / 120)";
					gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_medium_F.p3d";
				};
				class Narrow: Wide
				{
					opticsDisplayName = "N";
					initFov = "(7.5 / 120)";
					minFov = "(7.5 / 120)";
					maxFov = "(7.5 / 120)";
					gunnerOpticsModel = "\A3\Drones_F\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_narrow_F.p3d";
				};
				showMiniMapInOptics = true;
				showUAVViewInOptics = false;
				showSlingLoadManagerInOptics = false;
			};
			minTurn = -130;
			maxTurn = 130;
			initTurn = 0;
			minElev = -10;
			maxElev = 90;
			initElev = 0;
			maxXRotSpeed = 0.3;
			maxYRotSpeed = 0.3;
			pilotOpticsShowCursor = true;
			controllable = true;
		};
		class MFD
		{
			class AirplaneHUD
			{
				topLeft = "HUD_top_left";
				topRight = "HUD_top_right";
				bottomLeft = "HUD_bottom_left";
				borderLeft = 0;
				borderRight = 0;
				borderTop = 0;
				borderBottom = 0;
				color[] = {1.0,1.0,1.0,1.0};
				helmetMountedDisplay = true;
				helmetPosition[] = {-0.04,0.03,0.1};
				helmetRight[] = {0.08,0,0}; 
				helmetDown[] = {-0,-0.06,0};
				#include "cfgHUD.hpp"
			};
		};
		class MarkerLights
		{
			class PositionRed
			{
				color[] = {0.8,0.0,0.0};
				ambient[] = {0.08,0.0,0.0};
				intensity = 75;
				name = "PositionLight_red_1_pos";
				drawLight = 1;
				drawLightSize = 0.15;
				drawLightCenterSize = 0.04;
				activeLight = 0;
				blinking = 0;
				dayLight = 0;
				useFlare = 0;
				class Attenuation
				{
					start = 0;
					constant = 0;
					linear = 25;
					quadratic = 50;
					hardLimitStart = 0.75;
					hardLimitEnd = 1;
				};
			};
			class PositionGreen: PositionRed
			{
				color[] = {0.0,0.8,0.0};
				ambient[] = {0.0,0.08,0.0};
				name = "PositionLight_green_1_pos";
			};
			class CollisionWhite: PositionRed
			{
				color[] = {1.0,1.0,1.0};
				ambient[] = {0.1,0.1,0.1};
				name = "CollisionLight_white_1_pos";
				blinking = 1;
				blinkingPattern[] = {0.1,0.9};
				blinkingPatternGuarantee = 0;
				drawLightSize = 0.2;
				drawLightCenterSize = 0.04;
			};
			class CollisionWhite2: CollisionWhite
			{
				name = "CollisionLight_white_2_pos";
			};
		};
		class RenderTargets
		{
			class FLIR
			{
				renderTarget = "rendertarget0";
				class CameraView1
				{
					pointPosition = "flir_pos";
					pointDirection = "flir_dir";
					renderQuality = 1;
					renderVisionMode = 2;
					fov = 0.3;
				};
			};
		};
		class TextureSources
		{
			class blufor
			{
				displayName = $STR_A3_TextureSources_blu0;
				author = $STR_A3_Night515;
				textures[] = {"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_ext_CO.paa"};
			};
			class dazzle
			{
				displayName = $STR_A3_TextureSources_dazzle0;
				author = $STR_A3_Night515;
				textures[] = {"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_ext_BLUFOR_CO.paa"};
			};
		};
	};
	class B_Plane_Fighter_01_CAS_F: Plane_Fighter_01_base_F
	{
		author = $STR_A3_Night515;
		_generalMacro = "B_Plane_Fighter_01_CAS_F";
		scope = public;
		scopeCurator = public;
		displayName = "F-38 Stalker (CAS)";
		side = 1;
		faction = BLU_F;
		crew = B_pilot_F;
		typicalCargo[] = {B_pilot_F};
		weapons[] =
		{
			gatling_25mm,
			Missile_AA_04_Plane_CAS_01_F,
			GBU12BombLauncher,
			CMFlareLauncher
		};
		magazines[] =
		{
			300Rnd_25mm_shells,
			2Rnd_Missile_AA_04_plane_fighter_01_F,
			2Rnd_GBU12_LGB,
			240Rnd_CMFlare_Chaff_Magazine
		};
		class AnimationSources: AnimationSources
		{
			class AddFalchion: AddFalchion
			{
				initPhase = 1;
			};
			class AddGbu12: AddGbu12 
			{
				initPhase = 1;
			};
		};
		availableForSupportTypes[] = {CAS_Bombing};
		cost = 3000000;
	};
	class B_CTRG_Plane_Fighter_01_CAS_F: Plane_Fighter_01_base_F
	{
		author = $STR_A3_Night515;
		_generalMacro = "B_CTRG_Plane_Fighter_01_CAS_F";
		scope = public;
		scopeCurator = public;
		displayName = "F-38 Stalker (CAS)";
		side = 1;
		faction = BLU_CTRG_F;
		crew = B_CTRG_pilot_F;
		typicalCargo[] = {B_CTRG_pilot_F};
		weapons[] =
		{
			gatling_25mm,
			Missile_AA_04_Plane_CAS_01_F,
			GBU12BombLauncher,
			CMFlareLauncher
		};
		magazines[] =
		{
			300Rnd_25mm_shells,
			2Rnd_Missile_AA_04_plane_fighter_01_F,
			2Rnd_GBU12_LGB,
			240Rnd_CMFlare_Chaff_Magazine
		};
		class AnimationSources: AnimationSources
		{
			class AddFalchion: AddFalchion
			{
				initPhase = 1;
			};
			class AddGbu12: AddGbu12
			{
				initPhase = 1;
			};
		};
		availableForSupportTypes[] = {CAS_Bombing};
		cost = 3000000;
		hiddenSelections[] = {"Camo"};
		hiddenSelectionsTextures[] = {"\Air_F_Aegis\Plane_Fighter_01\Data\Plane_Fighter_01_ext_BLUFOR_CO.paa"};
	};
	class B_Plane_Fighter_01_AA_F: B_Plane_Fighter_01_CAS_F
	{
		author = $STR_A3_Night515;
		forceInGarage = true;
		_generalMacro = "B_Plane_Fighter_01_AA_F";
		displayName = "F-38 Stalker (AA)";
		weapons[] =
		{
			gatling_25mm,
			missiles_Zephyr,
			Missile_AA_04_Plane_CAS_01_F,
			CMFlareLauncher
		};
		magazines[] =
		{
			300Rnd_25mm_shells,
			2Rnd_GAA_missiles,
			2Rnd_Missile_AA_04_plane_fighter_01_F,
			240Rnd_CMFlare_Chaff_Magazine
		};
		class AnimationSources: AnimationSources
		{
			class AddGbu12: AddGbu12
			{
				initPhase = 0;
			};
			class AddZephyr: AddZephyr 
			{
				initPhase = 1;
			};
		};
		availableForSupportTypes[] = {};
	};
	class B_CTRG_Plane_Fighter_01_AA_F: B_CTRG_Plane_Fighter_01_CAS_F
	{
		author = $STR_A3_Night515;
		_generalMacro = "B_CTRG_Plane_Fighter_01_AA_F";
		displayName = "F-38 Stalker (AA)";
		weapons[] =
		{
			gatling_25mm,
			missiles_Zephyr,
			Missile_AA_04_Plane_CAS_01_F,
			CMFlareLauncher
		};
		magazines[] =
		{
			300Rnd_25mm_shells,
			2Rnd_GAA_missiles,
			2Rnd_Missile_AA_04_plane_fighter_01_F,
			240Rnd_CMFlare_Chaff_Magazine
		};
		class AnimationSources: AnimationSources
		{
			class AddGbu12: AddGbu12
			{
				initPhase = 0;
			};
			class AddZephyr: AddZephyr 
			{
				initPhase = 1;
			};
		};
		availableForSupportTypes[] = {};
	};
	class Plane_Fighter_01_wreck_F: PlaneWreck
	{
		author = $STR_A3_Night515;
		_generalMacro = "Plane_Fighter_01_wreck_F";
		scope = protected;
		scopeCurator = private;
		class Armory
		{
			disabled = true;
		};
		model = "Air_F_Aegis\Plane_Fighter_01\Plane_Fighter_01_wreck_F.p3d";
		typicalCargo[] = {};
		irTarget = false;
		transportAmmo = false;
		transportRepair = false;
		transportFuel = false;
		transportSoldier = true;
		class Eventhandlers{};
	};
};

btu89MA.png

Share this post


Link to post
Share on other sites

I mean yeah theres a screenshot .. And some things look odd.

 

But what exactly broke? what did it look like before... We need more info to help out

  • Like 2

Share this post


Link to post
Share on other sites

I mean yeah theres a screenshot .. And some things look odd.

 

But what exactly broke? what did it look like before... We need more info to help out

The UI is broken. Hop in any jet (preferably vanilla) and you'll see what the UI should look like.

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  

×