Top Speed
#2

Quote:
Originally Posted by Seif_
I don't understand.
I'm pretty sure what he means is that he wants his speedboost to stop working once you are above a certain speed.

If that's true, then make it such that when your speedboost code is called (in OnPlayerKeyStateChange or whereever) it first works out the players speed (in the same way as with your speedo) and compare it to the maximum speed you want and then take action based upon that; for example, first work out their speed and store it in a variable speed then do something like this:

pawn Код:
if(speed > 900) return;
This will make it such that if their speed is above 900km/h (or whatever your units are) the code to boost their speed won't run (the code above must be before the bit that causes the players speed to be boosted).
Reply


Messages In This Thread
Top Speed - by Doman - 14.11.2009, 21:55
Re: Top Speed - by radhakr - 14.11.2009, 22:29
Re: Top Speed - by yom - 14.11.2009, 22:35
Re: Top Speed - by Doman - 15.11.2009, 18:12
Re: Top Speed - by radhakr - 16.11.2009, 00:02
Re: Top Speed - by Doman - 16.11.2009, 05:59
Re: Top Speed - by Retardedwolf - 16.11.2009, 07:01
Re: Top Speed - by yom - 16.11.2009, 09:14
Re: Top Speed - by Doman - 16.11.2009, 14:07

Forum Jump:


Users browsing this thread: 1 Guest(s)