Jump to content
Sign in to follow this  
flaber

Config for FFAR rockets

Recommended Posts

We have made a new chopper, and we have added FFAR rockets. The problem I have is that the rockets are not launched from the rocketpods, (one in each side) they are launched from the center of the helicopter.

I have added in Memory Lod this points:

L Raketa and P Raketa, and i have also defined this points as Rocket_1 and Rocket_2.

In the config... well take a look:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class FFAA_Armada_AB212: FFAA_Armada_SH60

{

displayName="(Arm) AB-212";

simulation = "helicopter";

crew="FFAA_FAMET_Piloto";

model="\FFAA_Armada\AB-212\FFAA_Armada_AB212.p3d";

maxSpeed = 196;

weapons[]={FFARLauncher};

magazines[]={38Rnd_FFAR};

transportSoldier=5;

transportVehiclesMass = 5000;

hasGunner = 0;

hiddenSelections[] = {"rappel","flotadores"};

class Turrets {};

class reflectors {};

class AnimationSources

{

class PuertaIzquierda

{

source = "user";

animPeriod = 2;

initPhase=0;

};

class PuertaDerecha

{

source = "user";

animPeriod = 2;

initPhase=0;

};

};

class UserActions

{

class AbrirPuertaIzquierda // action to open the door

{

displayName="Abrir puerta izq"; // string that's displayed in the action menu

position="pizq"; // name of the 'action point'

radius=4.5; // how close the player has to be see this action

condition="this animationPhase ""PuertaIzq"" < 0.5"; // check whether the door has moved already

statement="this animate[""PuertaIzq"",1]"; // and if not, then start the animation

onlyforplayer = true; // requirement by ArmA - presumably defines if AI can/cannot open doors etc

};

class CerrarPuertaIzquierda // action to open the door

{

displayName="Cerrar puerta izq"; // string that's displayed in the action menu

position="pizq"; // name of the 'action point'

radius=4.5; // how close the player has to be see this action

condition="this animationPhase ""PuertaIzq"" > 0.5"; // check whether the door has moved already

statement="this animate[""PuertaIzq"",0]"; // and if not, then start the animation

onlyforplayer = true; // requirement by ArmA - presumably defines if AI can/cannot open doors etc

};

class AbrirPuertaDerecha // action to open the door

{

displayName="Abrir puerta der"; // string that's displayed in the action menu

position="pder"; // name of the 'action point'

radius=4.5; // how close the player has to be see this action

condition="this animationPhase ""PuertaDer"" < 0.5"; // check whether the door has moved already

statement="this animate[""PuertaDer"",1]"; // and if not, then start the animation

onlyforplayer = true; // requirement by ArmA - presumably defines if AI can/cannot open doors etc

};

class CerrarPuertaDerecha // action to open the door

{

displayName="Cerrar puerta der"; // string that's displayed in the action menu

position="pder"; // name of the 'action point'

radius=4.5; // how close the player has to be see this action

condition="this animationPhase ""PuertaDer"" > 0.5"; // check whether the door has moved already

statement="this animate[""PuertaDer"",0]"; // and if not, then start the animation

onlyforplayer = true; // requirement by ArmA - presumably defines if AI can/cannot open doors etc

};

};

}

FFAA_Armada_SH60 inherits from UH60 ->

FFAA_Armada_SH60: UH60

I have to define something else in another class like cfgskeletons or cfgmodels ?

Share this post


Link to post
Share on other sites

If I remember correctly only use L Raketa and P Raketa as the engine will not support another label, you have to use the standard BIS label format. The only time you can use normal english labels for another custom animations, like wing folding, door open.

Share this post


Link to post
Share on other sites

Thanks for your help, but, don't know why, it only works using "P Strela" and "L Strela" ¿¿¿¿huh.gif is working now.. thanks for your answers..

"P Raketa" and "L Raketa" maybe is for airplanes...

I have also defined de memory points in cfgvehicles:

memoryPointLRocket = "Rocket_1";

memoryPointRRocket = "Rocket_2";

a picture of the chopper firing the rockets:

http://www.ffaa.es/archivos/media/fotos/FFAA-ArmA-13.jpg

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  

×