Jump to content
Sign in to follow this  
audiocustoms

FLIR for Little Bird Copilot

Recommended Posts

Hi

I got a problem that is killing me. I'm trying to add FLIR to my Little Bird Copilot and every time i get to the turret stuff neither BinPBO nor AddonBuilder want to binarize anymore.

Since i'm damn fresh in writing configs and do be honest i'm a total noob, i took a deep look in the config Deltagamer made for the DG British Aircraft Mod.

I would be so happy if somebody could walk me through.

Here is what i got by now:

// hiddenSelectionsTextures[] = {"TF47_Desert_LITTLEBIRD_NATO\data\heli_light_01_ext_blufor_desert_co.paa"};


class CfgPatches
{
   class TF47_LITTLE_BIRDS 
   { 
       author = "TF47";
       units[] = {"MH-9 Little Bird Desert","AH-9 Little Bird Desert"};
       weapons[] = {};
       requiredVersion = 0.1;
       requiredAddons[] = {"A3_Air_F"};
   };
};


class cfgVehicles
{
   class B_Heli_Light_01_F; 
   class TF47_Desert_LITTLEBIRD_NATO: B_Heli_Light_01_F     
   { 
       _generalMacro = "B_Heli_Light_01_F"; 
       scope = 2; 
       side = 1; 
       faction = "BLU_F"; 
       displayName="MH-9 Little Bird Desert";
       crew = "B_Helipilot_F"
       hiddenSelections[]= {"camo1"};
       hiddenSelectionsTextures[] = {"TF47_LITTLEBIRD_NATO\data\heli_light_01_ext_blufor_desert_co.paa"};        
       typicalCargo[] = {"B_Helipilot_F"}; 
       availableForSupportTypes[] = {"Transport"};
       maxSpeed = 282; //265;
       liftForceCoef = 1.6;  
       cyclicAsideForceCoef = 1.5; //1.3
       cyclicForwardForceCoef = 1.6; //1.0
       backRotorForceCoef = 2.4;
       weapons[] = {"CMFlareLauncher"};
       magazines[] = {"168Rnd_CMFlare_Chaff_Magazine"};
       driverCanEject = 1;
       cargoCanEject = 1;      
   };  

   class TF47_black_LITTLEBIRD_NATO: B_Heli_Light_01_F     
   { 
       _generalMacro = "B_Heli_Light_01_F"; 
       scope = 2; 
       side = 1; 
       faction = "BLU_F"; 
       displayName="MH-9 Little Bird Black";
       crew = "B_Helipilot_F"
       hiddenSelections[]= {"camo1"};
       hiddenSelectionsTextures[] = {"TF47_LITTLEBIRD_NATO\data\heli_light_01_ext_blufor_black_co.paa"};        
       typicalCargo[] = {"B_Helipilot_F"}; 
       availableForSupportTypes[] = {"Transport"};
       maxSpeed = 282; //265;
       liftForceCoef = 1.6;  
       cyclicAsideForceCoef = 1.5; //1.3
       cyclicForwardForceCoef = 1.6; //1.0
       backRotorForceCoef = 2.4;
       weapons[] = {"CMFlareLauncher"};
       magazines[] = {"168Rnd_CMFlare_Chaff_Magazine"};
       driverCanEject = 1;
       cargoCanEject = 1; 
   };  





