Results 1 to 8 of 8

Thread: Jato

  1. #1

    Jato

    Does anyone know about a script that allows you to add as many afterburners as you want to an aircraft. Because I have a model that I made and now I need this



    I originally used ace afterburner but once I went past two afterburners, it seemed like it stopped working, I think there might be a built in limit that only allows two ace afterburners.

    If anyone wants to create a script that I can run from inside the addon that would be great, or any help or pointers would help. This is my last step in this project and I would like to finish it. So any help is appreciated.

    I need a grand total of 8 Afterburners. with working flames, just the script, I have the models already.

    Thanks.
    HITP Developer/ 2d Artist

    Follow our developer blog: http://hellinthepacific.blogspot.com/

  2. #2
    Here is the script I am using,

    Code:
    private ["_MaxIntensity","_Boost","_leftengine","_rightengine","_emitters","_Intensity","_looptime", "_plane"];
    
    _MaxIntensity = 1;
    _Boost = 0.5;
    _Intensity = 0.4;
    
    
    _maxspeed = 1450;
    _plane = _this;
    _plane animate ["ABSwitch",1];
    sleep 0.5;
    
    _plane say "ADF_F111_Burner";
    _timestamp = time;
    _leftengine = "#particlesource" createVehicle position _this;
    _rightengine = "#particlesource" createVehicle position _this;
    _emitters = [_leftengine,_rightengine];
    {_x setParticleRandom [0.05,[0.05,0.05,0.05],[0.05,0.05,0.05],0,0.8,[0.1,0.1,0.1,0],0,0]} foreach _emitters;
    {_x setDropInterval 0} foreach _emitters;
    _looptime = 0.1;
    _runtime = 200;
    while {(alive _plane) and (_plane animationphase "ABSwitch" >= 0.1)} do {
    	if (isengineon _plane) then {
    		if (time >= (_timestamp + 0.8)) then {
    			_plane say "ADF_F111_Burner";
    			_timestamp = time;
    		};
    		if (_Intensity < _MaxIntensity) then {_Intensity = _Intensity + 0.1*(15*_looptime)};
    		if ((speed _plane) < _maxspeed) then {_plane setVelocity [(velocity _plane select 0)+((vectordir _plane) select 0)*((_Boost*_Intensity/2)*(15*_looptime)),(velocity _plane select 1)+((vectordir _plane) select 1)*((_Boost*_Intensity/2)*(15*_looptime)),(velocity _plane select 2)+((vectordir _plane) select 2)*((_Boost*_Intensity/2)*(15*_looptime))]};
    		if (fuel _plane > 0) then {_plane setFuel ((fuel _plane)-((1/18000)*(3*_looptime)))};
    	} 
    	else {if (_Intensity > 0) then {_Intensity = _Intensity - 0.2*(15*_looptime)}};
    	_leftengine setParticleParams ["\Ca\data\cl_exp","","Billboard",1,0.07,[-0.70,-10.5,-1.15],[(velocity _this select 0) - ((vectordir _this) select 0)*30,(velocity _this select 1) - ((vectordir _this) select 1)*30,(velocity _this select 2) - ((vectordir _this) select 2)*30],1,1.2745,1,0,[0.6+(2*(speed _this/_maxspeed)),0.5+(10*(speed _this/_maxspeed))],[[0.040,0.100,0.900,0.1500*_Intensity],[0.200,0.200,0.800,0.1000*_Intensity],[0.500,0.200,0.000,0.0250*_Intensity],[0.000,0.000,0.000,0.0000*_Intensity]],[0],0,0,"","",_this];
            _rightengine setParticleParams ["\Ca\data\cl_exp","","Billboard",1,0.07,[0.70,-10.5,-1.15],[(velocity _this select 0) - ((vectordir _this) select 0)*30,(velocity _this select 1) - ((vectordir _this) select 1)*30,(velocity _this select 2) - ((vectordir _this) select 2)*30],1,1.2745,1,0,[0.6+(2*(speed _this/_maxspeed)),0.5+(10*(speed _this/_maxspeed))],[[0.040,0.100,0.900,0.1500*_Intensity],[0.200,0.200,0.800,0.1000*_Intensity],[0.500,0.200,0.000,0.0250*_Intensity],[0.000,0.000,0.000,0.0000*_Intensity]],[0],0,0,"","",_this];
    	{_x setpos (getpos _plane)} foreach _emitters;
    	if (_Intensity > 0) then {{_x setDropInterval 0.001} foreach _emitters} else {{_x setDropInterval 0} foreach _emitters};
    
    	sleep 0.05; // mod by Crowe
    
    	_runtime = _runtime - 1;
    };
    deleteVehicle _leftengine;
    deleteVehicle _rightengine;
    sleep 3;
    Can Anyone help me out with this, I have no idea how to rescript things that well,

    What I am looking for is 8 engines with afterburner effects. Able to be moved on an aircraft,

    (JATO Fat Albert) Use pic Above,

    Thanks

  3. #3
    Sorry can't really help, but I do have a question or two.

    Does the script work or is it not running?
    Do you have the link to the mod with the script?

    When I tried it I got the plane to accelerate but no effects.

  4. #4
    Well, I just need a working afterburner script so I can add eight particle effects, I need the script to function as a regular afterburner, while looking like it has eight engines going off at once, and this script I realized does not even work for what I am doing. I need an entirely new script, or at least a working one.

  5. #5
    This isn't perfect but it may get you started, it needs some smoke and sparks adding but I'm no good at the particle stuff.

    http://www.sendspace.com/file/y8m1ho

  6. #6
    thanks, I will have to give it a shot when my computer gets back from being repaired,

  7. #7
    Would this be the proper way to execute the script.

    I am putting this in the config.cpp

    Code:
    class Afterburner
    			{
    				displayName ="JATO On";
    				position = "pilotcontrol";
    				radius =15;
    				condition = "speed this >50 and this animationPhase ""ABSwitch"" <= 0.1";
    				statement = "this execvm ""\usaf_c130\scripts\burner.sqf""; ";
    				onlyforplayer = False;
    			};
    			class Afterburner_1
    			{
    				displayName ="JATO Off";
    				position = "pilotcontrol";
    				radius =15;
    				condition = "this animationPhase ""ABSwitch"" >= 0.9";
    				statement = "this animate [""ABSwitch"",0]";
    				onlyforplayer = False;
    			};
    The main part that I am concerned with is the execution of the script.

  8. #8
    Sorry I don't now anything about config.cpp. the config/scripting may be the best place to ask.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •