Jump to content
Sign in to follow this  
Sakowski

Config: some input after EndofFile - Need help finding the problem

Recommended Posts

Hai there! so I'm re-texturing Trouble's Lynx and after I have done all stuff with config.cpp (( It is in normal config.cpp as well, un edited one )) I get Config: some input after EndofFile, I have no idea what, where , who is causing it so I thought I would go and visit the editing section beside spamming Trouble's PM with that lol after all he tried his best fixing other bugs and I cannot see if its fixed unless I get this out.

So here is the code:

#include "basicDefines.hpp"
#include "CrewAnimations.hpp"





class CfgPatches
{
class CAAir
{
	units[] =
	{
		"Lynx,LynxM,LynxMT,LynxT"
	};
	weapons[] = {};
	requiredVersion = 0.10;
	requiredAddons[] = {CAData,CACharacters,CACharacters2,CAWeapons,CASounds,CA_Anims_Char};
};
};



class CfgFactionClasses {

class Air {	
	priority = 1;
	side = TGuerrila;
};
};

class CfgVehicles
{
class AllVehicles;
class Air: AllVehicles
{
	class NewTurret;
	class ViewPilot;

	class MarkerLights {

		class WhiteStill {
			name = "bily pozicni";
			color[] = {0.038800, 0.038800, 0.038800, 1.000000};
			ambient[] = {0.030000, 0.023000, 0.005600, 1.000000};
			brightness = 0.000100;
			blinking = 0;
		};

		class RedStill {
			name = "cerveny pozicni";
			color[] = {0.120000, 0.006000, 0.006000, 1.000000};
			ambient[] = {0.100000, 0.010000, 0.010000, 1.000000};
			brightness = 0.000100;
			blinking = 0;
		};

		class GreenStill {
			name = "zeleny pozicni";
			color[] = {0.006000, 0.120000, 0.006000, 1.000000};
			ambient[] = {0.010000, 0.100000, 0.010000, 1.000000};
			brightness = 0.000100;
			blinking = 0;
		};

		class WhiteBlinking {
			name = "bily pozicni blik";
			color[] = {0.038800, 0.038800, 0.038800, 1.000000};
			ambient[] = {0.030000, 0.023000, 0.005600, 1.000000};
			brightness = 0.000100;
			blinking = 1;
		};

		class RedBlinking {
			name = "cerveny pozicni blik";
			color[] = {0.120000, 0.006000, 0.006000, 1.000000};
			ambient[] = {0.100000, 0.010000, 0.010000, 1.000000};
			brightness = 0.000100;
			blinking = 1;
		};
	};

};



class Helicopter: Air
{
	type = 2;//VAir
	nameSound = "chopper";
	rotorBig = vrtule_velka;
	rotorBigBlend = vrtule_velka_bl;
	rotorSmall = vrtule_mala;
	rotorSmallBlend = vrtule_mala_bl;
	weapons[]={};
	magazines[]={};
	crewVulnerable = 1;
	getInAction=GetInMedium;
	getOutAction = GetOutMedium;
	class HitHull {armor=1;material=51;name="NEtrup";visual="trup";passThrough=1;} // disabled points from model
	class HitEngine {armor=0.25;material=51;name="motor";visual="motor";passThrough=1;}
	class HitAvionics {armor=0.15;material=51;name="elektronika";visual="elektronika";passThrough=0;}
	class HitVRotor {armor=0.3;material=51;name="mala vrtule";visual="mala vrtule";passThrough=0;}
	class HitHRotor {armor=0.2;material=51;name="velka vrtule";visual="velka vrtule";passThrough=0;}
	class HitMissiles {armor=0.1;material=51;name="munice";visual="munice";passThrough=1;}
	class HitRGlass {armor=0.1;material=51;name="sklo predni P";visual="sklo predni P";passThrough=0;}
	class HitLGlass {armor=0.1;material=51;name="sklo predni L";visual="sklo predni L";passThrough=0;}
	class ViewPilot: ViewPilot
	{
		initFov=0.8; minFov=0.3; maxFov=1.2;
		initAngleX=10; minAngleX=-45; maxAngleX=+80;
		initAngleY=0; minAngleY=-125; maxAngleY=+125;
	};

