CTR Masks for SRB2Kart [Help: disabling vanilla invincibility effects]

Ganbare-Lucifer

Proud Rapa-Nui Friends Fan
Hi.

All these days I've been trying to make SRB2 Kart mod where it replaces the vanilla invincibility with masks invincibility from Crash Team Racing series.

The only thing that bothers me is the lua coding, it's hard to do and this is what I have so far. Feedback? Any tips?


All Graphics I made:

  • Aku-Aku
  • Uka-Uka
  • Velo Mask
  • Ex Mask
  • Sparx
  • Apo-Apo
 

Attachments

  • Aku-Aku Rotation.gif
    Aku-Aku Rotation.gif
    4.1 KB · Views: 538
  • Uka-Uka Rotation.gif
    Uka-Uka Rotation.gif
    4.6 KB · Views: 536
  • Velo Mask Rotation.gif
    Velo Mask Rotation.gif
    4.6 KB · Views: 513
  • Ex Mask Rotation.gif
    Ex Mask Rotation.gif
    3.6 KB · Views: 505
  • Sparx rotation.gif
    Sparx rotation.gif
    2.3 KB · Views: 201
  • Apo-Apo rotation.gif
    Apo-Apo rotation.gif
    5.9 KB · Views: 204
Last edited:
New Edit: Tried to replicate the behavior of the Jawz rotation into mask movement, but it's incompatible.


Also tried to experiment with the Dynamic Music Sound Replace code.
 
New Edit: Cleaned some code and readied the mask mobjs


We're progressing slowly


Edit of the Edit: Tweaked few things, most exactly the freeslots.
 
Last edited:
New Edit: The ThinkFrame vars have been remade with better coding, it now picks
Code:
local [alignment]skinlookup
 
New Edit: For fuck sake, I remade the code from scratch, huge shoutout to @minenice for helping me a lot.


kart0000.gif



(The rainbow cycling palette and the sparkles will be removed eventually)
 
New Edit: Fixed the other masks not spawning and added the hud icons to display in-game.
Edit of the Edit: Now mask themes play properly. Thanks once again to @minenice!
Edit of the Edit of the Edit: HUD icons now display properly, but not on splitscreen mode, however, this should be enough to be for a beta release.
 
Last edited:
Alright, now with a submitted beta, all I need is help disabling the vanilla invincibility visual effects, which are the palette cycling, sparkles and afterimages. For the update.

minenice suggested me this code to disable the afterimages, which I used but doesn't work at all (the print thingie is for debug purposes)
Code:
function A_GhostMe(actor, var1, var2)
  if actor.player and actor.player.CTRMask then
  print("CTRMask is working aaaaaaaaa" .. actor.player.CTRMask)
    return
  else
    super(actor, var1, var2)
  end
end
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top