   class B_Heli_Light_01_armed_F; 
   class TF47_Desert_LITTLEBIRD_NATO_armed: B_Heli_Light_01_armed_F     
   { 
       _generalMacro = "B_Heli_Light_01_armed_F"; 
       scope = 2; 
       side = 1; 
       faction = "BLU_F"; 
       displayName="AH-9 Little Bird Desert";
       crew = "B_Helipilot_F"
       hiddenSelections[]= {"camo1"};
       hiddenSelectionsTextures[] = {"TF47_LITTLEBIRD_NATO\data\heli_light_01_ext_blufor_desert_co.paa"};        
       typicalCargo[] = {"B_Helipilot_F"}; 
       availableForSupportTypes[] = {"Transport"};
       maxSpeed = 282; //265;
       liftForceCoef = 1.6;
       class pilotCamera
       {
           class OpticsIn
           {
               class Wide
               {
                   opticsDisplayName="W";
                   initAngleX=0;
                   minAngleX=0;
                   maxAngleX=0;
                   initAngleY=0;
                   minAngleY=0;
                   maxAngleY=0;
                   initFov=0.5;
                   minFov=0.5;
                   maxFov=0.5;
                   visionMode[]=
                   {
                       "Normal",
                       "NVG",
                       "TI"
                   };
                   thermalMode[]={0,1};
                   gunnerOpticsModel="A3\drones_f\Weapons_F_Gamma\Reticle\UAV_Optics_Gunner_wide_F.p3d";
               };
               showMiniMapInOptics=1;
               showUAVViewpInOptics=1;
               showSlingLoadManagerInOptics=1;
           };
           minTurn=0;
           maxTurn=0;
           initTurn=0;
           minElev=80;
           maxElev=80;
           initElev=80;
           maxXRotSpeed=0.5;
           maxYRotSpeed=0.5;
           pilotOpticsShowCursor=1;
           controllable=0;
       };
       memoryPointDriverOptics="slingCamera";
       cargoIsCoDriver[]={1,0};
       memoryPointsGetInGunner[]=
       {
           "pos codriver",
           "pos cargo"
       };
       memoryPointsGetInGunnerDir[]=
       {
           "pos codriver dir",
           "pos cargo dir"
       };
       memoryPointsGetInCargo[]=
       {
           "pos codriver",
           "pos cargo"
       };
       memoryPointsGetInCargoDir[]=
       {
           "pos codriver dir",
           "pos cargo dir"
       };
       gunnerUsesPilotView=0;
       driverCanSee=31;
       gunnerCanSee=31;
       class RenderTargets
       {
           class camera
           {
               renderTarget="rendertarget4";
               class CameraView1
               {
                   pointPosition="laserstart";
                   pointDirection="commanderview";
                   renderQuality=4;
                   renderVisionMode=0;
                   fov=0.46599999;
               };
           };
       };
       class UserActions
       {
           class Pimfdpip1ON
           {
               displayName="<t color='#ffff00'>Turn On FLIR MFD</t>";
               displayNameDefault="";
               position="";
               radius=3.5999999;
               onlyForplayer=1;
               condition="this animationPhase ""copip6"" < 0.5 AND (player == (driver this) && (alive this))";
               statement="this animate [""copip6"",1];";
               priority=9;
           };
           class Pimfdpip1OFF
           {
               displayName="<t color='#ffff00'>Turn Off FLIR MFD</t>";
               displayNameDefault="";
               position="";
               radius=3.5999999;
               onlyForplayer=1;
               condition="this animationPhase ""copip6"" > 0.5 AND (player == (driver this) && (alive this))";
               statement="this animate [""copip6"",0];";
               priority=9;
           };
           class PimfdpipON
           {
               displayName="<t color='#ffff00'>Turn On FLIR MFD</t>";
               displayNameDefault="";
               position="";
               radius=3.5999999;
               onlyForplayer=1;
               condition="this animationPhase ""copip4"" < 0.5 AND (player == (gunner this) && (alive this)) ";
               statement="this animate [""copip4"",1];";
               priority=9;
           };
           class PimfdpipOFF
           {
               displayName="<t color='#ffff00'>Turn Off FLIR MFD</t>";
               displayNameDefault="";
               position="";
               radius=3.5999999;
               onlyForplayer=1;
               condition="this animationPhase ""copip4"" > 0.5 AND (player == (gunner this) && (alive this))";
               statement="this animate [""copip4"",0];";
               priority=9;
           };
       };
       laserScanner=1;
       class CargoTurret;
       class Turrets: Turrets
       {
           class MainTurret: MainTurret
           {
               body="obsTurret";
               gun="obsGun";
               animationSourceBody="obsTurret";
               animationSourceGun="obsGun";
               stabilizedInAxes=3;
               gunnername="Co-Pilot";
               isCopilot=1;
               memoryPointGunnerOptics="commanderview";
               gunBeg="commanderview";
               gunEnd="laserstart";
               memoryPointGun="laserstart";
               turretInfoType="RscOptics_UAV_gunner";
               weapons[]=
               {
                   "Laserdesignator_mounted"
               };
               magazines[]=
               {
                   "Laserbatteries"
               };
               proxyType="CPGunner";
               inGunnerMayFire=1;
               gunnerAction="B_Helipilot_F";
               gunnerGetInAction="GetInHigh";
               gunnerGetOutAction="GetOutHigh";
               gunnerOpticsEffect[]={};
               gunnerOpticsModel="";
               class OpticsIn
               {
                   class WideNGS
                   {
                       opticsDisplayName="W";
                       initAngleX=0;
                       minAngleX=-35;
                       maxAngleX=10;
                       initAngleY=0;
                       minAngleY=-100;
                       maxAngleY=100;
                       initFov=0.46599999;
                       minFov=0.46599999;
                       maxFov=0.46599999;
                       visionMode[]=
                       {
                           "Normal",
                           "NVG",
                           "Ti"
                       };
                       thermalMode[]={0,1};
                       gunnerOpticsColor[]={0.15000001,1,0.15000001,1};
                       gunnerOpticsModel="A3\Weapons_F\Reticle\Optics_Gunner_MBT_03_w_F.p3d";
                       directionStabilized=0;
                       opticsPPEffects[]=
                       {
                           "OpticsCHAbera2",
                           "OpticsBlur2"
                       };
                   };
                   class Wide
                   {
                       opticsDisplayName="W";
                       initAngleX=0;
                       minAngleX=-35;
                       maxAngleX=10;
                       initAngleY=0;
                       minAngleY=-100;
                       maxAngleY=100;
                       initFov=0.46599999;
                       minFov=0.46599999;
                       maxFov=0.46599999;
                       visionMode[]=
                       {
                           "Normal",
                           "NVG",
                           "Ti"
                       };
                       thermalMode[]={0,1};
                       gunnerOpticsColor[]={0.15000001,1,0.15000001,1};
                       gunnerOpticsModel="A3\Weapons_F\Reticle\Optics_Gunner_MBT_02_w_F.p3d";
                       directionStabilized=1;
                       opticsPPEffects[]=
                       {
                           "OpticsCHAbera2",
                           "OpticsBlur2"
                       };
                       gunnerOpticsEffect[]=
                       {
                           "TankCommanderOptics1"
                       };
                   };
                   class WideL: Wide
                   {
                       opticsDisplayName="WL";
                       initFov=0.2;
                       minFov=0.2;
                       maxFov=0.2;
                       gunnerOpticsModel="A3\Weapons_F\Reticle\Optics_Gunner_MBT_02_m_F.p3d";
                       gunnerOpticsColor[]={0,0,0,1};
                       directionStabilized=1;
                       opticsPPEffects[]=
                       {
                           "OpticsCHAbera2",
                           "OpticsBlur2"
                       };
                   };
                   class Medium: Wide
                   {
                       opticsDisplayName="M";
                       initFov=0.1;
                       minFov=0.1;
                       maxFov=0.1;
                       directionStabilized=1;
                       gunnerOpticsColor[]={0,0,0,1};
                       gunnerOpticsModel="A3\Weapons_F\Reticle\Optics_Gunner_MBT_02_m_F.p3d";
                   };
                   class Narrow: Wide
                   {
                       opticsDisplayName="N";
                       gunnerOpticsColor[]={0,0,0,1};
                       gunnerOpticsModel="A3\Weapons_F\Reticle\Optics_Gunner_MBT_02_n_F.p3d";
                       directionStabilized=1;
                       initFov=0.02;
                       minFov=0.02;
                       maxFov=0.02;
                   };
                   class Narrower: Wide
                   {
                       opticsDisplayName="N";
                       gunnerOpticsColor[]={0,0,0,1};
                       gunnerOpticsModel="A3\Weapons_F\Reticle\Optics_Gunner_MBT_02_n_F.p3d";
                       directionStabilized=1;
                       initFov=0.0099999998;
                       minFov=0.0099999998;
                       maxFov=0.0099999998;
                   };
               };
               class OpticsOut
               {
                   class Monocular
                   {
                       initAngleX=0;
                       minAngleX=-30;
                       maxAngleX=30;
                       initAngleY=0;
                       minAngleY=-100;
                       maxAngleY=100;
                       initFov=1.1;
                       minFov=0.133;
                       maxFov=1.1;
                       visionMode[]=
                       {
                           "Normal",
                           "NVG"
                       };
                       gunnerOpticsModel="";
                       gunnerOpticsEffect[]={};
                   };
               };
               startEngine=0;
               gunnerHasFlares=0;
           };
           class CargoTurret_01: CargoTurret
           {
               gunnerAction="passenger_inside_2";
               gunnerCompartments="";
               memoryPointsGetInGunner="pos cargo right";
               memoryPointsGetInGunnerDir="pos cargo dir right";
               gunnerName="Passenger (Right Seat)";
               proxyIndex=7;
               maxElev=15;
               minElev=-60;
               maxTurn=20;
               minTurn=-100;
               isPersonTurret=1;
               ejectDeadGunner=0;
               enabledByAnimationSource="door_right_lynx";
               usepip=0;
               gunnerOutOpticsModel="";
               gunnerOpticsModel="";
               startEngine=0;
               outGunnerMayFire=1;
               inGunnerMayFire=0;
               commanding=-2;
               memoryPointGunnerOptics="";
           };
           class CargoTurret_02: CargoTurret
           {
               gunnerAction="passenger_inside_2";
               gunnerCompartments="";
               memoryPointsGetInGunner="pos cargo left";
               memoryPointsGetInGunnerDir="pos cargo dir left";
               gunnerName="Passenger (Left Seat)";
               proxyIndex=8;
               maxElev=15;
               minElev=-60;
               maxTurn=100;
               minTurn=-20;
               isPersonTurret=1;
               ejectDeadGunner=0;
               enabledByAnimationSource="door_left_lynx";
               usepip=0;
               gunnerOutOpticsModel="";
               gunnerOpticsModel="";
               startEngine=0;
               outGunnerMayFire=1;
               inGunnerMayFire=0;
               commanding=-2;
               memoryPointGunnerOptics="";
           };
       };



       cyclicAsideForceCoef = 1.5; //1.3
       cyclicForwardForceCoef = 1.6; //1.0
       backRotorForceCoef = 2.4;
       weapons[] = {"gatling_30mm","missiles_DAR","CMFlareLauncher"};
       magazines[] = {"250Rnd_30mm_HE_shells","250Rnd_30mm_HE_shells","250Rnd_30mm_HE_shells","250Rnd_30mm_HE_shells",
                     "250Rnd_30mm_HE_shells","250Rnd_30mm_HE_shells","250Rnd_30mm_HE_shells","250Rnd_30mm_HE_shells",
                     "24Rnd_missiles","168Rnd_CMFlare_Chaff_Magazine"};
       driverCanEject = 1;
       cargoCanEject = 1;
   };  

   class TF47_black_LITTLEBIRD_NATO_armed: B_Heli_Light_01_armed_F     
   { 
       _generalMacro = "B_Heli_Light_01_armed_F"; 
       scope = 2; 
       side = 1; 
       faction = "BLU_F"; 
       displayName="AH-9 Little Bird Black";
       crew = "B_Helipilot_F"
       hiddenSelections[]= {"camo1"};
       hiddenSelectionsTextures[] = {"TF47_LITTLEBIRD_NATO\data\heli_light_01_ext_blufor_black_co.paa"};        
       typicalCargo[] = {"B_Helipilot_F"}; 
       availableForSupportTypes[] = {"Transport"};
       maxSpeed = 282; //265;
       liftForceCoef = 1.6;  
       cyclicAsideForceCoef = 1.5; //1.3
       cyclicForwardForceCoef = 1.6; //1.0
       backRotorForceCoef = 2.4;
       weapons[] = {"gatling_30mm","missiles_DAR","CMFlareLauncher"};
       magazines[] = {"250Rnd_30mm_HE_shells","250Rnd_30mm_HE_shells","250Rnd_30mm_HE_shells","250Rnd_30mm_HE_shells",
                     "250Rnd_30mm_HE_shells","250Rnd_30mm_HE_shells","250Rnd_30mm_HE_shells","250Rnd_30mm_HE_shells",
                     "24Rnd_missiles","168Rnd_CMFlare_Chaff_Magazine"};
       driverCanEject = 1;
       cargoCanEject = 1;
   };  

};

