Jump to content
Sign in to follow this  
catito14

VTOL problems

Recommended Posts

Hi , i have just a little question. Look, i´m doing the Harrier Gr.3 and the Sea Harrier FRS.1, but when i tried to make the movement of the nozzles (like the AV8B from BIS) they didn´t want to move .... the weird thing is if i put the Bulldozer and, i move the animation, the nozzles moves right ... but in game they are freezed.

Here i attach the config and model codes:

SKELETON

class MLV_HarrierSkeleton: Plane

{

skeletonInherit="";

isDiscrete = 1;

skeletonBones[]=

{

"left wheel","",

"left gear1","",

"left gear2","",

"front uc door1","",

"front uc door2","",

"front uc door3","",

"front wheel","",

"right wheel","",

"right gear2","",

"main wheel","",

"mainwheel door1","",

"mainwheel door2","",

"mainwheel door3","",

"nozzle_1_1",

"",

"nozzle_1_2",

"",

"nozzle_2_1",

"",

"nozzle_2_2",

"",

"speedBreak","",

"nose gear1","",

"nose gear2","",

"hook","",

"wheel_1","front wheel",

"wheel_2","main wheel",

"wheel_3","left wheel",

"wheel_4","right wheel",

"elevator","",

"aileron left","",

"aileron right","",

"flaps left","",

"flaps right","",

"front wheel","front uc door1",

"front wheel","front uc door2",

"front wheel","front uc door3",

"main wheel","mainwheel door1",

"main wheel","mainwheel door2",

"main wheel","mainwheel door3",

"damageHide","",

"rudder","",

"flarecount", "",

"ABSwitch","",

"",

"Engine",

"",

"Prop",

"Engine",

"Prop_blur",

"Engine",""

};

};

CFG MODEL

class MLV_Harrier: Plane

{

sectionsInherit="";

sections[]=

{

"zasleh","zbytek","nozzle_1_1"

};

skeletonName="MLV_HarrierSkeleton";

class Animations

{

class damageHide

{

type="hide";

source="damage";

selection="damageHide";

};

class VTE_rotate_Wheels1

{

type = "rotationX";

source = "wheel";

selection = "wheel_1";

axis = "";

memory = true;

sourceAddress = "loop";

minValue = 0;

maxValue = 4;

angle0 = 0;

angle1 = "rad -360";

};

class VTE_rotate_Wheels2: VTE_rotate_Wheels1

{

selection = "wheel_2";

};

class VTE_rotate_Wheels3: VTE_rotate_Wheels1

{

selection = "wheel_3_1";

};

class VTE_rotate_Wheels4: VTE_rotate_Wheels1

{

selection = "wheel_3_2";

};

class VTE_Rudder

{

type = "rotation";

source = "rudder";

selection = "rudder";

axis = "axis_rudder";

memory = true;

sourceAddress = "clamp";

minValue = -1;

maxValue = 1;

angle0 = "rad 25";

angle1 = "rad -25";

};

class VTE_ElevRight

{

type = "rotation";

source = "elevator";

selection = "elevator";

axis = "axis_elevator";

memory = true;

sourceAddress = "clamp";

minValue = -1;

maxValue = 1;

angle0 = "rad 25";

angle1 = "rad -25";

};

class VTE_aileronTleft

{

type = "rotation";

source = "aileron";

selection = "aileron left";

axis = "axis_aileron_left";

memory = true;

sourceAddress = "clamp";

minValue = -1;

maxValue = 1;

angle0 = "rad 25";

angle1 = "rad -25";

};

class VTE_aileronTRight

{

type = "rotation";

source = "aileron";

selection = "aileron right";

axis = "axis_aileron_right";

memory = true;

sourceAddress = "clamp";

minValue = -1;

maxValue = 1;

angle0 = "rad 25";

angle1 = "rad -25";

};

class VTE_FlapsRight

{

type = "rotation";

source = "flap";

selection = "flaps right";

axis = "osa flaps right";

memory = true;

sourceAddress = "clamp";

minValue = 0;

maxValue = 1;

angle0 = "0";

angle1 = "-0.05";

};

class VTE_FlapsLeft

{

type = "rotation";

source = "flap";

selection = "flaps left";

axis = "osa flaps left";

memory = true;

sourceAddress = "clamp";

minValue = 0;

maxValue = 1;

angle0 = "0";

angle1 = "-0.05";

};

class LeftGear

{

type = "rotation";

animPeriod = 2;

selection = "left wheel";

axis = "axis left wheel";

source = "gear";

minValue = 0;

maxValue = 0.90;

angle0 = 0;

angle1 = -1.570796;

};

class RightGear

{

type = "rotation";

animPeriod = 2;

selection = "right wheel";

axis = "axis right wheel";

source = "gear";

minValue = 0;

maxValue = 0.90;

angle0 = 0;

angle1 = 1.570796;

};

class NoseGear

{

type = "rotation";

animPeriod = 2;

selection = "front wheel";

axis = "axis front wheel";

source = "gear";

minValue = 0;

maxValue = 1;

angle0 = 0;

angle1 = -1.815135;

};

class mainGear

{

type = "rotation";

animPeriod = 2;

selection = "main wheel";

axis = "axis main wheel";

source = "gear";

minValue = 0;

maxValue = 1;

angle0 = 0;

angle1 = 1.55;

};

class Frontdoor1

{

type="rotation";

animPeriod=2;

source = "gear";

selection="front uc door1";

axis="osa front uc door1";

angle0=1.658056;

angle1=0;

};

class Frontdoor2

{

type="rotation";

animPeriod=2;

source = "gear";

selection="front uc door2";

axis="osa front uc door2";

angle0=1.570790;

angle1=0;

};

class Frontdoor3

{

type="rotation";

animPeriod=2;

source = "gear";

selection="front uc door3";

axis="osa front uc door3";

angle0=-1.570790;

angle1=0;

};

//mainwheel doors

class maindoor1

{

type="rotation";

animPeriod=2;

source = "gear";

selection="mainwheel door1";

axis="osa mainwheel door1";

angle0=-1.658056;

angle1=0;

};

class Maindoor2

{

type="rotation";

animPeriod=2;

source = "gear";

selection="mainwheel door2";

axis="osa mainwheel door2";

angle0=-1.570790;

angle1=0;

};

class Maindoor3

{

type="rotation";

animPeriod=2;

source = "gear";

selection="mainwheel door3";

axis="osa mainwheel door3";

angle0=1.570790;

angle1=0;

};

class Canopy

{

type ="rotation";

animPeriod = 3;

selection ="canopy";

axis ="axis canopy";

angle0 = 0;

angle1 = -0.6;

};

class Wheels1 : Rotation

{

type = "rotationX";

memory=1;

sourceAddress="loop";

source = "wheel";

selection = "Wheel_1";

axis = "axis_wheels1";

minValue = 0; maxValue = 1;

angle0 = 0; angle1 = "rad -360";

};

class Wheels2: Wheels1

{

selection = "wheel_2";

axis = "axis_wheels2";

};

class Wheels3: Wheels1

{

selection = "wheels3";

axis = "axis_wheels3";

};

class flarecount {

type = "rotationX";

selection = "flarecount";

axis = "osa_flarecount";

memory = 1;

minValue = 0;

maxValue = 1;

angle0 = "rad 0";

angle1 = "rad +180";

};

class nozzle_1_1_1: Rotation

{

source="thrustVector";

selection="nozzle_1_1";

axis="nozzle_1_1_axis";

minValue=0;

maxValue=0.900000;

angle0=0.000000;

angle1=1.570796;

};

class nozzle_1_2_1: nozzle_1_1_1

{

selection="nozzle_1_2";

axis="nozzle_1_2_axis";

};

class nozzle_2_1_1: Rotation

{

source="thrustVector";

selection="nozzle_2_1";

axis="nozzle_2_1_axis";

minValue=0;

maxValue=0.600000;

angle0=0.000000;

angle1=1.047198;

};

class nozzle_2_2_1: nozzle_2_1_1

{

selection="nozzle_2_2";

axis="nozzle_2_2_axis";

};

class Engine: Rotation

{

type="rotationZ";

source="Rotor";

selection="engine";

animPeriod=0.001000;

axis="";

memory=1;

sourceAddress="loop";

minValue=0.000000;

maxValue=1.000000;

angle0=0.000000;

angle1="rad 360";

};

class ABSwitch

{

type = "rotation";

source ="ABSwitch";

sourceAddress = "clamp";

minValue=0;

maxValue=1;

animperiod= 1;

selection ="ABSwitch";

axis = "osa_aileronT_right";

angle0=0; // the start angle

angle1=0.00017; // the end angle, in radians (= degrees/57.3 = degrees * 180/p)

};

};

};

