setting brakes

Post here if you need help setting up your server, etc.
Post Reply
[<AI>]VIPER
Posts: 4
Joined: Sat Feb 03, 2007 6:57 am
Contact:

setting brakes

Post by [<AI>]VIPER »

When I make a server, what value for brakes do i use so that when i brake, my speed reduces to 5. Alnso, how do i get brakes to last forever? :?:
[<AI>]VIPER
User avatar
DDMJ
Reverse Outside Corner Grinder
Posts: 1882
Joined: Thu Jun 08, 2006 12:15 am
Location: LA, CA, USA, NA
Contact:

Post by DDMJ »

cycle_brake
cycle_brake_deplete
cycle_brake_accel

Should be self explanatory.

http://wiki.armagetronad.net/index.php/Console_Commands
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

cycle_brake_accel? Doesn't exist. He probably means CYCLE_BRAKE_REFILL.
There's no place like ::1
User avatar
DDMJ
Reverse Outside Corner Grinder
Posts: 1882
Joined: Thu Jun 08, 2006 12:15 am
Location: LA, CA, USA, NA
Contact:

Post by DDMJ »

Ya ya, I was just thinking of cycle_accel because someone had just asked me how to make your bike go super fast when you grind :D

I meant cycle_brake_refill

Thanks for catching that wrltpwnd ;)
User avatar
tyer22
Posts: 9
Joined: Sun Apr 13, 2008 9:36 pm

Post by tyer22 »

Well I checked the link, didn't say squat about the brakes. Alls it said was
CYCLE_BRAKE Brake intensity
CYCLE_BRAKE_DEPLETE Rate at which the brake reservoir depletes when you are braking
CYCLE_BRAKE_DEPLETE_OVERRIDE Block out older clients when CYCLE_BRAKE_DEPLETE differs from its default?
CYCLE_BRAKE_REFILL Rate at which the brake reservoir refills when you are not braking
CYCLE_BRAKE_REFILL_OVERRIDE Block out older clients when CYCLE_BRAKE_REFILL differs from its default?
How do the numbers affect the brakes. Like say a high number such as 86, or a low number such as 5, or a negative number such as -2.
User avatar
Lucifer
Project Developer
Posts: 8751
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Er, your quote answers your question...
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

well, _DEPLETE and _REFILL are quite clear IMHO. If they're both 1 you're allowed to brake for one second and then need to wait for another second for your brakes to refill.

If you have, for example, _DEPLETE 4 and _REFILL .5 you can brake for ¼ (= 4 ^ (-1)) of a second and need to wait two seconds (.5 ^ (-1)) to refill.

The way CYCLE_BRAKE is applied to your speed is quite simple, too: If you're currently braking its value is just subtracted from your cycle's acceleration to make the new acceleration. So if you're currently grinding a wall and have a high accel of 10 m/s² and CYCLE_BRAKE is at 30 m/s² you'll effectively be slowed down by 20 m/s², at least as long you still have some braking power left.

Note that the acceleration is also affected by your speed: If you're below CYCLE_SPEED_MIN you'll experience a high acceleration, so no matter how strong you set the brakes (high value for CYCLE_BRAKE) your cycle will still not stop. The same goes for high speeds: At high speeds your cycle will tend to slow down and your boost (negative value of CYCLE_BRAKE) will have to work against that.
There's no place like ::1
Post Reply