Jump to content
Sign in to follow this  
aduke823

Helicopter Turret Control Reversed

Recommended Posts

Hello,

So, I have started making helos again and for some reason one of my turrets has its controls reversed, when I move up, the turret goes down and vice-versa. This is especially unfortunate when AI are manning this turret because when they see a target below them they point the gun up instead of down.

I have troubleshooted this thing for days, not sure if it is a config.cpp, model.cfg or a .p3d issue.

It is probably just something specific to ArmA 3 that I have not become accustomed to.

Anyway, I have posted my config.cpp below

Config.cpp:

class CfgPatches 
{
   class ad_helos 
   {
       units[] = {};
       weapons[] = {};
       requiredVersion = 1.0;
       requiredAddons[] = {};
   };
};
class CfgVehicleClasses
{
   class ad_helos
   {
       displayName = "ADuke's Helos";
   };
   class ad_units
   {
       displayName = "ADuke's Units";
   };
};
class CfgWeapons
{
   class hlc_rifle_CQBR; //External
   class ad_rifle_cqbr: hlc_rifle_CQBR
   {
       class LinkedItems
       {
           class LinkedItemsOptic
           {
               slot = "CowsSlot";
               item = "CUP_optic_HoloBlack";
           };
           class LinkedItemsAcc
           {
               slot = "PointerSlot";
               item = "acc_pointer_IR";
           };
       };
   };
};
class CfgVehicles
{
   class B_AssaultPack_rgr; //External
   class ad_AssaultPack_rgr: B_AssaultPack_rgr
   {
       scope = 2; 
       class TransportMagazines 
       { 
           class _xx_hlc_30rnd_556x45_EPR 
           { 
               magazine = "hlc_30rnd_556x45_EPR"; 
               count = 6; 
           };
           class _xx_CUP_PipeBomb_M 
           { 
               magazine = "CUP_PipeBomb_M"; 
               count = 1; 
           };
           class _xx_B_IR_Grenade
           { 
               magazine = "B_IR_Grenade"; 
               count = 6; 
           }; 
       }; 
   };
   class B_Helipilot_F //External
   {
       class Eventhandlers; //External
   };
   class AD_USMC_Pilot: B_Helipilot_F
   {
       scope = 2;
       vehicleClass = "ad_units";
       displayName = "USMC Helo Pilot";
       uniformClass = "nomex_tan";
       backpack = "ad_AssaultPack_rgr";
       linkedItems[] = 
       {
           "V_Chestrig_rgr",
           "H_PilotHelmetHeli_O",
           "ItemMap",
           "ItemCompass",
           "ItemWatch",
           "ItemRadio",
           "A3_GPNVG18_F",
           "ItemGPS",
           "FirstAidKit"
       };
       respawnLinkedItems[] = 
       {
           "V_Chestrig_rgr",
           "H_PilotHelmetHeli_O",
           "ItemMap",
           "ItemCompass",
           "ItemWatch",
           "ItemRadio",
           "A3_GPNVG18_F",
           "ItemGPS",
           "FirstAidKit"
       };
       weapons[] = 
       {
           "ad_rifle_cqbr",
           "hgun_P07_F",
           "Laserdesignator",
           "Throw",
           "Put"
       };
       respawnWeapons[] = 
       {
           "ad_rifle_cqbr",
           "hgun_P07_F",
           "Laserdesignator",
           "Throw",
           "Put"
       };
       magazines[] = 
       {
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "SmokeShellYellow",
           "SmokeShellRed",
           "SmokeShellPurple",
           "SmokeShellGreen",
           "SmokeShellBlue",
           "SmokeShellOrange",
           "Chemlight_red",
           "Chemlight_red",
           "Chemlight_red",
           "Chemlight_red",
           "Chemlight_red",
           "Chemlight_yellow",
           "Chemlight_yellow",
           "Chemlight_red",
           "Chemlight_red",
           "Chemlight_red",
           "Chemlight_red",
           "Chemlight_red",
           "SmokeShellOrange",
           "SmokeShellOrange",
           "SmokeShellOrange",
           "SmokeShellOrange",
           "SmokeShellOrange",
           "rhs_mag_m67",
           "Chemlight_yellow"
       };
       respawnMagazines[] = 
       {
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "hlc_30rnd_556x45_EPR",
           "SmokeShellYellow",
           "SmokeShellRed",
           "SmokeShellPurple",
           "SmokeShellGreen",
           "SmokeShellBlue",
           "SmokeShellOrange",
           "Chemlight_red",
           "Chemlight_red",
           "Chemlight_red",
           "Chemlight_red",
           "Chemlight_red",
           "Chemlight_yellow",
           "Chemlight_yellow",
           "Chemlight_red",
           "Chemlight_red",
           "Chemlight_red",
           "Chemlight_red",
           "Chemlight_red",
           "SmokeShellOrange",
           "SmokeShellOrange",
           "SmokeShellOrange",
           "SmokeShellOrange",
           "SmokeShellOrange",
           "rhs_mag_m67",
           "Chemlight_yellow"
       };
   };
   class AllVehicles;
   class Air;
   class Helicopter: Air
   {
       class Turrets
       {
           class MainTurret;    
       };
       class NewTurret;
       class AnimationSources;
       class HitPoints;
       class ViewPilot;
       class ViewOptics;        
   };
   class Helicopter_Base_F: Helicopter
   {        
       class Turrets;
       class HitPoints: HitPoints
       {
           class HitHull;
           class HitHRotor;
           class HitGlass1;
           class HitGlass2;
           class HitGlass3;
           class HitGlass4;
       };
       class AnimationSources;
       class Eventhandlers;
       class ViewOptics;        
   };
   class ad_uh1y_base: Helicopter //External
   {
       features = "Slingload: Slingloads up to 2000kg";
       slingLoadMaxCargoMass = 2000;
       showNVGCargo[] = {0,0,1};
       destrType = "DestructWreck";        
       scope = 0;
       side = 1;
       picture = "\ad_helos\data\icon_uh1y.paa";
       icon = "\ad_helos\data\icon_uh1y.paa";
       mapSize = 15;
       faction = "BLU_F";
       availableForSupportTypes[] = {};
       cargoCanEject = 1;
       driverCanEject = 0;
       helmetMountedDisplay = 0;
       maxFordingDepth = 0.75;
       mainBladeRadius = 7.5;
       altFullForce = 4000;
       altNoForce = 6000;
       LockDetectionSystem = "2 + 8 + 4";
       incomingMissileDetectionSystem = 16;
       bodyFrictionCoef = 1.4;
       supplyRadius = 0;
       liftForceCoef = 2;
       cyclicAsideForceCoef = 0.4;
       cyclicForwardForceCoef = 1.7;
       enableManualFire = 0;
       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 = 1;
               helmetPosition[] = {-0.025, 0.025, 0.1};
               helmetRight[] = {0.05, 0.0, 0.0};
               helmetDown[] = {0.0, -0.05, 0.0};
               class Bones
               {
                   class HUDCenter
                   {
                       type = "fixed";
                       pos[] = {0.5, 0.5};
                   };
                   class WeaponAim
                   {
                       type = "vector";
                       source = "weapon";
                       pos0[] = {0.5, 0.5};
                       pos10[] = {0.847, 0.845};
                   };
                   class VelocityVector
                   {
                       type = "vector";
                       source = "velocityToView";
                       pos0[] = {0.5, 0.5};
                       pos10[] = {0.847, 0.845};
                   };
                   class ForwardVector
                   {
                       type = "vector";
                       source = "forward";
                       pos0[] = {0, 0};
                       pos10[] = {0.347, 0.345};
                   };
                   class HorizonVector
                   {
                       type = "horizon";
                       pos0[] = {0.5, 0.5};
                       pos10[] = {0.990727, 0.987899};
                       angle = 0;
                   };
                   class GunnerAim
                   {
                       type = "vector";
                       source = "weapon";
                       pos0[] = {0, -0.0025};
                       pos10[] = {0.01, 0.0025};
                   };
                   class VerticalSpeedBone
                   {
                       type = "linear";
                       source = "vspeed";
                       sourceScale = 1;
                       min = -15;
                       max = 15;
                       minPos[] = {0, -0.15};
                       maxPos[] = {0, 0.15};
                   };
               };
               class Draw
               {
                   alpha = 1.0;
                   color[] = {0.25, 1.0, 0.25};
                   condition = "on";
                   class Static
                   {
                       type = "line";
                       width = 4.0;
                       points[] = {
                           { 
                               { 0.48,0.14 },1 },
                           { 
                               { 0.5,0.12 },1 },
                           { 
                               { 0.52,0.14 },1 },
                           {  },
                           { 
                               { 0.4,0.86 },1 },
                           { 
                               { 0.4,0.94 },1 },
                           { 
                               { 0.6,0.94 },1 },
                           { 
                               { 0.6,0.86 },1 },
                           { 
                               { 0.4,0.86 },1 },
                           {  },
                           { 
                               { 0.4,0.9 },1 },
                           { 
                               { 0.408,0.9 },1 },
                           {  },
                           { 
                               { 0.6,0.9 },1 },
                           { 
                               { 0.592,0.9 },1 },
                           {  },
                           { 
                               { 0.5,0.86 },1 },
                           { 
                               { 0.5,0.868 },1 },
                           {  },
                           { 
                               { 0.5,0.94 },1 },
                           { 
                               { 0.5,0.932 },1 }};
                   };                    
                   class CollectiveGroup
                   {
                       condition = "simulRTD";
                       class CollectiveText
                       {
                           type = "text";
                           source = "static";
                           text = "%";
                           align = "right";
                           scale = 1;
                           pos[] = {
                               { 0.22,0.2 },1};
                           right[] = {
                               { 0.28,0.2 },1};
                           down[] = {
                               { 0.22,0.24 },1};
                       };
                       class CollectiveNumber
                       {
                           type = "text";
                           source = "rtdCollective";
                           sourceScale = 100;
                           align = "left";
                           scale = 1;
                           pos[] = {
                               { 0.22,0.2 },1};
                           right[] = {
                               { 0.28,0.2 },1};
                           down[] = {
                               { 0.22,0.24 },1};
                       };
                   };
                   class SpeedNumber
                   {
                       type = "text";
                       source = "speed";
                       sourceScale = 3.6;
                       align = "right";
                       scale = 1;
                       pos[] = {
                           { 0.16,0.48 },1};
                       right[] = {
                           { 0.22,0.48 },1};
                       down[] = {
                           { 0.16,0.52 },1};
                   };
                   class AltNumber
                   {
                       type = "text";
                       source = "altitudeAGL";
                       sourceScale = 1;
                       align = "left";
                       scale = 1;
                       pos[] = {
                           { 0.84,0.48 },1};
                       right[] = {
                           { 0.9,0.48 },1};
                       down[] = {
                           { 0.84,0.52 },1};
                   };
                   class Weapons
                   {
                       type = "text";
                       source = "weapon";
                       sourceScale = 1;
                       align = "right";
                       scale = 0.5;
                       pos[] = {
                           { 0.0,0.85 },1};
                       right[] = {
                           { 0.04,0.85 },1};
                       down[] = {
                           { 0.0,0.89 },1};
                   };
                   class Ammo
                   {
                       type = "text";
                       source = "ammo";
                       sourceScale = 1;
                       align = "right";
                       scale = 0.5;
                       pos[] = {
                           { 0.0,0.9 },1};
                       right[] = {
                           { 0.04,0.9 },1};
                       down[] = {
                           { 0.0,0.94 },1};
                   };
                   class VerticalSpeedScale
                   {
                       type = "line";
                       width = 4.0;
                       points[] = 
                       {
                           {"VerticalSpeedBone",
                               { 0.85,0.48 },1 },
                           {"VerticalSpeedBone",
                               { 0.87,0.5 },1 },
                           {"VerticalSpeedBone",
                               { 0.85,0.52 },1 },
                           {  },
                           { 
                               { 0.875,0.35 },1 },
                           { 
                               { 0.885,0.35 },1 },
                           {  },
                           { 
                               { 0.875,0.4 },1 },
                           { 
                               { 0.885,0.4 },1 },
                           {  },
                           { 
                               { 0.875,0.45 },1 },
                           { 
                               { 0.885,0.45 },1 },
                           {  },
                           { 
                               { 0.875,0.5 },1 },
                           { 
                               { 0.895,0.5 },1 },
                           {  },
                           { 
                               { 0.875,0.55 },1 },
                           { 
                               { 0.885,0.55 },1 },
                           {  },
                           { 
                               { 0.875,0.6 },1 },
                           { 
                               { 0.885,0.6 },1 },
                           {  },
                           { 
                               { 0.875,0.65 },1 },
                           { 
                               { 0.885,0.65 },1 }};
                   };
                   class HeadingScale
                   {
                       type = "scale";
                       horizontal = 1;
                       source = "heading";
                       sourceScale = 1;
                       width = 4.0;
                       top = 0.2;
                       center = 0.5;
                       bottom = 0.8;
                       lineXleft = 0.11;
                       lineYright = 0.1;
                       lineXleftMajor = 0.11;
                       lineYrightMajor = 0.09;
                       majorLineEach = 2;
                       numberEach = 2;
                       step = 22.5;
                       stepSize = "(0.80 - 0.20) / 6";
                       align = "center";
                       scale = 1;
                       pos[] = {0.2,0.05};
                       right[] = {0.26,0.05};
                       down[] = {0.2,0.09};
                   };
                   class HorizonLine
                   {
                       clipTL[] = {0.2,0.145};
                       clipBR[] = {0.8,0.855};
                       class HorizonLineDraw
                       {
                           type = "line";
                           width = 4.0;
                           points[] = 
                           {
                               {"HorizonVector", {"-6 * 0.0375", 0.0}, 1},
                               {"HorizonVector", {"-5 * 0.0375", 0.0}, 1},
                               {},
                               {"HorizonVector", {"-4 * 0.0375", 0.0}, 1},
                               {"HorizonVector", {"-3 * 0.0375", 0.0}, 1},
                               {},
                               {"HorizonVector", {"-2 * 0.0375", 0.0}, 1},
                               {"HorizonVector", {"-1 * 0.0375", 0.0}, 1},
                               {},
                               {"HorizonVector", {"1 * 0.0375", 0.0}, 1}, 
                               {"HorizonVector", {"2 * 0.0375", 0.0}, 1},
                               {},
                               {"HorizonVector", {"3 * 0.0375", 0.0}, 1},
                               {"HorizonVector", {"4 * 0.0375", 0.0}, 1},
                               {},
                               {"HorizonVector", {"5 * 0.0375", 0.0}, 1}, 
                               {"HorizonVector", {"6 * 0.0375", 0.0}, 1}
                           };
                       };
                   };
                   class Gunner
                   {
                       type = "line";
                       width = 4.0;
                       points[] = 
                       {
                           {"GunnerAim", {"0.5 - 0.015","0.9 - 0.008"}, 1},
                           {"GunnerAim", {"0.5 - 0.015","0.9 + 0.008"}, 1},
                           {"GunnerAim", {"0.5 + 0.015","0.9 + 0.008"}, 1},
                           {"GunnerAim", {"0.5 + 0.015","0.9 - 0.008"}, 1},
                           {"GunnerAim", {"0.5 - 0.015","0.9 - 0.008"}, 1}
                       };
                   };
                   class MGun
                   {
                       condition = "mgun";
                       class Circle
                       {
                           type = "line";
                           width = 4.0;
                           points[] = 
                           {
                               {"ForwardVector", 1, "WeaponAim", {0.025,0}, 1},
                               {"ForwardVector", 1, "WeaponAim", {0.01,0}, 1},
                               {},
                               {"ForwardVector", 1, "WeaponAim", {0,0.0248559}, 1}, 
                               {"ForwardVector", 1, "WeaponAim", {0,0.00994236}, 1},
                               {},
                               {"ForwardVector", 1, "WeaponAim", {-0.025, 0}, 1}, 
                               {"ForwardVector", 1, "WeaponAim", {-0.01, 0}, 1},
                               {},
                               {"ForwardVector", 1, "WeaponAim", {0,-0.0248559}, 1},
                               {"ForwardVector", 1, "WeaponAim", {0,-0.00994236}, 1}
                           };
                       };
                   };                                        
               };
           };
       };
       class Library
       {
             libTextDesc = "UH1Y";
       };
       fuelCapacity = 250;
       fuelConsumptionRate = 0.138;
       maxSpeed = 293;
       simulation = "helicopterX";
       armor = 40;
       weapons[] = {"CMFlareLauncher"};
       magazines[] = {"168Rnd_CMFlare_Chaff_Magazine"};
       memoryPointLRocket = "Rocket_1";
       memoryPointRRocket = "Rocket_2";
       irScanRangeMin = 0;
       irScanRangeMax = 1000;
       nightVision = 1;
       memoryPointCM[]  = {"flare_launcher1", "flare_launcher2"};
       memoryPointCMDir[] = {"flare_launcher1_dir", "flare_launcher2_dir"};
       radarType = 4;
       threat[] = {0.8, 1, 0.6};
       memoryPointsGetInCargo[] = {"pos codriver", "pos cargo"};
       memoryPointsGetInCargoDir[] = {"pos codriver dir", "pos cargo dir"};
       driverAction = "UH1Y_Pilot";
       driverInAction = "UH1Y_Pilot";
       cargoAction[] = {"UH1Y_Cargo02", "UH1Y_Cargo03", "UH1Y_Cargo03", "UH1Y_Cargo02", "UH1Y_Cargo01", "UH1Y_Cargo01", "UH1Y_Cargo01"};
       cargoIsCoDriver[]={false, false, false, false, false, false, false};
       driverCanSee = 31;
       gunnerCanSee = 31;
       gunnerUsesPilotView = 1;
       gunnerOpticsModel = "";
       transportSoldier = 7;
       transportAmmo = 9999;
       transportMaxMagazines = 9999;
       transportMaxWeapons = 9999;
       class TransportBackpacks
       {
           class _xx_B_Parachute
           {
               backpack = "B_Parachute";
               count = 0;
           };
       };
       class TransportItems
       {
           class _xx_FirstAidKit
           {
               name = "FirstAidKit";
               count = 20;
           };
           class _xx_Medikit
           {
               name = "Medikit";
               count = 2;
           };
       };
       initCargoAngleY = +10; 
       minCargoAngleY = -60;
       maxCargoAngleY = +120;
       minFireTime = 30;
       driverCompartments = "Compartment1";
       cargoCompartments[] = {"Compartment2"};
       class ViewPilot: ViewPilot
       {
           initFov = 1.4; 
           minFov = 0.6; 
           maxFov = 1.0;
             initAngleX = 0; 
           minAngleX = -65; 
           maxAngleX = +85; 
           initAngleY = 0; 
           minAngleY = -150; 
           maxAngleY = +150;
       };
       class Exhausts
       {
           class Exhaust1
           {
               position = "exhaust1";
               direction = "exhaust1_dir";
               effect = "ExhaustsEffectHeliCom";
           };
           class Exhaust2
           {
               position = "exhaust2";
               direction = "exhaust2_dir";
               effect = "ExhaustsEffectHeliCom";
           };
       };
       class MarkerLights 
       {
           class WhiteStill 
           {
               name = "bily pozicni";
               color[] = {1.0, 1.0, 1.0};
               ambient[] = {0.1, 0.1, 0.1};
               blinking = 1;
               intensity = 75;
               blinkingPattern[] = {0.1, 0.9};
               blinkingPatternGuarantee = 0;
               drawLightSize = 0.2;
               drawLightCenterSize = 0.04;
           };
           class RedStill 
           {
               name = "cerveny pozicni";
               color[] = {0.8, 0.0, 0.0};
               ambient[] = {0.08, 0.0, 0.0};
               intensity = 75;
               drawLight = 1;
               drawLightSize = 0.15;
               drawLightCenterSize = 0.04;
               activeLight = 0;
               blinking = 0;
               dayLight = 0;
               useFlare = 0;
           };
           class GreenStill 
           {
               name = "zeleny pozicni";
               color[] = {0.0, 0.8, 0.0};
               ambient[] = {0.0, 0.08, 0.0};
               intensity = 75;
               drawLight = 1;
               drawLightSize = 0.15;
               drawLightCenterSize = 0.04;
               activeLight = 0;
               blinking = 0;
               dayLight = 0;
               useFlare = 0;
           };
       };
       class Reflectors
       {
           class Middle
           {
               color[] = {7000, 7500, 10000, 1};
               ambient[] = {100, 100, 100, 0};
               position = "svetlo";
               direction = "svetlo konec";
               hitpoint = "svetlo";
               selection = "svetlo";
               size = 1;
               innerAngle = 20;
               outerAngle = 60;
               coneFadeCoef = 10;
               intensity = 50;
               useFlare = 1;
               dayLight = 0;
               FlareSize = 6;
               class Attenuation
               {
                   start = 1;
                   constant = 0;
                   linear = 0;
                   quadratic = 4;
               };
           };
       };
       dammageHalf[] = {};    
       dammageFull[] = {};    
       class Damage
       {
           tex[] = {};
           mat[] =
           {
               "ad_helos\data\uh1y_sklo.rvmat",
               "ad_helos\data\uh1y_sklo_damage.rvmat",
               "ad_helos\data\uh1y_sklo_damage.rvmat",


               "ad_helos\data\uh1y_sklo_in.rvmat",
               "ad_helos\data\uh1y_sklo_in_damage.rvmat",
               "ad_helos\data\uh1y_sklo_in_damage.rvmat",


               "ad_helos\data\uh1y_ext.rvmat",
               "ad_helos\data\uh1y_ext_damage.rvmat",
               "ad_helos\data\uh1y_ext_destruct.rvmat",


               "ad_helos\data\uh1y_int.rvmat",
               "ad_helos\data\uh1y_int_damage.rvmat",
               "ad_helos\data\uh1y_int_destruct.rvmat",


               "ad_helos\data\launcher.rvmat",
               "ad_helos\data\launcher.rvmat",
               "ad_helos\data\launcher_destruct.rvmat",


               "ad_helos\data\uh1y_cockpit.rvmat",
               "ad_helos\data\uh1y_cockpit_damage.rvmat",
               "ad_helos\data\uh1y_cockpit_destruct.rvmat"
           };
       };
       attenuationEffectType = "OpenHeliAttenuation";
       soundGetIn[] = {"ad_helos\sounds\heli_door_01",db-10,1};
       soundGetOut[] = {"ad_helos\sounds\heli_door_01",db-10,1, 40};
       soundEnviron[] = {"", db-30, 1.0};
       soundDammage[] = {"ad_helos\sounds\alarm_loop1", db-10, 1};
       soundEngineOnInt[] = {"ad_helos\sounds\int-start-final", db-7, 1.0};
       soundEngineOnExt[] = {"ad_helos\sounds\ext-motor-start", db-7, 1.0, 700};
       soundEngineOffInt[] =  {"ad_helos\sounds\int-stop-final", db-7, 1.0};
       soundEngineOffExt[] =  {"ad_helos\sounds\ext-motor-stop", db-7, 1.0, 700};
       soundLocked[] = {"\A3\Sounds_F\weapons\Rockets\opfor_lock_1",0.1,1};
       soundIncommingMissile[] = {"\A3\Sounds_F\weapons\Rockets\opfor_lock_2",0.1,1};
       soundGeneralCollision1[] = {"A3\Sounds_F\vehicles\crashes\helis\Heli_coll_default_int_1",1.0,1,100};
       soundGeneralCollision2[] = {"A3\Sounds_F\vehicles\crashes\helis\Heli_coll_default_int_2",1.0,1,100};
       soundGeneralCollision3[] = {"A3\Sounds_F\vehicles\crashes\helis\Heli_coll_default_int_3",1.0,1,100};
       soundCrashes[] = {"soundGeneralCollision1",0.33,"soundGeneralCollision2",0.33,"soundGeneralCollision3",0.33};
       soundLandCrashes[] = {"emptySound",0};
       soundBuildingCrash[] = {"soundGeneralCollision1",1,"soundGeneralCollision2",1,"soundGeneralCollision3",1};
       soundArmorCrash[] = {"soundGeneralCollision1",1,"soundGeneralCollision2",1,"soundGeneralCollision3",1};
       soundWoodCrash[] = {"soundGeneralCollision1",1,"soundGeneralCollision2",1,"soundGeneralCollision3",1};
       soundBushCollision1[] = {"A3\Sounds_F\vehicles\crashes\helis\Heli_coll_bush_int_1",1.0,1,100};
       soundBushCollision2[] = {"A3\Sounds_F\vehicles\crashes\helis\Heli_coll_bush_int_2",1.0,1,100};
       soundBushCollision3[] = {"A3\Sounds_F\vehicles\crashes\helis\Heli_coll_bush_int_3",1.0,1,100};
       soundBushCrash[] = {"soundBushCollision1",0.33,"soundBushCollision2",0.33,"soundBushCollision3",0.33};
       soundWaterCollision1[] = {"A3\Sounds_F\vehicles\crashes\helis\Heli_coll_water_ext_1",1.0,1,100};
       soundWaterCollision2[] = {"A3\Sounds_F\vehicles\crashes\helis\Heli_coll_water_ext_2",1.0,1,100};
       soundWaterCrashes[] = {"soundWaterCollision1",0.5,"soundWaterCollision2",0.5};        
       rotorDamageInt[] = {"A3\Sounds_F\vehicles\air\noises\heli_damage_rotor_int_open_1",1.0,1.0};
       rotorDamageOut[] = {"A3\Sounds_F\vehicles\air\noises\heli_damage_rotor_ext_1",2.5118864,1.0,150};
       rotorDamage[] = {"rotorDamageInt","rotorDamageOut"};
       tailDamageInt[] = {"A3\Sounds_F\vehicles\air\noises\heli_damage_tail",1.0,1.0};
       tailDamageOut[] = {"A3\Sounds_F\vehicles\air\noises\heli_damage_tail",1.0,1.0,300};
       tailDamage[] = {"tailDamageInt","tailDamageOut"};
       landingSoundInt0[] = {"A3\Sounds_F\vehicles\air\noises\landing_skids_int1_open",1.0,1.0,100};
       landingSoundInt1[] = {"A3\Sounds_F\vehicles\air\noises\landing_skids_int1_open",1.0,1.0,100};
       landingSoundInt[] = {"landingSoundInt0",0.5,"landingSoundInt1",0.5};
       landingSoundOut0[] = {"A3\Sounds_F\vehicles\air\noises\landing_skids_ext1",1.7782794,1.0,100};
       landingSoundOut1[] = {"A3\Sounds_F\vehicles\air\noises\landing_skids_ext1",1.7782794,1.0,100};
       landingSoundOut[] = {"landingSoundOut0",0.5,"landingSoundOut1",0.5};
       slingCargoAttach0[] = {"A3\Sounds_F\vehicles\air\noises\SL_engineUpEndINT",1.0,1.0};
       slingCargoAttach1[] = {"A3\Sounds_F\vehicles\air\noises\SL_1hookLock",1.0,1.0,80};
       slingCargoAttach[] = {"slingCargoAttach0","slingCargoAttach1"};
       slingCargoDetach0[] = {"A3\Sounds_F\dummysound",1.0,1.0};
       slingCargoDetach1[] = {"A3\Sounds_F\vehicles\air\noises\SL_1hookUnlock",1.0,1.0,80};
       slingCargoDetach[] = {"slingCargoDetach0","slingCargoDetach1"};
       slingCargoDetachAir0[] = {"A3\Sounds_F\vehicles\air\noises\SL_unhook_air_int",1.0,1.0};
       slingCargoDetachAir1[] = {"A3\Sounds_F\vehicles\air\noises\SL_unhook_air_ext",1.0,1.0,80};
       slingCargoDetachAir[] = {"slingCargoDetach0","slingCargoDetach1"};
       slingCargoRopeBreak0[] = {"A3\Sounds_F\vehicles\air\noises\SL_rope_break_int",1.0,1.0};
       slingCargoRopeBreak1[] = {"A3\Sounds_F\vehicles\air\noises\SL_rope_break_ext",1.0,1.0,80};
       slingCargoRopeBreak[] = {"slingCargoDetach0","slingCargoDetach1"};
       class Sounds
       {
           class Engine
           {
               sound[] = {"ad_helos\sounds\ext-fly-mode2", db8, 1.0, 800};
               frequency = "rotorSpeed";
               volume = "camPos*((rotorSpeed-0.72)*4)";
           };
           class RotorLowOut
           {
               sound[] = {"ad_helos\sounds\int-rotor-single5b", db8, 1.0, 1400};
               frequency = "rotorSpeed";
               volume = "camPos*(0 max (rotorSpeed-0.1))";
               cone[] = {1.6,3.14, 2.0, 0.5};
           };
           class RotorHighOut
           {
               sound[] = {"ad_helos\sounds\int-rotor-single5a", db8, 1.0, 1600};
               frequency = "rotorSpeed";
               volume = "camPos*10*(0 max (rotorThrust-0.9))" ;
               cone[] = {1.6,3.14, 2.0, 0.5};
           };
             class EngineIn
           {
               sound[] = {"ad_helos\sounds\int-fly-mode7", db0, 1.0};
               frequency = "rotorSpeed";
                volume = "(1-camPos)*((rotorSpeed-0.75)*4)";
           };
           class RotorLowIn
           {
               sound[] = {"ad_helos\sounds\int-rotor-single5b", db0, 1.0};
               frequency = "rotorSpeed";
               volume = "2*(1-camPos)*((rotorSpeed factor[0.3, 1.1]) min (rotorSpeed factor[1.1, 0.3]))";
           };
           class RotorHighIn
           {
               sound[] = {"ad_helos\sounds\int-rotor-single5a", db0, 1.0};
               frequency = "rotorSpeed";
               volume = "(1-camPos)*3*(rotorThrust-0.9)" ;
           };
           class scrubTreeExt
           {
               sound[] = {"A3\Sounds_F\vehicles\air\noises\scrubTreeExt",1.0,1.0,100};
               frequency = 1;
               volume = "camPos * ((scrubTree) factor [0, 0.01])";
           };
           class RainExt
           {
               sound[] = {"A3\Sounds_F\vehicles\noises\rain1_ext",1.0,1.0,100};
               frequency = 1;
               volume = "camPos * (rain - rotorSpeed/2) * 2";
           };
           class RainInt
           {
               sound[] = {"A3\Sounds_F\vehicles\noises\rain1_int_open",1.0,1.0,100};
               frequency = 1;
               volume = "(1-camPos)*(rain - rotorSpeed/2)*2";
           };
           class SlingLoadDownExt
           {
               sound[] = {"A3\Sounds_F\vehicles\air\noises\SL_engineDownEXT",1.0,1.0,500};
               frequency = 1;
               volume = "camPos*(slingLoadActive factor [0,-1])";
           };
           class SlingLoadUpExt
           {
               sound[] = {"A3\Sounds_F\vehicles\air\noises\SL_engineUpEXT",1.0,1.0,500};
               frequency = 1;
               volume = "camPos*(slingLoadActive factor [0,1])";
           };
           class SlingLoadDownInt
           {
               sound[] = {"A3\Sounds_F\vehicles\air\noises\SL_engineDownINT",1.0,1.0,500};
               frequency = 1;
               volume = "(1-camPos)*(slingLoadActive factor [0,-1])";
           };
           class SlingLoadUpInt
           {
               sound[] = {"A3\Sounds_F\vehicles\air\noises\SL_engineUpINT",1.0,1.0,500};
               frequency = 1;
               volume = "(1-camPos)*(slingLoadActive factor [0,1])";
           };
           class damageAlarmInt
           {
               sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_alarm_bluefor",0.31622776,1.0};
               frequency = 1;
               volume = "engineOn * (1 - camPos) * ( 1 - ((transmissionDamage factor [0.61, 0.60]) * (motorDamage factor [0.61, 0.60]) * (rotorDamage factor [0.51, 0.50]))) * (rotorSpeed factor [0.0, 0.001])";
           };
           class damageAlarmExt
           {
               sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_alarm_bluefor",0.2238721,1.0,20};
               frequency = 1;
               volume = "engineOn * camPos * ( 1 - ((transmissionDamage factor [0.61, 0.60]) * (motorDamage factor [0.61, 0.60]) * (rotorDamage factor [0.51, 0.50]))) * (rotorSpeed factor [0, 0.001])";
           };
           class rotorLowAlarmInt
           {
               sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_alarm_rotor_low",0.31622776,1.0};
               frequency = 1;
               volume = "engineOn * (1 - camPos) * (rotorSpeed factor [0.9, 0.8999]) * (rotorSpeed factor [-0.5, 1]) * (speed factor [3, 3.01])";
           };
           class rotorLowAlarmExt
           {
               sound[] = {"A3\Sounds_F\vehicles\air\noises\heli_alarm_rotor_low",0.2238721,1.0,20};
               frequency = 1;
               volume = "engineOn * camPos * (rotorSpeed factor [0.9, 0.8999]) * (rotorSpeed factor [-0.5, 1]) * (speed factor [3, 3.01])";
           };    
       };    
   };
   class ad_uh1y: ad_uh1y_base
   {
       scope = 2;
       vehicleClass = "ad_helos";
       model = "\ad_helos\uh1y_venom.p3d";
       displayName = "UH-1Y 'Venom'"
       crew = "AD_USMC_Pilot";
       picture = "\ad_helos\data\icon_uh1y.paa";
       icon = "\ad_helos\data\icon_uh1y.paa";
       class Turrets: Turrets
       {
           class MainTurret: MainTurret 
           {
               isCopilot = 0;
               body = "mainTurret";
               gun = "mainGun";

               minElev=-60; 
               maxElev=+30; 
               initElev=45;

               minTurn=-5; 
               maxTurn=180; 
               initTurn=90;

               soundServo[] = {,db-40,1.0};
               animationSourceHatch = "";
               stabilizedInAxes = 0;
               gunBeg = "muzzle_1";
               gunEnd = "chamber_1";
               weapons[]={"HMG_127_APC"};
               magazines[]={"500Rnd_127x99_mag_Tracer_Red", "500Rnd_127x99_mag_Tracer_Red", "500Rnd_127x99_mag_Tracer_Red", "500Rnd_127x99_mag_Tracer_Red"};
               gunnerName = "Left M2 Gunner";
               memoryPointGun = "machinegun";
               memoryPointGunnerOptics = "gunnerview";
               gunnerOpticsModel = "\A3\Weapons_F_Beta\Reticle\Heli_Transport_01_Optics_Gunner_F";
               gunnerOutOpticsShowCursor = 1;
               gunnerOpticsShowCursor = 1;
               gunnerAction = "gunner_Heli_Transport_01";
               gunnerInAction = "gunner_Heli_Transport_01";
               commanding = -2;
               primaryGunner = 0;
               class ViewOptics
               {
                   initAngleX=0; minAngleX=-30; maxAngleX=+30;
                   initAngleY=0; minAngleY=-100; maxAngleY=+100;
                   initFov=1.0; minFov=0.25; maxFov=0.8;
               };
               gunnerCompartments = "Compartment2";
           };
           class RightDoorGun: MainTurret
           {
               isCopilot = 0;
               body = "Turret2";
               gun = "Gun_2";
               animationSourceBody = "Turret_2";
               animationSourceGun = "Gun_2";
               stabilizedInAxes = 0;
               selectionFireAnim = "zasleh_1";
               proxyIndex = 2;
               gunnerName = "Right M134 Gunner";
               commanding = -3;

               minElev=-60; 
               maxElev=+30; 
               initElev=-45;
               minTurn=-180; 
               maxTurn=5; 
               initTurn=-90;

               weapons[] = {"LMG_Minigun2"};
               magazines[] = {"2000Rnd_65x39_Belt_Tracer_Red"};
               gunBeg = "muzzle_2"; 
               gunEnd = "chamber_2"; 
               primaryGunner = 0;
               memoryPointGun = "machinegun_2";
               memoryPointGunnerOptics = "gunnerview_2";
               hasGunner = true;
               hasCrew = true;
           };
           class CoPilotObs: MainTurret
           {
               isCopilot = 1;
               stabilizedInAxes = "StabilizedInAxesBoth";
               proxyIndex = 3;
               gunnerName = "Co-Pilot"; 
               gunnerAction = "UH1Y_Gunner02";
               gunnerInAction = "UH1Y_Gunner02";
               body = "ObsTurret";
               gun = "ObsGun";
               animationSourceBody = "ObsTurret";
               animationSourceGun = "ObsGun";
               outGunnerMayFire = 1; 
               gunBeg = "gun_end"; 
               gunEnd = "gun_begin"; 
               memoryPointGun = "gun_end";
               commanding = -1;                
               weapons[] = {"Safe","missiles_DAGR"};
               magazines[] = {"12Rnd_PG_missiles"};
               memoryPointLMissile = "Rocket_2";
               memoryPointRMissile = "Rocket_1";    
               primaryGunner = 0;
               minElev = -80;
               maxElev = +25;
               initElev = 0;
               minTurn = -100;  
               maxTurn = 100; 
               initTurn = 0;
               gunnerOpticsModel = "\ad_helos\uh1y_optics";
               memoryPointGunnerOptics = "commanderview";
               gunnerForceOptics = false;
               gunnerOpticsShowCursor = 1;
               class ViewOptics
               {
                   initAngleX = 0; 
                   minAngleX = -30; 
                   maxAngleX = +30;
                   initAngleY = 40; 
                   minAngleY = -100; 
                   maxAngleY = +100;
                   initFov = 1.4; 
                   minFov = 0.3; 
                   maxFov = 1.0;
               };
               gunnerCompartments = "Compartment2";
               startEngine = 0;
               soundServo[] = {,db-40,1.0};
               turretInfoType = "RscOptics_Heli_Attack_01_gunner";
               memoryPointsGetInGunner = "pos codriver";
               memoryPointsGetInGunnerDir = "pos codriver dir";
               selectionFireAnim = "";
               castGunnerShadow = 1;
               viewGunnerShadow = 1;
               class OpticsIn
               {
                   class Wide 
                   {
                       opticsDisplayName = "W";
                       initAngleX = 0;
                       minAngleX = -30;
                       maxAngleX = +30;
                       initAngleY = 0;
                       minAngleY = -100;
                       maxAngleY = +100;
                       initFov = 0.466;
                       minFov = 0.466;
                       maxFov = 0.466;
                       visionMode[] = {"Normal","NVG","Ti"};
                       thermalMode[] = {0,1};
                       gunnerOpticsModel = "\ad_helos\uh1y_optics";
                   };
                   class Narrow: Wide 
                   {
                       opticsDisplayName = "N";
                       gunnerOpticsModel = "\ad_helos\uh1y_optics";
                       initFov = 0.05;
                       minFov = 0.05;
                       maxFov = 0.05;
                   };
               };
               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[] = {};
                   };
               };
           };
       };
       class AnimationSources: AnimationSources
       {
           class Gatling_1
           {
               source="revolving";
               weapon="LMG_Minigun";
           };
           class Gatling_2
           {
               source="revolving";
               weapon="LMG_Minigun2";
           };
       };
   };
};

I appreciate any advice on this one, thanks.

-AD

Model.cfg in next post

Share this post


Link to post
Share on other sites

Model.cfg:

class CfgSkeletons
{
   class Default
   {
       isDiscrete=1;
       skeletonInherit="";
       skeletonBones[]={};
   };
   class Vehicle: Default {};
   class Helicopter: Vehicle
   {
       skeletonInherit="Vehicle";
       skeletonBones[]={};
   };
   class ad_uh1y_skeleton: Helicopter
   {
       isDiscrete=0;
       skeletonInherit="Helicopter";
       skeletonBones[]=
       {
           "rotordive",
           "rotorbank",
           "rotor static dive",
           "rotorbank",
           "rotorbank",
           "velka vrtule",
           "HUDaction","",
           "HorizonBankBall","HUDaction",
           "HUDaction_1","",
           "gatling_1","OtocHlaven",
           "OtocVez_2","",
           "OtocHlaven_2","OtocVez_2",
           "otocvez","",
           "OtocHlaven","otocvez",
           "gatling_2","OtocHlaven_2",
           "turret","",
           "gun","turret",            
           "compass_3","",
           "horizont_1","",
           "horizont_1b","",
           "horizont_2","",
           "horizont_2b","",
           "compass_1","",
           "compass_2","",
           "display_off","",
           "velka vrtule","",
           "mala vrtule","",
           "glass1","",
           "glass2","",
           "glass3","",
           "glass4","",
           "glass5",""                                                     
       };
   };
};
class Rotation
{
   type="rotation";
   memory=1;
   minValue=0;
   maxValue=1;
   angle0=0;
   angle1=1;
};
class CfgModels
{
   class Default
   {
       sectionsInherit="";
       sections[]={};
       skeletonName="";
   };
   class Vehicle: Default
   {
       sections[]={};
   };
   class Helicopter: Vehicle
   {
       sectionsInherit="Vehicle";
       sections[]=
       {
           "zasleh_1",
           "zasleh"
       };
       skeletonName="Helicopter";
       class Animations {};
   };
   class uh1y_venom: Helicopter
   {
       skeletonName="ad_uh1y_skeleton";
       sections[]=
       {                
           "svetlo",
           "elektronika",
           "velka vrtule staticka",
           "velka vrtule Blur",
           "mala vrtule staticka",
           "mala vrtule blur",
           "clan",
           "clan_sign",
           "zasleh_1",
           "zasleh",
           "glass1",
           "glass2",
           "glass3",
           "glass4",
           "glass5"
       };        
       class Animations
       {
           class damageHide
           {
               type="hide";
               source="damage";
               selection="damageHide";
           };
           class display_on: Rotation
           {
               type="hide";
               source="rpm";
               selection="display_off";
               minValue=-0.5;
               maxValue=0.5;
               hidevalue=0.9;
               sourceAddress="clamp";
           };    
           class IndicatorCompass: Rotation
           {
               source="direction";
               selection="compass_1";
               axis="axis_compass_1";
               memory=1;
               minValue=-3.141593;
               maxValue=3.141593;
               angle0=-3.141593;
               angle1=3.141593;
           };
           class IndicatorCompass3: IndicatorCompass
           {
               source="direction";
               selection="compass_3";
               axis="compass_3_axis";
               minValue=-3.141593;
               maxValue=3.141593;
               angle0=0;
               angle1="-rad 360";
           };
           class horizonDive
           {
               type="translation";
               source="horizonDive";
               selection="horizont_1";
               axis="axis_horizont_1";
               memory=1;
               minValue=-1.000000;
               maxValue=1.000000;
               offset0=-0.610000;
               offset1=0.610000;
           };
           class horizonBank
           {
               type="rotation";
               source="horizonBank";
               selection="horizont_1";
               axis="axis_r_horizont_1";
               memory=1;
               minValue="rad -360";
               maxValue="rad +360";
               angle0="rad -360";
               angle1="rad +360";
           };            
           class horizonDive2: horizonDive
           {
               selection="horizont_2";
               axis="axis_horizont_2";
           };
           class horizonBank2: horizonBank
           {
               selection="horizont_2";
               axis="axis_r_horizont_2";
               memory=1;
           };
           class horizonBank1BCK: horizonBank
           {
               selection="horizont_1b";
               axis="axis_r_horizont_1b";
               memory=1;
           };
           class horizonBank2BCK: horizonBank2
           {
               selection="horizont_2b";
               axis="axis_r_horizont_2b";
               memory=1;
           };
           class IndicatorCompass2: IndicatorCompass
           {
               selection="compass_2";
               axis="axis_compass_2";
           };                    
           class HorizonBankBall
           {
               type="rotation";
               source="horizonBank";
               selection="HorizonBankBall";
               axis="HorizonBankBall_axis";
               memory=0;
               minValue=-0.785398;
               maxValue=0.785398;
               angle0=0.314159;
               angle1=-0.314159;
           };
           class ObsTurret
           {
               type="rotationY";
               source="ObsTurret";
               selection="turret";
               axis="turret_axis";
               animPeriod=0;
               minValue="rad -360";
               maxValue="rad +360";
               angle0="rad -360";
               angle1="rad +360";
           };                        
           class ObsGun:ObsTurret
           {
               type="rotationX";
               source="ObsGun";
               selection="gun";
               axis="gun_axis";
           };                        
           class MainTurret
           {
               type="rotationY";
               source="mainTurret";
               selection="OtocVez";
               axis="OsaVeze";
               animPeriod=0;
               minValue="rad -360";
               maxValue="rad 360";
               angle0="rad -360";
               angle1="rad 360";
           };
           class Turret2: MainTurret
           {
               source="Turret_2";
               selection="OtocVez_2";
               axis="OsaVeze_2";
           };
           class MainGun: MainTurret
           {
               type="rotation";
               source="mainGun";
               selection="OtocHlaven";
               axis="OsaHlavne";
           };
           class Gun_2: MainGun
           {
               source="Gun_2";
               selection="OtocHlaven_2";
               axis="OsaHlavne_2";
           };
           class MachineGun_1: Rotation
           {
               selection="gatling_1";
               axis="gatling_1_axis";
               angle1="-600 * 3.141592654";
               source="Gatling_1";
           };
           class MachineGun_2: MachineGun_1
           {
               selection="gatling_2";
               axis="gatling_2_axis";
               source="Gatling_2";
           };
           class otocvez_damage:damageHide
           {
               selection="otocvez";
           };
           class otocvez_2_damage: otocvez_damage
           {
               selection="otocvez_2";
           };
           class HUDaction: Rotation
           {
               animPeriod=1;
               source="HUDaction";
               selection="HUDaction";
               axis="hud_axis";
               angle0=-1.570796;
               angle1=0.000000;
           };
           class HUDaction_1: Rotation
           {
               type="rotationY";
               source="HUDaction";
               selection="HUDaction_1";
               axis="";
               minValue=0.999000;
               maxValue=1.000000;
               angle0=3.141593;
               angle1=0.000000;
           };
           class mala_vrtule_damage: damageHide
           {
               selection="mala vrtule";
           };
           class velka_vrtule_damage: damageHide
           {
               selection="velka vrtule";
           };
           /*class RotorHDive
           {
               selection="velka vrtule";
               axis="predni osa naklonu";
               type="rotationX";
               source="horizonDive";
               minValue=-0.500000;
               maxValue=0.500000;
               angle0="rad -4";
               angle1="rad 4";
               animPeriod=0;
           };
           class RotorHBank
           {
               selection="velka vrtule";
               axis="predni osa naklonu";
               type="rotationZ";
               source="horizonBank";
               minValue=-0.500000;
               maxValue=0.500000;
               angle0="rad 10";
               angle1="rad -10";
               animPeriod=0;
           };
           class rotorTilt
           {
               selection="rotordive";
               source="rpm";
               axis="velka osa";
               type="translation";
               memory=1;
               minValue=0.000000;
               maxValue=12.0000000;
               offset0=0.60000;
               offset1=-0.500000;
           };            */    
           class HRotor: Rotation
           {
               source = "rotorH";
               selection = "velka vrtule";
               axis = "velka osa";
               memory = 1;
               sourceAddress = "loop";
               minValue = 0;
               maxValue = 1;
               angle0 = 0;
               angle1 = "rad +360";
           };
           class VRotor: Rotation
           {
               source = "rotorV";
               selection = "mala vrtule";
               axis = "mala osa";
               memory = 1;
               sourceAddress = "loop";
               minValue = 0;
               maxValue = 1;
               angle0 = 0;
               angle1 = "rad -360";            
           };
           class RotorShaft: HRotor
           {
               selection="RotorShaft";
           };    
           class Glass1_destruct
           {
               type="hide";
               selection="glass1";
               source="HitGlass1";
               minValue = 0; // upravit na 0.99
               maxValue = 1; // upravit na 1.0
               hidevalue = 0.99;
           };
           class Glass2_destruct:Glass1_destruct
           {
               selection="glass2";
               source="HitGlass2";
           };
           class Glass3_destruct:Glass1_destruct
           {
               selection="glass3";
               source="HitGlass3";
           };
           class Glass4_destruct:Glass1_destruct
           {
               selection="glass4";
               source="HitGlass4";
           };
           class Glass5_destruct:Glass1_destruct
           {
               selection="glass5";
               source="HitGlass5";
           };
       };
   };
};

Share this post


Link to post
Share on other sites

I solved it, I had to change the MainGun settings in the model.cfg file from:

            class MainGun: MainTurret
           {
               type="rotation";
               source="mainGun";
               selection="OtocHlaven";
               axis="OsaHlavne";
           };

To:

            class MainGun: MainTurret
           {
               type="rotation";
               source="mainGun";
               selection="OtocHlaven";
               axis="OsaHlavne";
               angle0="rad 360";
               angle1="rad -360";
           };

Share this post


Link to post
Share on other sites

Hey ADuke!

Good to see you back at modding helos. One question though, any plans of re-doing your HH60 Pave Hawk from A2? Or your great ADuke Helo pack?

Edited by MFG4Ever

Share this post


Link to post
Share on other sites

I just want to add:

I had a similar problem with my main rotor, and I simply swapped the two memory points for the mainrotor_axis in the .p3d file. In other words, if the first point created is on top of the second, then recreate them with the first point below. Theoretically, it's the same technique for turret rotation (yaw). For turret pitch, it would be left/right to right/left instead.

I came across this because I am looking for a solution to my stick_pilot problems. The flight stick is moving in wrong directions forward to back, and from the wrong pivot point when left and right. But anyway I felt I had a good contribution to the turret problem.

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  

×