CONFIG

(................)

class AnimationSources

{

class VTOL

{

source=thrustvector;

animPeriod= 2.5;

minValue = 0;

maxValue = 27.8;

};

};

class VTOLSettings

{

WeightRmpty = 5934;

WeightMaxVTOL = 10408;

WeightMaxFuel = 3540;

Thrust = 10793;

VTOLSpeed = 180;

};

};

The name of the noozles are the same like the AV8B has. I hope you can help me!!

Thanks in advance!!

Kind Regards

Catito14

Share this post


Link to post
Share on other sites

Do you have VTOL=1 in the config also ?

You shouldn't need "class VTOL" in the config either.

Try

class nozzle_1_1_1

{

type="rotation";

source="thrustVector";

selection="nozzle_1_1";

axis="nozzle_1_1_axis";

minValue=0;

maxValue=0.900000;

angle0=0.000000;

angle1=1.570796;

};

Share this post


Link to post
Share on other sites
Gnat;1604057']Do you have VTOL=1 in the config also ?

You shouldn't need "class VTOL" in the config either.

Try

class nozzle_1_1_1

{

type="rotation";

source="thrustVector";

selection="nozzle_1_1";

axis="nozzle_1_1_axis";

minValue=0;

maxValue=0.900000;

angle0=0.000000;

angle1=1.570796;

};

The "class nozzle_1_1_1" is in the CfgModel in Model .... you say that i also try putting this in the config instead of the "class VTOL" ?

Yes, i put the VTOL=1 ... the airplane takeoff like the AV8B without problems,....the only problem is that the nozzle don´t moves.

Thanks

Regards

Share this post


Link to post
Share on other sites

No, just remove the AnimationSources definition in the config.cpp, you shouldnt need it because "thrustVector" is a default BIS animation source.

And then redefine you Model.cfg as suggested.

The main difference to your definition is;

Changing

class nozzle_1_1_1: Rotation

to

class nozzle_1_1_1

{

type="rotation";

Share this post


Link to post
Share on other sites
Gnat;1604263']No' date=' just remove the AnimationSources definition in the config.cpp, you shouldnt need it because "thrustVector" is a default BIS animation source.

And then redefine you Model.cfg as suggested.

The main difference to your definition is;

Changing

class nozzle_1_1_1: Rotation

to

class nozzle_1_1_1

{

type="rotation";[/quote']

EXCELLENT!!! This works perfect!!! Thanks a lot Gnat!! :yay:

...now i only need to figure out how can i make the proper animation for the gears :j:

Thanks again mate!!

Kind Regards

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  

×