The turbo equation needs to give an exponential look where at the end of the rpm it is through the roof with little difference between say 8 - 9k rpm
Here's mine
Code:
tempRpm := Engine.Player.Car.rpm/1000;
Engine.Player.Car.Boost:= power(temprpm+defaultboost,tickcount/10)*2;
This puts out boost 1 - 10
it needs to have
- the rpm as a single
- the boost as a single
- and the tickcount
then here's the function to mix it up
Code:
if(engine.Player.Car.RPM >4000) then begin //---- zero boost at >4000 rpm
engine.player.Car.RPM:= engine.Player.car.RPM + Engine.Player.Car.Boost;
end;
Any ideas formulas etc would be greatly appreciated