	class Turrets
	{
		class MainTurret: NewTurret
		{
			gunnerAction = "ManActTestDriverOut";
			gunnerOpticsModel = "\ca\air\optika_AH1Z";
			gunnerOutOpticsModel = \ca\Weapons\optika_empty;
			gunBeg = "usti hlavne"; //gunBeg = endpoint of the gun
			gunEnd = "konec hlavne"; //gunEnd = chamber of the gun
			memoryPointsGetInGunner= "pos driver";
			memoryPointsGetInGunnerDir= "pos driver dir";
			viewGunnerInExternal = true;
			animationSourceHatch = "hatchgunner";
			startEngine = 0;
			weapons[]={TOWLauncher};
			magazines[]={2Rnd_TOW,2Rnd_TOW,2Rnd_TOW,2Rnd_TOW};
			class HitTurret {armor=1;material=55;name="vez";visual="vez";passThrough=1;};
			class HitGun {armor=0.3;material=55;name="zbran";visual="zbran";passThrough=0;};

			class Turrets
			{
				class CommanderOptics: NewTurret
				{
					proxyType = CPCommander;
					proxyIndex = 1;
					gunnerName = $STR_POSITION_COMMANDER;
					primaryGunner = 0;
					primaryObserver = 1;

					body = "obsTurret";
					gun = "obsGun";
					animationSourceBody = "obsTurret";
					animationSourceGun = "obsGun";
					animationSourceHatch = "hatchCommander";
					startEngine = True;
					//Not a very nice solution:
					soundServo[] = {"", db-50, 1.0};
					weapons[]={M240};
					magazines[]={1200Rnd_762x51_M240};
					gunBeg = ""; //gunBeg = endpoint of the gun
					gunEnd = ""; //gunEnd = chamber of the gun

					minElev=-3; maxElev=+20; initElev=+8;
					minTurn=-360; maxTurn=+360; initTurn=0;
					commanding = 2;
					outGunnerMayFire = true;
					inGunnerMayFire = true;
					viewGunnerInExternal = 0;
					gunnerOpticsModel = "\ca\Tracked\optika_tank_driver";
					gunnerOutOpticsModel = \ca\Weapons\optika_empty;
					gunnerOutOpticsColor[] = {0, 0, 0, 1};
					gunnerOutForceOptics = false;
					gunnerOutOpticsShowCursor = false;
					memoryPointGunnerOutOptics = "commander_weapon_view";
					memoryPointGunnerOptics= "commanderview";
					memoryPointsGetInGunner= "pos driver";
					memoryPointsGetInGunnerDir= "pos driver dir";
					memoryPointGun = "gun_muzzle";
					selectionFireAnim = "zasleh_1";
					class ViewOptics
					{
						initAngleX=0; minAngleX=-30; maxAngleX=+30;
						initAngleY=0; minAngleY=-100; maxAngleY=+100;
						initFov=0.42; minFov=0.22; maxFov=0.64;
					};
					class ViewGunner
					{
						initAngleX=5; minAngleX=-30; maxAngleX=+30;
						initAngleY=0; minAngleY=0; maxAngleY=0;
						initFov=0.42; minFov=0.22; maxFov=0.64;
					};
				};
			};
		};
	};




	soundEngine[] = {};
	soundEnviron[] = {};
	soundDammage[] = {"\ca\Air\Data\Sound\alarm_loop1", db-40, 1};
	class EventHandlers {};
	supplyRadius = 1.2;

	accuracy=0.02;
	camouflage=100;
	audible=40;
};

//RealVehicles
//*******************************************************************		*******************************************************************
//west vehicles


class Lynx: Helicopter
{
	scope = public;
	model = "\Trh_Lyx\Lynx";
	picture = "\Trh_Lyx\datalynx_ca.paa";
	Icon="\Trh_Lyx\data\ico\icon_ah6x_ca.paa";
	mapSize = 9;
	nameSound = "chopper";
	displayName = "Lynx MK7 DPM";
	faction = "VDF";
	vehicleClass = "Air";

	transportSoldier = 8;
	hasGunner = 1;
	crew = LEN_UN_CDF_Marine_Pilot_EP1;
	side = TGuerrila;

	accuracy=0.02;
	camouflage=60;
	audible=20;
	occludeSoundsWhenIn = db-5;
	obstructSoundsWhenIn = db-10;


	weapons[] = {};
	magazines[] = {};
	forceHideDriver = true;
	driverAction = AH6_Pilot;
	//driverInAction = AH6_Pilot;
	//cargoIsCoDriver[] = {true};
	cargoAction[] = {AH6_Pilot,AH6_Pilot,UH60_Cargo02,UH60_Cargo02,UH60_Cargo02, UH60_Cargo02,UH60_Cargo02};




	//gunnerUsesPilotView = true;
	//castCargoShadow=true;
	extCameraPosition[]={0,2,-15};

	//minMainRotorDive = -7;
	//maxMainRotorDive = 5;

	maxSpeed = 350;
	class Turrets {};
	class ViewOptics
	{
		initAngleX = 0; minAngleX = -30; maxAngleX = 30;
		initAngleY = 0; minAngleY = -86; maxAngleY = 86;
		initFov = 0.1; minFov = 0.03; maxFov = 1.2;
	};

	soundEngine[]={};
	soundGetIn[]={\ca\air\Data\Sound\heli_door2,db-20,1};
	soundGetOut[]={\ca\air\Data\Sound\heli_door2,db-20,1};
	soundEngineOnInt[] = {"\Trh_Lyx\Data\sounds\startupin.wav", 3.162278, 1.000000, 800};
	soundEngineOnExt[] = {"\Trh_Lyx\Data\sounds\Start.wav", 3.162278, 1.000000, 800};
	soundEngineOffInt[] = {"ca\sounds\Air\UH1Y\int\int-stop-final", 0.100000, 1.000000};
	soundEngineOffExt[] = {"ca\sounds\Air\UH1Y\ext\ext-motor-stop", 1.000000, 1.000000, 800};
	armor = 30;
	damageResistance = 0.01039;
	cost = 10000000;







	class AnimationSources;





	class  UserCanopy
  		{
   		source = "User";
  		 animPeriod = 1000;
   		initPhase=0;
  		};

	class  UserCanopy1
  		{
   		source = "User";
  		 animPeriod = 1000;
   		initPhase=0;
  		};






	dammageHalf[]=
	{
		\ca\air\data\jeep_kab_sklo1.paa,\ca\air\data\jeep_kab_sklo1B.paa,
		\ca\air\data\uh60_kab_sklo2.paa,\ca\air\data\uh60_kab_sklo2B.paa,
		\ca\air\data\uh60_gunner_okna.paa,\ca\air\data\uh60_gunner_oknaB.paa,
		\ca\air\data\ah-1_kabina_predokno.paa,\ca\air\data\ah-1_kabina_predoknoB.paa,
		\ca\air\data\ah-1_kabina_zadokno.paa,\ca\air\data\ah-1_kabina_zadoknoB.paa,
		\ca\air\data\ah-1_kabina_topokno.paa,\ca\air\data\ah-1_kabina_topoknoB.paa
	};
	dammageFull[]=
	{
		\ca\air\data\jeep_kab_sklo1.paa,\ca\air\data\jeep_kab_sklo1C.paa,
		\ca\air\data\uh60_kab_sklo2.paa,\ca\air\data\uh60_kab_sklo2C.paa,
		\ca\air\data\uh60_gunner_okna.paa,\ca\air\data\uh60_gunner_oknaC.paa,
		\ca\air\data\ah-1_kabina_predokno.paa,\ca\air\data\ah-1_kabina_predoknoC.paa,
		\ca\air\data\ah-1_kabina_zadokno.paa,\ca\air\data\ah-1_kabina_zadoknoC.paa,
		\ca\air\data\ah-1_kabina_topokno.paa,\ca\air\data\ah-1_kabina_topoknoC.paa
	};


	class UserActions
		 {
 		 class OpenRamp
 		 {
  		 displayName="Open Door";
   		 position="Action_Canopy";
   		 onlyforplayer=0;
  		 radius=8;
   		 condition="(this animationPhase ""AnimateCanopy"" == 0)"; 
   		 statement="this animate [""AnimateCanopy"",1];";
  		 };
  		 class CloseRamp
 		 {
 	         displayName="Close Door";
   		 position="Action_Canopy";
   		 onlyforplayer=0;
   		 radius=8;
   		 condition="(this animationPhase ""AnimateCanopy"" == 1)";
   		 statement="this animate [""AnimateCanopy"",0];";
  		 };

	 class OpenRamp1
 		 {
  		 displayName="Open Door1";
   		 position="Action_Canopy1";
   		 onlyforplayer=0;
  		 radius=8;
   		 condition="(this animationPhase ""AnimateCanopy1"" == 0)"; 
   		 statement="this animate [""AnimateCanopy1"",1];";
  		 };
  		 class CloseRamp1
 		 {
 	         displayName="Close Door1";
   		 position="Action_Canopy1";
   		 onlyforplayer=0;
   		 radius=8;
   		 condition="(this animationPhase ""AnimateCanopy1"" == 1)";
   		 statement="this animate [""AnimateCanopy1"",0];";
  		 };
 		};











	class Sounds {

		class Engine {
			sound[] = {"\Trh_Lyx\Data\sounds\Engine.wav", 3.162278, 1.000000, 800};
			frequency = "rotorSpeed";
			volume = "camPos*((rotorSpeed-0.72)*4)";
		};

