Sir Thoksalot
What the thok
I attempted scripting mach-speed animations. It makes the players state "S_PLAY_DASH" when they're at 60 FRACUNITS. But the player stays in the DASH state despite not being at the required speed until the player jumps or uses one of their abilities
And no surprise, it works fine with "SF_DASHMODE" characters. I'm assuming I have to use
or
I'm just not sure how I should do it
Code:
addHook("ThinkFrame", do
for player in players.iterate
if player.mo.valid
and P_IsObjectOnGround
and player.mo.state == S_PLAY_RUN
and (player.speed > 60*FRACUNIT)
and not (player.mo.skin == "whirl")
and not (player.mo.skin == "modernsonic")
and not (player.mo.skin == "altsonic")
and not (player.mo.skin == "metalsonic") then
player.mo.state = S_PLAY_DASH
end
end
end)
And no surprise, it works fine with "SF_DASHMODE" characters. I'm assuming I have to use
Code:
else
Code:
elseif