SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Kart Releases & Mods > Miscellaneous

Reply
 
Thread Tools
Kart Slipstream / Drafting Details »»
Kart Slipstream / Drafting
Version: 1.0, by Ashnal Ashnal is offline
Developer Last Online: May 2020

Category: Version: SRB2 Kart Rating: (2 votes - 3.40 average)
Released: 03-08-2020 Last Update: Never Installs: 0
Scripts Re-Useable Content

This adds Mario Kart styled Slipstreaming/Drafting to SRB2Kart!

Draft (follow) behind another racer to gain a tiny speed boost and gain small grey speed lines.
Do this for long enough, and you'll charge a full Slipstream, resulting in a boost to your top speed, and character skin colored speed lines.

The attached gifs explain better than words can, so take a look!

A common Slipstream slingshot:
Click image for larger version

Name:	BlazeSlipstream.gif
Views:	417
Size:	6.87 MB
ID:	27781
But watch out, following other players can be dangerous. Risk vs. reward:
Click image for larger version

Name:	LilicSlipstreamJawz.gif
Views:	291
Size:	2.69 MB
ID:	27782

Mechanics to be aware of:
- The default angle tolerance is 10 degrees. This means the person in front of you can be at most 10 degrees off from your heading for drafting to occur.
- Slipstream mostly increases your speed, but not acceleration. This means acceleration characters tend to make better use of it.
- Pre-Slipstream drafting gives a small speed boost scaled by speed stat to help acceleration characters with tailing speed characters. It scales from 15% at 1 speed to 0% at 9 speed.
- The full Slipstream speedboost is 50% (sneaker) for a speed 1 character and 25% (miniturbo) for a speed 9 character. Other speed stats fall linearly between. This may seem powerful, but since the acceleration boost (10%) is minimal it takes a second to kick in, and is less instant than a sneaker or miniturbo, which boost your acceleration a lot.
- You can't charge Slipstream while either racer is ghosting or airborne, or while you are drifting.

Almost all aspects of this script can be tweaked.
Full cvar list, with defaults:
Spoiler:
- slipstream_enabled, on: Turns the whole script on/off
- slipstream_colorized, on: makes the full slipstream colored with skin color. Off will make the full lines grey like the small ones. not a netvar.
- slipstream_reminder, on: A chat reminder of the mechanic, not a netvar.
- slipstream_maxdistance, 1500: Max distance between you and another racer for valid slipstreaming. In Fracunits.
- slipstream_t2chargedist, 1050: At less than this distance you charge a full slipstream twice as fast. In Fracunits.
- slipstream_t3chargedist, 400: At less than this distance you charge a full slipstream thrice as fast. In Fracunits.
- slipstream_maxangle, ANG10: Angle from your heading any racer must be for valid slipstreaming, expressed as a fixed number.
- slipstream_chargetoboost, 122: How much drafting time is required to charge a full slipstream. 1 per tic at max distance.
- slipstream_boosttime, 70: How long the Slipstream boost lasts after you're no longer drafting, -1 per tic.
- slipstream_minimumspeed. 32: The minimum speed in FracUnits/Tic that both you and your opponent must be going for drafting to occur.
- slipstream_maxspeedboostpercent, 50: The speed boost a speed 1 character gets when Slipstreaming.
- slipstream_minspeedboostpercent, 25: The speed boost a speed 9 (or higher) character gets when Slipstreaming.
- slipstream_accelboostpercent, 10: The acceleration boost all characters get when Slipstreaming.
- slipstream_maxdraftspeedboostpercent, 15: The speed boost a speed 1 character gets for drafting.
- slipstream_mindraftspeedboostpercent, 0: The speed boost a speed 9 (or higher) character gets for drafting.


I originally modeled this after Mario Kart Wii, before tethering in Kart was announced. Any similarities to the tethering teaser are coincidental.
Thanks to Purpsky, who helped me test this in the later stages, and DarkyBenji, who recorded the nice gifs you see here.

Download Now

File Type: lua KL_Slipstream-v3.lua (12.0 KB, 204 views)

Screenshots

Click image for larger version

Name:	Slipstream03.gif
Views:	130
Size:	7.22 MB
ID:	27783   Click image for larger version

Name:	Slipstream04.gif
Views:	100
Size:	6.26 MB
ID:	27784  

Show Your Support

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

Comments
Old 03-11-2020   #2
D00D64
Worst Ranked 'Kart Player
Moderator
 
D00D64's Avatar
Default

Welcome to Releases!
__________________
The least skilled player on the Kart Krew dev team, but I try my best. Maybe someday...

My awful Twitter account

My also awful YouTube channel
D00D64 is offline   Reply With Quote
Old 03-11-2020   #3
MK.exe
The one and only!
 
MK.exe's Avatar
Default

Awesome! Another great excuse to pick kart back up.
__________________
Average
MK.exe is offline   Reply With Quote
Old 03-11-2020   #4
Ashnal
Default

Updated to v2.
- Fixed speed stat scaling to work as intended.
- Removed colorized flashing.
- Added dust to wheels ... Thanks Purpsky for adapting this code.

Last edited by Ashnal; 03-12-2020 at 12:02 AM.
Ashnal is offline   Reply With Quote
Old 04-01-2020   #5
Ashnal
Default

Small tuning update for v3,
some defaults adjusted:

- slipstream_maxangle adjusted up to 14 degrees from 10
This should make it a little easier to get slipstream without pointing directly at another racer

- slipstream_chargetoboost to 3 seconds from 3.5 seconds
get the impactful boost a little sooner

- slipstream_minimumspeed adjusted down to 30 FU/T
just makin it a little easier
Ashnal 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 Off
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:12 PM.


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