Jump to content
Sign in to follow this  
cj

Modifying the Harrier

Recommended Posts

Is there any way I can modify the Harrier to change the speed of it on my server so it can go extremely quick?

Cheers.

Share this post


Link to post
Share on other sites

If you want to have it temporarely use setvelocity, if you want to have it permanently, you have to make an addon or modify the existing harrier to your needs, while I´m pretty sure that AI will run into some deep shit if you boost the speed.

Note: In case you create an addon, everyone who wants to play on your server needs to have that addon installed.

Share this post


Link to post
Share on other sites

This will be really difficult to realize. Yet I suggest you dont even try it if you are not really sure it will be worth it and you know how to code.

Do the following:

Testing:

You need to have the amount of current forward thrust for simulating a higher speed than the normal one. For that purpose you first have to survey numbers and values.

Create a script which will take the Plane to different high-speeds and get some formula for getting the actual thrust from the declension of speed due to the drag the plane has to go against.

The numbers you may get will probably look like that:

1000mph, full Thrust, 950mph after 0.5 seconds

1250mph, full Thrust, 1150mph after 0.5 seconds

1500mph, full Thrust, 1350mph after 0.5 seconds

1750mph, full Thrust, 1550mph after 0.5 seconds

2000mph, full Thrust, 1750mph after 0.5 seconds

1000mph, 0.5% Thrust, 900mph after 0.5 seconds

1250mph, 0.5% Thrust, 1050mph after 0.5 seconds

1500mph, 0.5% Thrust, 1200mph after 0.5 seconds

1750mph, 0.5% Thrust, 1350mph after 0.5 seconds

2000mph, 0.5% Thrust, 1500mph after 0.5 seconds

1000mph, no Thrust, 800mph after 0.5 seconds

1250mph, no Thrust, 850mph after 0.5 seconds

1500mph, no Thrust, 1100mph after 0.5 seconds

1750mph, no Thrust, 1250mph after 0.5 seconds

2000mph, no Thrust, 1400mph after 0.5 seconds

etc etc.

From those number you have to find a formula to describe the declension of speed in relation to the current trust, vectors etc.

This will be hard to make. Will take you weeks or month if you dont ask BIS for their avionics they included into the game.

now you can get the thrust from the declension of speed.

Scripting:

-> Get the Vectors from the jet

-> Get the vectors again with a delay

-> Calculate the thrust

-> Apply new fwd-vec to the plane. Current_Speed + Factor*Thrust

This will be the most simple way if you dont know the avionics. But this way you will still have the same turning-radius.

Still. bad idea imo

---edit---

Well Current_Speed + Factor*Thrust will not make it - lol. This will bring you up to lightspeed. It has to be something going to the limit. Like

New_Speed = Current_Speed + Factor*Thrust/Current_Speed. Or some kind of sqrt or E-Function

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  

×