Jump to content
Sign in to follow this  
Meatball0311

Config issue possibly causing strange helo behavior??

Recommended Posts

Situation:

---------

1) I am using a helicopter addon that was released as a beta, however there are problems with it responding to _helo land "GET IN" (every other helo's I tested will land with engines on and wait with engines running). This addon however will just hover over the ground. When you tell your group to mount, the helo just stays hovering above the ground does not raise up or land. The only way you could get it to land would be to give it a flyInHeight 0 command, but when you tell your troops to mount the helo takes back off and resituates and hovers over the ground again. I have run into this problem in the past and how I solved it was by giving it a land "GET IN" command followed by a waitUntil command, and when then I would use an addAction command to tell the helo to take off and fly to next waypoint. This addon is none responsive to this and the addon creator seems to have limited availability and has not released a fix in a month + time. So I thought this would be a great way to learn about addon making and improve on my scripting. So I unpacked the pbo and started to mess with figuring out things.

My first thought was that there was a problem with the config.bin. He released the addon with two pbo's that both had a config.bin in each one. I did some tests to see if they depended on each other and it came out that only one was really needed, so I kinda combined both of them into only one config.bin. I only know little about config.bin, and I dont really know what is needed. I am noticing that some addons just have a config.cpp file in it when I unpack it... I dont know the process of what is needed or not and that is one of the questions that I have. Here is the config.bin, can anyone see any proplems or information missing that would make the helo non responsive to ArmA2 commands?

#define _ARMA_

//Class config.bin{

class CfgPatches

{

class ou_air

{

units[] = {"ou_ch_46","ou_ch_53d"};

weapons[] = {};

requiredVersion = 1.0;

};

};

class CfgVehicleClasses

{

class ou_air

{

displayName = "ou_air";

};

};

class CfgVehicles

{

class All;

class AllVehicles: All{};

class Air: AllVehicles{};

class Helicopter: Air

{

class NewTurret;

class ViewPilot;

accuracy = 0;

flareVelocity = 100;

class AnimationSources;

};

class UH1Y: Helicopter{};

class ou_ch_53d: UH1Y

{

displayName = "USMC CH-53D";

simulation = "helicopter";

driveriscommander = "true";

model = "\ou_air\MODELs\ou_ch_53d.p3d";

icon = "\ou_air\ico\ch53_MAP_ICO.paa";

picture = "\ou_air\ico\ch53_ICO.paa";

mapSize = 25;

scope = 2;

nameSound = "chopper";

side = 1;

extCameraPosition[] = {0,2.5,-25};

armor = 40;

cost = 10000000;

maxSpeed = 320;

crew = "USMC_Soldier_Pilot";

typicalCargo[] = {"USMC_Soldier_Pilot","USMC_Soldier_Pilot","USMC_Soldier_Pilot","USMC_Soldier_Pilot"};

ejectDeadDriver = 0;

ejectDeadCargo = 0;

driverCompartments = 0;

hasdriver = 1;

hasGunner = 1;

driverAction = "UH1Y_Pilot";

cargoAction[] = {"UH1Y_Cargo02"};

memoryPointsGetInCargo = "ramp";

memoryPointsGetInCargoDir = "pos cargo dir";

transportSoldier = 26;

gearRetracting = 1;

gearUpTime = 3.33;

gearDownTime = 2.0;

crewVulnerable = 1;

damageResistance = 0.00593;

memoryPointsGetInDriver = "pos_driver";

memoryPointsGetInDriverDir = "pos_driver_dir";

threat[] = {0,0,0};

transportMaxWeapons = 100;

transportMaxMagazines = 500;

class Turrets

{

class co_pilot: NewTurret

{

startEngine = "false";

outGunnerMayFire = "true";

primaryGunner = 0;

commanding = -1;

proxyIndex = 3;

gunnerName = "co pilot";

memoryPointsGetInGunner = "pos_driver";

memoryPointsGetInGunnerDir = "pos_driver_dir";

gunnerAction = "UH1Y_Pilot";

gunnerInAction = "UH1Y_Pilot";

initTurn = 0;

gunnerOpticsModel = "\ca\weapons\optika_empty";

gunnerForceOptics = "false";

};

};

class EventHandlers

{

init = " _this exec ""\ou_air\scripts\rampin.sqs""";

GetIn = " _this exec ""\ou_air\scripts\getIn.sqf""";

GetOut = " _this exec ""\ou_air\scripts\getOut.sqf""";

};

class AnimationSources: AnimationSources

{

class Ramp

{

source = "user";

animPeriod = 3;

initPhase = 0;

};

class gearf

{

source = "user";

animPeriod = 3;

initPhase = 0;

};

class gearb

{

source = "user";

animPeriod = 3;

initPhase = 0;

};

};

class UserActions

{

class Openramp

{

displayName = "lower ramp";

position = "pos_action";

radius = 3;

onlyForPlayer = "false";

condition = "this animationPhase ""ramp"" == 0 and (alive this)";

statement = "this animate [""ramp"", 1]";

};

class CloseDoors

{

displayName = "raise ramp";

position = "pos_action";

radius = 3;

onlyForPlayer = "false";

condition = "this animationPhase ""ramp"" > 0 and (alive this)";

statement = "this animate [""ramp"", 0]";

};

class Opengear

{

displayName = "raise gear";

position = "pos_action";

radius = 3;

onlyForPlayer = "false";

condition = "this animationPhase ""gearf"" < 10 AND (alive this)";

statement = "this animate [""gearf"", 1],this animate [""gearb"",1]";

};

class Closegear

{

displayName = "lower gear";

position = "pos_action";

radius = 3;

onlyForPlayer = "false";

condition = "this animationPhase ""gearf"" > 1 AND (alive this)";

statement = "this animate [""gearf"", 0],this animate [""gearb"", 0]";

};

};

class Reflectors

{

class Left

{

color[] = {0.8,0.8,1.0,1.0};

ambient[] = {0.07,0.07,0.07,1.0};

position = "L svetlo";

direction = "konec L svetla";

hitpoint = "L svetlo";

selection = "L svetlo";

size = 1;

brightness = 1.0;

};

class Right

{

color[] = {0.8,0.8,1.0,1.0};

ambient[] = {0.07,0.07,0.07,1.0};

position = "P svetlo";

direction = "konec P svetla";

hitpoint = "P svetlo";

selection = "P svetlo";

size = 1;

brightness = 1.0;

};

};

};

class ou_ch_46e: UH1Y

{

displayName = "USMC CH-46E";

simulation = "helicopter";

model = "\ou_air\MODELs\ou_ch_46e.p3d";

icon = "\ou_air\ico\ch46_MAP_ICO.paa";

picture = "\ou_air\ico\ch46_ICO.paa";

mapSize = 20;

scope = 2;

nameSound = "chopper";

side = 1;

extCameraPosition[] = {0,2.5,-25};

armor = 40;

cost = 10000000;

maxSpeed = 320;

crew = "USMC_Soldier_Pilot";

typicalCargo[] = {"USMC_Soldier_Pilot","USMC_Soldier_Pilot","USMC_Soldier_Pilot","USMC_Soldier_Pilot"};

ejectDeadDriver = 0;

ejectDeadCargo = 0;

driverCompartments = 0;

hasdriver = 1;

hasGunner = 1;

castCargoShadow = 1;

driverAction = "UH1Y_Pilot";

driverInAction = "UH1Y_Pilot";

cargoAction[] = {"UH1Y_Cargo02"};

memoryPointsGetInCargo = " ramp";

memoryPointsGetInCargoDir = "pos cargo dir";

transportSoldier = 26;

occludeSoundsWhenIn = 0.562341;

obstructSoundsWhenIn = 0.316228;

minMainRotorDive = -6;

maxMainRotorDive = 10;

neutralMainRotorDive = -2.6;

minBackRotorDive = -10;

maxBackRotorDive = 6;

neutralBackRotorDive = -2.6;

gearRetracting = 1;

gearUpTime = 3.33;

gearDownTime = 2.0;

landingSpeed = 50.0;

crewVulnerable = 1;

selectionFireAnim = "muzzleflash";

damageResistance = 0.00593;

memoryPointsGetInDriver = "pos_driver";

memoryPointsGetInDriverDir = "pos_driver_dir";

threat[] = {0,0,0};

transportMaxWeapons = 100;

transportMaxMagazines = 500;

class UserActions

{

class Openramp

{

displayName = "lower ramp";

position = "pos_action";

radius = 3;

onlyForPlayer = "false";

condition = "this animationPhase ""ramp"" == 0 and (alive this)";

statement = "this animate [""ramp"", 1]";

};

class CloseDoors

{

displayName = "raise ramp";

position = "pos_action";

radius = 3;

onlyForPlayer = "false";

condition = "this animationPhase ""ramp"" > 0 and (alive this)";

statement = "this animate [""ramp"", 0]";

};

};

class AnimationSources: AnimationSources

{

class Ramp

{

source = "user";

animPeriod = 3;

initPhase = 0;

};

};

class EventHandlers

{

init = " _this exec ""\ou_air\scripts\rampin.sqs""";

GetIn = " _this exec ""\ou_air\scripts\getIn.sqf""";

GetOut = " _this exec ""\ou_air\scripts\getOut.sqf""";

};

class Turrets

{

class co_pilot: NewTurret

{

startEngine = "false";

outGunnerMayFire = "true";

primaryGunner = 0;

commanding = -1;

proxyIndex = 1;

gunnerName = "co pilot";

memoryPointsGetInGunner = "pos_driver";

memoryPointsGetInGunnerDir = "pos_driver_dir";

gunnerAction = "UH1Y_Pilot";

gunnerInAction = "UH1Y_Pilot";

initTurn = 0;

gunnerOpticsModel = "\ca\weapons\optika_empty";

gunnerForceOptics = "false";

};

};

class Reflectors

{

class Left

{

color[] = {0.8,0.8,1.0,1.0};

ambient[] = {0.07,0.07,0.07,1.0};

position = "L svetlo";

direction = "konec L svetla";

hitpoint = "L svetlo";

selection = "L svetlo";

size = 1;

brightness = 1.0;

};

class Right

{

color[] = {0.8,0.8,1.0,1.0};

ambient[] = {0.07,0.07,0.07,1.0};

position = "P svetlo";

direction = "konec P svetla";

hitpoint = "P svetlo";

selection = "P svetlo";

size = 1;

brightness = 1.0;

};

};

};

};

//};

Edited by Meatball0311

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  

×