		class RotorLowOut {
			sound[] = {"\Trh_Lyx\Data\sounds\Engine.wav", 3.162278, 1.000000, 800};
			frequency = "rotorSpeed";
			volume = "camPos*(0 max (rotorSpeed-0.1))";
			cone = {1.800000, 3.140000, 2.000000, 0.900000};
		};

		class RotorHighOut {
			sound[] = {"\Trh_Lyx\Data\sounds\Engine.wav", 3.162278, 1.000000, 800};
			frequency = "rotorSpeed";
			volume = "camPos*10*(0 max (rotorThrust-0.95))";
			cone = {1.800000, 3.140000, 2.000000, 0.900000};
		};

		class EngineIn {
			sound[] = {"\Trh_Lyx\Data\sounds\Inside.wav", 1.778279, 1.000000};
			frequency = "rotorSpeed";
			volume = "(1-camPos)*((rotorSpeed-0.75)*4)";
		};

		class RotorLowIn {
			sound[] = {"\Trh_Lyx\Data\sounds\Inside.wav", 1.778279, 1.000000};
			frequency = "rotorSpeed";
			volume = "2*(1-camPos)*((rotorSpeed factor[0.3, 1.1]) min (rotorSpeed factor[1.1, 0.3]))";
		};

		class RotorHighIn {
			sound[] = {"\Trh_Lyx\Data\sounds\Inside.wav", 1.778279, 1.000000};
			frequency = "rotorSpeed";
			volume = "(1-camPos)*3*(rotorThrust-0.9)";
		};
	};




	threat[] = {0.6, 0.6, 0.3};


	class Library
	{
	  	libTextDesc = $STR_LIB_AH6;
	};




};











class LynxM: Lynx
{
	scope = public;
	model = "\Trh_Lyx\LynxM";
	picture = "\Trh_Lyx\datalynx_ca.paa";
	Icon="\Trh_Lyx\data\ico\icon_ah6x_ca.paa";
	mapSize = 9;
	nameSound = "chopper";
	displayName = "Lynx MK7";
	faction = "VDF";
	vehicleClass = "Air";

	transportSoldier = 8;
	//hasGunner = 0;
	crew = LEN_UN_CDF_Marine_Pilot_EP1;
	side = TGuerrila;

	accuracy=0.02;
	camouflage=60;
	audible=20;
	occludeSoundsWhenIn = db-5;
	obstructSoundsWhenIn = db-10;

	hasGunner = 1;
	weapons[] = {};
	magazines[] = {};
	forceHideDriver = true;
	driverAction = AH6_Pilot;
	//driverInAction = AH6_Pilot;
	//cargoIsCoDriver[] = {true};
	cargoAction[] = {AH6_Pilot, AH6_Pilot,UH60_Cargo02,UH60_Cargo02,UH60_Cargo02, UH60_Cargo02,UH60_Cargo02};


	//gunnerUsesPilotView = true;
	//castCargoShadow=true;
	extCameraPosition[]={0,2,-15};

	//minMainRotorDive = -7;
	//maxMainRotorDive = 5;

	maxSpeed = 350;
	class Turrets {};
	class ViewOptics
	{
		initAngleX = 0; minAngleX = -30; maxAngleX = 30;
		initAngleY = 0; minAngleY = -86; maxAngleY = 86;
		initFov = 0.1; minFov = 0.03; maxFov = 1.2;
	};

	soundEngine[]={};
	soundGetIn[]={\ca\air\Data\Sound\heli_door2,db-20,1};
	soundGetOut[]={\ca\air\Data\Sound\heli_door2,db-20,1};
	soundEngineOnInt[] = {"\Trh_Lyx\Data\sounds\startupin.wav", 3.162278, 1.000000, 800};
	soundEngineOnExt[] = {"\Trh_Lyx\Data\sounds\Start.wav", 3.162278, 1.000000, 800};
	soundEngineOffInt[] = {"ca\sounds\Air\UH1Y\int\int-stop-final", 0.100000, 1.000000};
	soundEngineOffExt[] = {"ca\sounds\Air\UH1Y\ext\ext-motor-stop", 1.000000, 1.000000, 800};
	armor = 30;
	damageResistance = 0.01039;
	cost = 10000000;














	class Sounds {

		class Engine {
			sound[] = {"\Trh_Lyx\Data\sounds\Engine.wav", 3.162278, 1.000000, 800};
			frequency = "rotorSpeed";
			volume = "camPos*((rotorSpeed-0.72)*4)";
		};