Share this post


Link to post
Share on other sites

at first look, theres a few missing semi-colons:

class TF47_black_LITTLEBIRD_NATO_armed: B_Heli_Light_01_armed_F        { 
        ...
       crew = "B_Helipilot_F"

class TF47_Desert_LITTLEBIRD_NATO: B_Heli_Light_01_F      {
         ...
       crew = "B_Helipilot_F"

//it looks like every class has 'crew = "B_Helipilot_F" ' missing a semicolon

Share this post


Link to post
Share on other sites

I saw them, thx for the info and still no luck so far. But what i found is the "FLIR_F.p3d" in "a3/air_f/Heli_Light_01" and a lot of other questions that are giving me headaches because i don't understand any of it... Does this mean that there is an actual FLIR pod but not mounted? If so, how do i do that and how do i get it to work?

This seems not to work anymore:

		this animate ["AddFLIR",1];
	this animate ["AddHoldingFrame",1];
	this animate ["AddScreen1",1];
	this animate ["AddTread_Short",1];

I hope it would somehow looks like this:

01.jpg

If you guys din't notice already, i'm pretty desperate...

Edited by audiocustoms

Share this post


Link to post
Share on other sites

the flir pod was disabled at some point. before that it could be enabled via a simple script, but it was non-functioning and purely cosmetic. so basically there's no way to get it now without modding i suppose(but at that point you'd be making a new vehicle anyways). hope that answers your question

Share this post


Link to post
Share on other sites

Thx for the answer. Well, creating a new 3d model of an AH-6 (AH-9) is not going to happen for me. That's way out of my league. For now i'm gonna stick with adding FLIR without a mounted pod. I know it is possible somehow in the config.cpp. Can somebody help me there? Like i said in the first post, i took a look at Deltagamer's work, but this is all chinese to me.

Share this post


Link to post
Share on other sites

Good morning ladies and gentelmen...

So i made a little progress, but not much.

I used the vanilla AH-9 config.cpp as origin for the FLIR turret version. I merged it with parts from the AH-99. What i got was a non moving turret on the position of the copilots head. Also it renamed the vanilla MH-9 and AH-9. This is what the RPT got me:

7:13:53 Error: bin\config.bin/CfgVehicles/Heli_Light_01_armed_base_F/Turrets/CopilotTurret/: Turret body FLIR_turret not found while initializing the model a3\air_f\heli_light_01\heli_light_01_f.p3d
7:13:53 Error: bin\config.bin/CfgVehicles/Heli_Light_01_armed_base_F/Turrets/CopilotTurret/: Turret gun FLIR_gun not found while initializing the model a3\air_f\heli_light_01\heli_light_01_f.p3d

Here is the config.cpp at current state:

http://pastebin.com/0H3JrqtJ

Could somebody please have a look at it and tell me what i've done wrong? I can't find the error and no infos in the forums. What i need to know is what to do that it is not changeing the vanilla name, how to get the turret moving and changing it's position like on the nosetip of the AH-9.

Edited by audiocustoms

Share this post


Link to post
Share on other sites

The model needs memorypoints and bones defined in the p3d file and model.cfg. Without it the game has no clue over which axis it should rotate.

Share this post


Link to post
Share on other sites

Mash6 already explained to me via skype (model maker channel), but thx anyway for your answer.

Share this post


Link to post
Share on other sites

If you don't really mind about cosmetics, you can use external script to add FLIR-ish system to your chopper. I had same intention and I've used TGP script - it basically attaches AR-2 UAV to chopper's underbelly. Worked like a charm

Share this post


Link to post
Share on other sites

I was thinking of that, but as copilot you have to "log in" or connect to the flir. We are thinking of a New ah-6 model from the scratch but nothing fix for now.

Share this post


Link to post
Share on other sites

Not mean to hjack thread or something, but there are guys working on Mission Enchanced Littlebird - if you're still interested in making your own AH/MH-6, you could probably think of grouping up with them. And yes, they have FLIR in plans too.

Edited by Erem2k

Share this post


Link to post
Share on other sites

we have it in A2 in rangemaster mod,

littlebird1_zpsbe2c17f3.jpg

you could port from the A2 sample models easy enough.

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  

×