SRB2 Message Board  

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

Reply
 
Thread Tools
Kart Exhaust Particles v4 Details »»
Kart Exhaust Particles v4
Version: 4.0, by Strife Strife is offline
Developer Last Online: Aug 2020

Category: Version: SRB2 Kart Rating: (5 votes - 4.80 average)
Released: 07-12-2020 Last Update: 08-03-2020 Favourites: 1
Scripts Re-Useable Content Sprites/Graphics



This is a simple Lua script for SRB2Kart that adds visible exhaust to the karts. The particles turn into black smoke while under a boosting effect (sneakers, drifting, etc).

There are two additional spawn types included for nonstandard karts: "NONE" for kartless characters and "CTR" for Plom's CTR kart. You can specify a spawn type for your characters by calling this function to a Lua script in the character's lua folder:

Quote:
EXHAUST_SetType("name", "type")
"name" is the character's internal name and "type" is either "NONE" or "CTR".

Shoutout to Lach, whose Lua scripting for Chrispy's character pack was used as the basis for this script.

Changelog
Spoiler:

v4
- Spinout rotation is now taken into account.
- N. Gin, Fake Crash, Small Norm, Tawna, and Checkpoint Crate have been added to the CTR spawn type.
- You can now specify a spawn type for your own characters through Lua, as long as they are loaded after the exhaust script. Call EXHAUST_SetType("name", "type"), where "name" is the character's internal name and "type" is either "NONE" or "CTR".

v3
- Added CTR spawn type. This affects the following characters: Crash Bandicoot, Coco Bandicoot, Dingodile, Polar, Penta Penguin, Pinstripe, N.Tropy, N.Trance, Isabella, Ami, Megumi, Liz, Spyro (Plom), CTR Spyro (Emigell), King Chicken
- Added Kartless spawn type. This affects the following characters: SRB2 Sonic, Kartless Sonic, Kartless Tails, Kartless Knuckles
- Fixed the particles not changing their spawn point with the kart's scale.
- The flame sprites will now stop spawning 10 frames earlier than the smoke. This makes it so that the weakest drift boosts will only get a brief "pop" of fire, which is a better indicator of its strength.

v2
- Added flame effects to boosting. The duration of the vanilla boost effect has been reduced to compliment this.

v1
- Initial release.

Download Now

File Type: pk3 KL_KartExhaust_v4.pk3 (4.1 KB, 96 views)

Screenshots

Click image for larger version

Name:	exhaust2.gif
Views:	1133
Size:	985.6 KB
ID:	34780   Click image for larger version

Name:	exhaust3.gif
Views:	1136
Size:	672.6 KB
ID:	34781   Click image for larger version

Name:	exhaust1.gif
Views:	947
Size:	2.16 MB
ID:	35363   Click image for larger version

Name:	exhaust4.gif
Views:	1000
Size:	4.70 MB
ID:	35364  

Show Your Support

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

Comments
Old 4 Weeks Ago   #2
D00D64
Probably Responsible
Moderator
 
D00D64's Avatar
Default

It can go into releases for now, but do try to upload at least one imag if you can, even if it isnt a GIF. I also understand the MB wont let you make a topic with a PK3 for stupid reasons, but when you do upload an image, please replace the zip with a PK3, as a PK3 is already a compressed file, so making it a zip doesnt do anything but add an extra step for the user.
D00D64 is offline   Reply With Quote
Old 4 Weeks Ago   #3
Strife
 
Strife's Avatar
Default

I've updated the ZIP to a PK3 as suggested. I had considered attaching a static image temporarily until GIF support is restored, but I think the effect of the script isn't obvious from a static screenshot. I'll put together something regardless if GIFs aren't fixed in a day or two.

EDIT: All set!

Last edited by Strife; 4 Weeks Ago at 12:38 AM.
Strife is offline   Reply With Quote
Old 4 Weeks Ago   #4
Claudiadoe
 
Claudiadoe's Avatar
Default

how come this is in the characters section?
Claudiadoe is offline   Reply With Quote
Old 4 Weeks Ago   #5
D00D64
Probably Responsible
Moderator
 
D00D64's Avatar
Default

Because I misclicked by one space. Oops.
D00D64 is offline   Reply With Quote
Old 4 Weeks Ago   #6
NoNameUser
 
NoNameUser's Avatar
Default

wow this looks nice
NoNameUser is offline   Reply With Quote
Old 3 Weeks Ago   #7
Strife
 
Strife's Avatar
Default

Updated to v2 with a spiffy new flame effect for boosting:



It's been suggested to me that the color of the flame could correspond to the type of boost, and I may experiment with that later, but for now I figured I'd release what I have.
Strife is offline   Reply With Quote
Old 3 Weeks Ago   #8
Strife
 
Strife's Avatar
Default

Updated to v3 with a major bugfix for kart scaling, plus the addition of new spawn types:

- Added CTR spawn type. This affects the following characters: Crash Bandicoot, Coco Bandicoot, Dingodile, Polar, Penta Penguin, Pinstripe, N.Tropy, N.Trance, Isabella, Ami, Megumi, Liz, Spyro (Plom), CTR Spyro (Emigell), King Chicken
- Added Kartless spawn type. This affects the following characters: SRB2 Sonic, Kartless Sonic, Kartless Tails, Kartless Knuckles
- Fixed the particles not changing their spawn point with the kart's scale.
- The flame sprites will now stop spawning 10 frames earlier than the smoke. This makes it so that the weakest drift boosts will only get a brief "pop" of fire, which is a better indicator of its strength.

If you want a Kartless or CTR character added to the list in future versions, feel free to mention them here and I'll write them into future versions. You can also do this yourself within the lua script by adding to the SKIN_NOKART and SKIN_CTR arrays at the top of the file.

Last edited by Strife; 3 Weeks Ago at 12:22 AM.
Strife is offline   Reply With Quote
Old 3 Weeks Ago   #9
Emgiell
Default

Would it be possible to read a file in a pk3/wad that positions the particle emitter? I feel that it be more practical than manually adding presets within the mod file itself.
Emgiell is offline   Reply With Quote
Old 1 Week Ago   #10
Khioni
Default

Click image for larger version

Name:	kart0118.gif
Views:	43
Size:	2.58 MB
ID:	36115
(using translucency 0 to exaggerate)


Exhaust does not sync up with spinout.
Khioni is offline   Reply With Quote
Old 1 Week Ago   #11
Strife
 
Strife's Avatar
Default

Is there a way to grab the player's angle offset during the spinout animation? If so then I should be able to add an exception to the current angle calculation pretty easily.
Strife is offline   Reply With Quote
Old 1 Week Ago   #12
Lach
nanananananananananananan a
Moderator
 
Lach's Avatar
Default

Yes! Use player.frameangle instead of mo.angle.
Lach is offline   Reply With Quote
Old 1 Week Ago   #13
Strife
 
Strife's Avatar
Default

Thanks! New version is up.

- Spinout rotation is now taken into account.
- N. Gin, Fake Crash, Small Norm, Tawna, and Checkpoint Crate have been added to the CTR spawn type.
- You can now specify a spawn type for your own characters through Lua, as long as they are loaded after the exhaust script. Call EXHAUST_SetType("name", "type"), where "name" is the character's internal name and "type" is either "NONE" or "CTR".
Strife 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 07:35 AM.


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