		class RotorLowOut {
			sound[] = {"\Trh_Lyx\Data\sounds\Engine.wav", 3.162278, 1.000000, 800};
			frequency = "rotorSpeed";
			volume = "camPos*(0 max (rotorSpeed-0.1))";
			cone = {1.800000, 3.140000, 2.000000, 0.900000};
		};

		class RotorHighOut {
			sound[] = {"\Trh_Lyx\Data\sounds\Engine.wav", 3.162278, 1.000000, 800};
			frequency = "rotorSpeed";
			volume = "camPos*10*(0 max (rotorThrust-0.95))";
			cone = {1.800000, 3.140000, 2.000000, 0.900000};
		};

		class EngineIn {
			sound[] = {"\Trh_Lyx\Data\sounds\Inside.wav", 1.778279, 1.000000};
			frequency = "rotorSpeed";
			volume = "(1-camPos)*((rotorSpeed-0.75)*4)";
		};

		class RotorLowIn {
			sound[] = {"\Trh_Lyx\Data\sounds\Inside.wav", 1.778279, 1.000000};
			frequency = "rotorSpeed";
			volume = "2*(1-camPos)*((rotorSpeed factor[0.3, 1.1]) min (rotorSpeed factor[1.1, 0.3]))";
		};

		class RotorHighIn {
			sound[] = {"\Trh_Lyx\Data\sounds\Inside.wav", 1.778279, 1.000000};
			frequency = "rotorSpeed";
			volume = "(1-camPos)*3*(rotorThrust-0.9)";
		};
	};




	threat[] = {0.6, 0.6, 0.3};


	class Library
	{
	  	libTextDesc = $STR_LIB_AH6;
	};




};














class LynxT: Lynx
{
	scope = public;
	model = "\Trh_Lyx\LynxT";
	picture = "\Trh_Lyx\datalynx_ca.paa";
	Icon="\Trh_Lyx\data\ico\icon_ah6x_ca.paa";
	mapSize = 9;
	nameSound = "chopper";
	displayName = "Lynx MK7 DPM TOW";
	faction = "VDF";
	vehicleClass = "Air";

	transportSoldier = 8;
	hasGunner = 1;
	crew = LEN_UN_CDF_Marine_Pilot_EP1;
	side = TGuerrila;

	accuracy=0.02;
	camouflage=60;
	audible=20;
	occludeSoundsWhenIn = db-5;
	obstructSoundsWhenIn = db-10;


	memoryPointLMissile = "Missile_1"; //zkusim otocit
	memoryPointRMissile = "Missile_2"; //zkusim otocit
	memoryPointLRocket = "Rocket_1";
	memoryPointRRocket = "Rocket_2";

	selectionFireAnim = "muzzleflash";


	weapons[] = {TOWLauncher};
	magazines[] = {2Rnd_TOW,2Rnd_TOW,2Rnd_TOW,2Rnd_TOW};
	forceHideDriver = true;
	driverAction = AH6_Pilot;
	driverInAction = AH6_Pilot;
	//cargoIsCoDriver[] = {true};
	cargoAction[] = {AH6_Pilot, AH6_Pilot,UH60_Cargo02,UH60_Cargo02,UH60_Cargo02, UH60_Cargo02,UH60_Cargo02};


	class Turrets {

		class MainTurret: NewTurret {
			body = "mainTurret";
			gun = "mainGun";
			gunnerAction = AH1Z_Gunner;
			gunnerInAction = AH1Z_Gunner;
			gunnerOpticsModel = "\ca\air\optika_AH1Z";
			forceHideGunner = 1;
			startEngine = 0;
			threat = {1, 1, 0.300000};
			lockWhenDriverOut = 0;
			//gunBeg = "usti hlavne";
			//gunEnd = "konec hlavne";
			weapons[] = {TOWLauncher};
			magazines[] = {2Rnd_TOW,2Rnd_TOW,2Rnd_TOW,2Rnd_TOW};
			memoryPointsGetInGunner = "pos driver";
			memoryPointsGetInGunnerDir = "pos driver dir";
			memoryPointGunnerOutOptics = "gunnerview";
			memoryPointGunnerOptics = "gunnerview";
			viewGunnerInExternal = 1;
			maxHorizontalRotSpeed = 0.750000;
			maxVerticalRotSpeed = 0.450000;
			minElev=-60; maxElev=+10; initElev=0;
			minTurn=-70; maxTurn=+70; initTurn=0;
			primaryGunner = 1;
			primaryObserver =0;


