SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Releases > Lua

Reply
 
Thread Tools
Auto-Brake when not moving (autobrake.lua) Details »»
Auto-Brake when not moving (autobrake.lua)
Version: 1.0, by FuriousFox (AKA FuriousFox) FuriousFox is offline
Developer Last Online: Nov 2018

Category: Version: SRB2 Rating: (2 votes - 3.80 average)
Released: 11-13-2016 Last Update: Never Installs: 1
Scripts Re-Useable Content

This script will make your character automatically try to stop when you aren't pressing any of the movement keys. The idea is that this could help people who find SRB2's controls too slippery.

It basically works by acting like you are pressing the keys to move in the opposite direction that you are currently moving. This script doesn't (or at least shouldn't) do anything that a skilled player can't already do on their own.

The script also automatically disables while springing or spinning, so that diagonal springs can still send you to the correct destination, and so that spindashes don't immediately begin slowing down after doing them.

You can use the AUTOBRAKE console variable to adjust the brake's sensitivity. By default, it is set to the maximum (100). Setting it to 0 completely disables it.

Special thanks to RedEnchilada for helping me understand SRB2's movement code.

Download Now

File Type: lua autobrake.lua (1.2 KB, 525 views)

Screenshots

Click image for larger version

Name:	srb20006.gif
Views:	615
Size:	788.1 KB
ID:	9232  

Supporters / CoAuthors

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Comments
Old 11-13-2016   #2
TehRealSalt
Ya Gal Sal Here (σᴥσ)
Judge
 
TehRealSalt's Avatar
Default

Welcome to releases!
__________________
THZ Discord | Twitter | Tumblr
TehRealSalt is offline   Reply With Quote
Old 11-13-2016   #3
MK.exe
The one and only!
 
MK.exe's Avatar
Default

Awesome!

Theoretically would this work to counter CLag?
__________________
Considered Milestones:
Hit a 180 Rail shot
1st person to have a map in releases with Slopes
MK.exe is offline   Reply With Quote
Old 11-13-2016   #4
FuriousFox
AKA FuriousFox
Developer
 
FuriousFox's Avatar
Default

I suppose it could make it easier to come to a stop while dealing with control lag, since you could just let go of the controls instead of trying to figure out how long you have to hold the opposite direction to stop.
FuriousFox is offline   Reply With Quote
Old 11-13-2016   #5
FuriousFox
AKA FuriousFox
Developer
 
FuriousFox's Avatar
Default

Small update: Turns out you couldn't actually set AUTOBRAKE to 0. Whoops! It's fixed now.
FuriousFox is offline   Reply With Quote
Old 11-13-2016   #6
Bluesfire
Since 2006
 
Bluesfire's Avatar
Default

This needs to be incorporated as an option in the base game. Holy hell that's nice.
__________________
'Member Final Demo 1.09.4?

I like memes.

https://www.youtube.com/user/BluesfireTV/
Bluesfire is offline   Reply With Quote
Old 12-31-2017   #7
SMSGARDIAN
EcoloTheHeroOfSega
Extended Ban (Strike 3)
Default

Srb2 2.2 i need this in my server.
SMSGARDIAN is offline   Reply With Quote
Old 01-02-2018   #8
RomioTheBadass
PK3 Fetishist
 
RomioTheBadass's Avatar
Default

I Just tried this and I have to say It really makes the controls so much less slippery, It was easy to get used to and it didn't affect the gameplay very much, even on the maps that use slopes, Really great, I'm glad this is going to be in 2.2.
RomioTheBadass is offline   Reply With Quote
Old 01-03-2018   #9
RomioTheBadass
PK3 Fetishist
 
RomioTheBadass's Avatar
Default

With more tests I found a possible issue, the players also come to a full stop when they release movement keys on slippery sectors, somehow the script also affects player movement on slippery sectors, easy to notice on maps like Icicle Falls.
RomioTheBadass is offline   Reply With Quote
Old 01-03-2018   #10
toaster
トースタちゃん
 
toaster's Avatar
Default

You can already come to a full stop on slippery sectors, it's just incredibly difficult to get the timing right. (It's sorted for internal with the scaling factor on acceleration, though.)
__________________
Quote:
<fickle> giant robo-hood that rips the map apart with her bare hands
toaster is offline   Reply With Quote
Old 01-03-2018   #11
RomioTheBadass
PK3 Fetishist
 
RomioTheBadass's Avatar
Default

I mean, It should be difficult, It's what makes these things challenging.
RomioTheBadass is offline   Reply With Quote
Old 01-24-2018   #12
Sapheros
That guy that ports
Permanently Banned
Default

I... I don't know what to think of this idea in general, making the ability to stop by letting go of the controls has made more people hiss at newbies for not understanding SRB2's controls the second they chose Sonic The Hedgehog in the character select for Single Player. But, despite all of that... this is probably the best thing SRB2 has needed when it comes to stiff platforming and movement. As a really active and semi-skilled co-op player, this is absolutely amazing to use personally, it's made platforming a hell of a lot easier in general because of how your momentum can get in the way when you don't want it to, or holding the opposite direction for too long can make you fall off too quickly without intending to fall off, it's made a lot of things tolerable overall... I can't wait to see it's integration in 2.2 make Single Player a much more enjoyable experience.
Sapheros is offline   Reply With Quote
Old 05-21-2018   #13
Biielz
Srb2 nick: Lolour
 
Biielz's Avatar
Default

Sonic forces ''momentun'' on srb2
Quote:
QUOTE
Biielz is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:24 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.