SpaceyBat
Member
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:
"name" is the character's internal name and "type" is either "NONE" or "CTR".EXHAUST_SetType("name", "type")
Shoutout to Lach, whose Lua scripting for Chrispy's character pack was used as the basis for this script.
Changelog
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.
- 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.
Attachments
Last edited: