Void Animates
Just a guy who loves... EVERYTHING!
I need a title screen to be like this, I have no idea how to do "advanced lua".
Also, how do I make it so when I airdash, it repeatedly spawns the thok trail until you hit the floor?
Here is the code (also for it to work you have to change the s_skin to say ABILITY = CA_NONE)
addHook("AbilitySpecial", function(player)
if player.mo.skin == "sonic"
if not P_IsObjectOnGround(player.mo)
and not (player.pflags & PF_THOKKED)
player.pflags = $1 & ~PF_JUMPED
P_Thrust(player.mo, player.mo.angle, 34*FRACUNIT)
S_StartSound(player.mo, sfx_zoom)
P_SpawnMobj(player.mo.x - 30*FRACUNIT, player.mo.y, player.mo.z - 30*FRACUNIT, MT_THOK)
player.mo.state = S_PLAY_AIRD
player.pflags = $1|PF_THOKKED
end
end
end)
Post automatically merged:
Also, how do I make it so when I airdash, it repeatedly spawns the thok trail until you hit the floor?
Here is the code (also for it to work you have to change the s_skin to say ABILITY = CA_NONE)
addHook("AbilitySpecial", function(player)
if player.mo.skin == "sonic"
if not P_IsObjectOnGround(player.mo)
and not (player.pflags & PF_THOKKED)
player.pflags = $1 & ~PF_JUMPED
P_Thrust(player.mo, player.mo.angle, 34*FRACUNIT)
S_StartSound(player.mo, sfx_zoom)
P_SpawnMobj(player.mo.x - 30*FRACUNIT, player.mo.y, player.mo.z - 30*FRACUNIT, MT_THOK)
player.mo.state = S_PLAY_AIRD
player.pflags = $1|PF_THOKKED
end
end
end)
Last edited: