- What permissions do you give others to modify and/or maintain your submission?
- Modify: YES - Maintain: YES - I give permission for my entire submission to be modified by others or used in their own work. I give permission for my entire submission to be maintained by others as well.
Alternatively, you could call it FKLFEKAGTHARLT. So let's call this "Fav's Kart Luas" Instead!
This here is a collection of Lua files to help customize a character's kart upon their untimely demise. Here's the rundown!
NOTE: THIS SCRIPT MAY BECOME OBSOLETE BY THE TIME 2.4 ROLLS AROUND. Do keep this in mind if you plan to only have the leftover kart's sprites change, as Ring Racers will be coming with it's own player sprite dedicated to this exact functionality.
It's short and simple, but this Lua file is easily modifiable to your hearts content. Simply swap some skin names around, provide a custom SPR_, and you're good to go!
Provided inside is an example where Sonic will drop behind an abandoned skateboard instead of a kart. Place the Lua file in your pk3, create your custom sprites, and you should be set.
It's worth noting that it's good practice to come up with your own SPR_ prefix name to avoid conflicts with other mods.
This here is a collection of Lua files to help customize a character's kart upon their untimely demise. Here's the rundown!
NOTE: THIS SCRIPT MAY BECOME OBSOLETE BY THE TIME 2.4 ROLLS AROUND. Do keep this in mind if you plan to only have the leftover kart's sprites change, as Ring Racers will be coming with it's own player sprite dedicated to this exact functionality.
It's short and simple, but this Lua file is easily modifiable to your hearts content. Simply swap some skin names around, provide a custom SPR_, and you're good to go!
Provided inside is an example where Sonic will drop behind an abandoned skateboard instead of a kart. Place the Lua file in your pk3, create your custom sprites, and you should be set.
It's worth noting that it's good practice to come up with your own SPR_ prefix name to avoid conflicts with other mods.
Place both Lua files into your pk3. The second Lua file (MySkinsExample) will be where you will add support for your skin.
CustomGibsThinker is the main handler for custom gibs, which will allow you to control a certain kart particle's SPR_, frame, and even determine if a specific gib should show up. Nothing from CustomGibsThinker will need to be touched or modified.
MySkinsExample will provide the template to be used in order to add support for a custom character. Inside is an example of Sonic and Tails spitting out temporary gibs, along with an explanation of the formatting. It's worth noting too that any gibs that use the recolorable green range will recolor to the player's color for all gibs sprites.
Things to note in the table:
Item | Explanation |
---|---|
[SPR_DIEA] | Tire particles (4 total) |
[SPR_DIEB] | Pipeframe bar particles (6 total) |
[SPR_DIEC] | Pedal tip particles (2 total) |
[SPR_DIED] | The right pedal particle (1 total) |
[SPR_DIEE] | The steering wheel particle (1 total) |
[SPR_DIEG] | The left pedal particle (1 total) |
[SPR_DIEH] | Struts/Spring particles (4 total) |
[SPR_DIEI] | Wheel axel bar particles (2 total) |
[SPR_DIEJ] | Screw particles (8 total) |
[SPR_DIEK] | The engine particle (1 total) |
sprite | The SPR_ the thinker will refer to when replacing the particle's sprites. |
frame | This variable will allow you to specify the frame that will show up for the replaced particle, perfect for optimizing custom SPR_ freeslotting. |
nullifier | A Boolean you can set to true or false. If set to true, the gibs will be forced to the state S_NULL, and remove the particle. Otherwise, if set to false, the specified kart particle will appear. |
That's all for now, but who knows! Maybe I'll add some more stuff later down the line. Until then, Merry Christmas! Or Happy weekday/weekend, depending on when you're viewing this.
Credits:
Kart Krew Discord - Assistance with the global table