Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
SWEFIDDE

how make a car or a chopper to not explode?

Recommended Posts

HI i am so tired that the chopper explode when you just hiting a light pole or when you crash it is so boring..

this is my problem... i get hit by a AA rocket and 50% of the chopper health bar disapear! and the rotating propeller stop but i can still emergency land but the fucking chopper just explos!! as i hit the ground even if a get hit just like 2m above the ground it still explos!!

can some on plz help me!!

from Swe Fidde from the {SWAT} CLAN

http://www.freewebs.com/major99/index.htm

Share this post


Link to post
Share on other sites

hi there..

emergency land is not so hard without exploding. it just needs some practice. to do this you always watch your speed. keep it 10++

trottle down while your droping alt. when your about 20 - 30 meters above ground. press full trottle and pitch up the nose a bit.

however. here are scripting ways for this,

make a while loop. check your dammage. if your dammage gets to example "0.8". keep it there. by using setdammage.

Share this post


Link to post
Share on other sites

hi there!!

but do that work if the engien is died?

and can you explan the script i dont under stand hihi

but thx any way!!

Share this post


Link to post
Share on other sites

example:

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

_me = _this select 0;

while {true} do

{

_dam = getdammage vehicle _me;

if (_dam > 0.8) then

{

vehicle _me setdammage 0.8;

};

sleep 0.01;

};

this should loop verry fast so you constantly check the dammage of the vehicle; you might need to lower it to 0.6 0r 0.7 or so.

then you forexample on players init put: dam = [this] execvm "checkdam.sqf"

this is just an example. i have not tested it out.

Share this post


Link to post
Share on other sites

or use EventHandlers Hit and Dammage ...

Share this post


Link to post
Share on other sites

Should you suffer engine failure it is possible to execute an auto rotation landing maneuver. It does require you to be above a certain altitude and takes some practice to get it working though.

Maybe THIS could be helpful.

Share this post


Link to post
Share on other sites

example:

Code Sample

_me = _this select 0;

while {true} do

{

_dam = getdammage vehicle _me;

if (_dam > 0.8) then

{

vehicle _me setdammage 0.8;

};

sleep 0.01;

};

this should loop verry fast so you constantly check the dammage of the vehicle; you might need to lower it to 0.6 0r 0.7 or so.

then you forexample on players init put: dam = [this] execvm "checkdam.sqf"

this is just an example. i have not tested it out.

hi thx!!! it worked the chopper do not explos but do you know if you can made like the pilot survive also?

thx

Share this post


Link to post
Share on other sites

well.. do it something like this..

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

_me = _this select 0;

while {true} do

{

 _damvehicle = getdammage vehicle _me;

 _damplayer = getdammage _me;

 if (_damvehicle > 0.8) then

 {

     vehicle _me setdammage 0.8;

 };

  if ((_me in vehicle _me) && (_damplayer > 0.7)) then

  {

       _me setdammage 0.7;

  };

 

 sleep 0.01;

};

again. i have not tested this. im at work so i have no chance to test it.

so while your in the vehicle and gets more then 0.7 in dammage it sets the dammage to 0.7

but you should check out the events. hit and dammage.

because the my example will always be running and never terminated, uless you you tell it so. that can be done with example the getout event.

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

_me = _this select 0;

INVEHICLE=true;

while {INVEHICLE} do

{

  bla bla bla

};

then you have getout event set the variable INVEHICLE=false;

get the idea?

Share this post


Link to post
Share on other sites

yee i am not sure.... but do you think it will work if i put the checkdam in empty vehicle ?

Share this post


Link to post
Share on other sites

hi agian i have test the new script but it not working... now i am driving a hummve and its get hit by a prg... the hummve do not explos but i still die...

i would be very greatful to you if you maybe can test it!

thx any way!! biggrin_o.gifwelcome.gifwelcome.gif

Share this post


Link to post
Share on other sites

I'll give you a script that works later.

when im home and i have fired up my pc,

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  

×