			class OpticsIn {
				class Wide {
					initAngleX = 0;
					minAngleX = -130;
					maxAngleX = 130;
					initAngleY = 0;
					minAngleY = -100;
					maxAngleY = 100;
					initFov = 0.155;
					minFov = 0.155;
					maxFov = 0.155;
					visionMode[] = {"Normal", NVG, "Ti"};
					thermalMode[] = {2, 3};
					gunnerOpticsModel = "\ca\air\optika_AH1Z";
					gunnerOpticsEffect[] = {};
				};
				class Narrow: Wide {
					gunnerOpticsModel = "\ca\air\optika_AH1Z";
					initFov = 0.047000;
					minFov = 0.047000;
					maxFov = 0.047000;
				};
			};
		};
	};



	//gunnerUsesPilotView = true;
	//castCargoShadow=true;
	extCameraPosition[]={0,2,-15};

	//minMainRotorDive = -7;
	//maxMainRotorDive = 5;

	maxSpeed = 350;
	//class Turrets {};
	//class ViewOptics
	//{
		//initAngleX = 0; minAngleX = -30; maxAngleX = 30;
		//initAngleY = 0; minAngleY = -86; maxAngleY = 86;
		//initFov = 0.1; minFov = 0.03; maxFov = 1.2;
	//};

	soundEngine[]={};
	soundGetIn[]={\ca\air\Data\Sound\heli_door2,db-20,1};
	soundGetOut[]={\ca\air\Data\Sound\heli_door2,db-20,1};
	soundEngineOnInt[] = {"\Trh_Lyx\Data\sounds\startupin.wav", 3.162278, 1.000000, 800};
	soundEngineOnExt[] = {"\Trh_Lyx\Data\sounds\Start.wav", 3.162278, 1.000000, 800};
	soundEngineOffInt[] = {"ca\sounds\Air\UH1Y\int\int-stop-final", 0.100000, 1.000000};
	soundEngineOffExt[] = {"ca\sounds\Air\UH1Y\ext\ext-motor-stop", 1.000000, 1.000000, 800};
	armor = 30;
	damageResistance = 0.01039;
	cost = 10000000;


	class Sounds {

		class Engine {
			sound[] = {"\Trh_Lyx\Data\sounds\Engine.wav", 3.162278, 1.000000, 800};
			frequency = "rotorSpeed";
			volume = "camPos*((rotorSpeed-0.72)*4)";
		};

		class RotorLowOut {
			sound[] = {"\Trh_Lyx\Data\sounds\Engine.wav", 3.162278, 1.000000, 800};
			frequency = "rotorSpeed";
			volume = "camPos*(0 max (rotorSpeed-0.1))";
			cone = {1.800000, 3.140000, 2.000000, 0.900000};
		};

		class RotorHighOut {
			sound[] = {"\Trh_Lyx\Data\sounds\Engine.wav", 3.162278, 1.000000, 800};
			frequency = "rotorSpeed";
			volume = "camPos*10*(0 max (rotorThrust-0.95))";
			cone = {1.800000, 3.140000, 2.000000, 0.900000};
		};

		class EngineIn {
			sound[] = {"\Trh_Lyx\Data\sounds\Inside.wav", 1.778279, 1.000000};
			frequency = "rotorSpeed";
			volume = "(1-camPos)*((rotorSpeed-0.75)*4)";
		};

		class RotorLowIn {
			sound[] = {"\Trh_Lyx\Data\sounds\Inside.wav", 1.778279, 1.000000};
			frequency = "rotorSpeed";
			volume = "2*(1-camPos)*((rotorSpeed factor[0.3, 1.1]) min (rotorSpeed factor[1.1, 0.3]))";
		};

		class RotorHighIn {
			sound[] = {"\Trh_Lyx\Data\sounds\Inside.wav", 1.778279, 1.000000};
			frequency = "rotorSpeed";
			volume = "(1-camPos)*3*(rotorThrust-0.9)";
		};
	};




	threat[] = {0.6, 0.6, 0.3};


	class Library
	{
	  	libTextDesc = $STR_LIB_AH6;
	};




};












class LynxMT: Lynx
{
	scope = public;
	model = "\Trh_Lyx\LynxMT";
	picture = "\Trh_Lyx\datalynx_ca.paa";
	Icon="\Trh_Lyx\data\ico\icon_ah6x_ca.paa";
	mapSize = 9;
	nameSound = "chopper";
	displayName = "Lynx MK7 TOW";
	faction = "VDF";
	vehicleClass = "Air";

	transportSoldier = 8;
	hasGunner = 1;
	crew = LEN_UN_CDF_Marine_Pilot_EP1;
	side = TGuerrila;

	accuracy=0.02;
	camouflage=60;
	audible=20;
	occludeSoundsWhenIn = db-5;
	obstructSoundsWhenIn = db-10;


	memoryPointLMissile = "Missile_1"; //zkusim otocit
	memoryPointRMissile = "Missile_2"; //zkusim otocit
	memoryPointLRocket = "Rocket_1";
	memoryPointRRocket = "Rocket_2";

	selectionFireAnim = "muzzleflash";


	weapons[] = {TOWLauncher};
	magazines[] = {2Rnd_TOW,2Rnd_TOW,2Rnd_TOW,2Rnd_TOW};
	forceHideDriver = true;
	driverAction = AH6_Pilot;
	driverInAction = AH6_Pilot;
	//cargoIsCoDriver[] = {true};
	cargoAction[] = {AH6_Pilot, AH6_Pilot,UH60_Cargo02,UH60_Cargo02,UH60_Cargo02, UH60_Cargo02,UH60_Cargo02};


	class Turrets {

		class MainTurret: NewTurret {
			body = "mainTurret";
			gun = "mainGun";
			gunnerAction = AH1Z_Gunner;
			gunnerInAction = AH1Z_Gunner;
			gunnerOpticsModel = "\ca\air\optika_AH1Z";
			forceHideGunner = 1;
			startEngine = 0;
			threat = {1, 1, 0.300000};
			lockWhenDriverOut = 0;
			//gunBeg = "usti hlavne";
			//gunEnd = "konec hlavne";
			weapons[] = {TOWLauncher};
			magazines[] = {2Rnd_TOW,2Rnd_TOW,2Rnd_TOW,2Rnd_TOW};
			memoryPointsGetInGunner = "pos driver";
			memoryPointsGetInGunnerDir = "pos driver dir";
			memoryPointGunnerOutOptics = "gunnerview";
			memoryPointGunnerOptics = "gunnerview";
			viewGunnerInExternal = 1;
			maxHorizontalRotSpeed = 0.750000;
			maxVerticalRotSpeed = 0.450000;
			minElev=-60; maxElev=+10; initElev=0;
			minTurn=-70; maxTurn=+70; initTurn=0;
			primaryGunner = 1;
			primaryObserver =0;


			class OpticsIn {
				class Wide {
					initAngleX = 0;
					minAngleX = -130;
					maxAngleX = 130;
					initAngleY = 0;
					minAngleY = -100;
					maxAngleY = 100;
					initFov = 0.155;
					minFov = 0.155;
					maxFov = 0.155;
					visionMode[] = {"Normal", NVG, "Ti"};
					thermalMode[] = {2, 3};
					gunnerOpticsModel = "\ca\air\optika_AH1Z";
					gunnerOpticsEffect[] = {};
				};
				class Narrow: Wide {
					gunnerOpticsModel = "\ca\air\optika_AH1Z";
					initFov = 0.047000;
					minFov = 0.047000;
					maxFov = 0.047000;
				};
			};
		};
	};



	//gunnerUsesPilotView = true;
	//castCargoShadow=true;
	extCameraPosition[]={0,2,-15};

	//minMainRotorDive = -7;
	//maxMainRotorDive = 5;

	maxSpeed = 350;
	//class Turrets {};
	//class ViewOptics
	//{
		//initAngleX = 0; minAngleX = -30; maxAngleX = 30;
		//initAngleY = 0; minAngleY = -86; maxAngleY = 86;
		//initFov = 0.1; minFov = 0.03; maxFov = 1.2;
	//};

	soundEngine[]={};
	soundGetIn[]={\ca\air\Data\Sound\heli_door2,db-20,1};
	soundGetOut[]={\ca\air\Data\Sound\heli_door2,db-20,1};
	soundEngineOnInt[] = {"\Trh_Lyx\Data\sounds\startupin.wav", 3.162278, 1.000000, 800};
	soundEngineOnExt[] = {"\Trh_Lyx\Data\sounds\Start.wav", 3.162278, 1.000000, 800};
	soundEngineOffInt[] = {"ca\sounds\Air\UH1Y\int\int-stop-final", 0.100000, 1.000000};
	soundEngineOffExt[] = {"ca\sounds\Air\UH1Y\ext\ext-motor-stop", 1.000000, 1.000000, 800};
	armor = 30;
	damageResistance = 0.01039;
	cost = 10000000;


	class Sounds {

		class Engine {
			sound[] = {"\Trh_Lyx\Data\sounds\Engine.wav", 3.162278, 1.000000, 800};
			frequency = "rotorSpeed";
			volume = "camPos*((rotorSpeed-0.72)*4)";
		};

		class RotorLowOut {
			sound[] = {"\Trh_Lyx\Data\sounds\Engine.wav", 3.162278, 1.000000, 800};
			frequency = "rotorSpeed";
			volume = "camPos*(0 max (rotorSpeed-0.1))";
			cone = {1.800000, 3.140000, 2.000000, 0.900000};
		};

		class RotorHighOut {
			sound[] = {"\Trh_Lyx\Data\sounds\Engine.wav", 3.162278, 1.000000, 800};
			frequency = "rotorSpeed";
			volume = "camPos*10*(0 max (rotorThrust-0.95))";
			cone = {1.800000, 3.140000, 2.000000, 0.900000};
		};

		class EngineIn {
			sound[] = {"\Trh_Lyx\Data\sounds\Inside.wav", 1.778279, 1.000000};
			frequency = "rotorSpeed";
			volume = "(1-camPos)*((rotorSpeed-0.75)*4)";
		};

		class RotorLowIn {
			sound[] = {"\Trh_Lyx\Data\sounds\Inside.wav", 1.778279, 1.000000};
			frequency = "rotorSpeed";
			volume = "2*(1-camPos)*((rotorSpeed factor[0.3, 1.1]) min (rotorSpeed factor[1.1, 0.3]))";
		};

		class RotorHighIn {
			sound[] = {"\Trh_Lyx\Data\sounds\Inside.wav", 1.778279, 1.000000};
			frequency = "rotorSpeed";
			volume = "(1-camPos)*3*(rotorThrust-0.9)";
		};
	};




	threat[] = {0.6, 0.6, 0.3};


	class Library
	{
	  	libTextDesc = $STR_LIB_AH6;
	};




};





























};

All I did in the config is changed side, faction and fixed a error of double Cfgvehicleclass or something like that.

Pastebin just in case you prefer that:

http://pastebin.com/ChzgRtuy

Share this post


Link to post
Share on other sites
Gnat;2240659']Where did this addon come from ?!

Thats a somewhat screwed ArmA2 (?) config

From Trouble, ArmA 2 OA Lynx, he have send me new config.cpp that fixes some bugs but seems like new config.cpp is a bug now.

Share this post


Link to post
Share on other sites
Gnat;2240659']Where did this addon come from ?!

Thats a somewhat screwed ArmA2 (?) config

Haha +1.

There from Trouble's Lynx pack. (I Think?) I have a few of his birds as I'm putting them into the P82 Mod. Im afraid you will need to re-write his config. I get the same error code's on his configs :o

Share this post


Link to post
Share on other sites

So any ideas on how to fix it?

Or perhaps wait till Trouble makes new config.cpp for that? (( I have send him a PM as well but perhaps if someone knows how to fix it I will send him the fix... ))

Share this post


Link to post
Share on other sites
So any ideas on how to fix it?

Or perhaps wait till Trouble makes new config.cpp for that? (( I have send him a PM as well but perhaps if someone knows how to fix it I will send him the fix... ))

Fixing wont be easy, rewriting/ starting the config again maybe the better solution. That config is one hell of a mess, you need to work out which closing bracket is giving the error and making amends, i find using Notepad ++ is best for editing.

Share this post


Link to post
Share on other sites

That error means its missing a '};' somewhere.

You can try and clean it up, delete the huge spaces etc..

To be honest though.. by the time you have cleaned it up & if you actually get it fixed. You could have written a new config :D

Edited by konyo

Share this post


Link to post
Share on other sites

No way I can re-write a config lol,thats beyond my skills xD I tried tiding it up but nothing beside giving me a headache from all this thinking lol

I will send this topic to Trouble I guess.

And ya I use notepad++ as well.

Share this post


Link to post
Share on other sites
That error means its missing a '};' somewhere.

I already checked that. there are matching { } soooooo ..... its not that simple.

I then started reading the detail ........... config might have suited OFP or ArmA1 years ago ..... but its nothing like a normal ArmA2 config.

Trouble's Lynx pack

Never heard of it.

Share this post


Link to post
Share on other sites

yeah, i added support of all of Trouble's addons to my mission, and they are full of errors. good models but the configs need some work.

rule 1 : dont overwrite base classes, and he does alot of that.

I've actually cleaned up a few of his configs, including this one. I got your PM, and will work on it and get it to you.

Share this post


Link to post
Share on other sites

Trouble...that name suits that guy very well. :(

As already said, clean up the config, remove empty lines, use tab stops for brackets and you'll find out very fast where the problem is.

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  

×