Set gfx angle when ground pounding.

This commit is contained in:
Max 2023-06-23 22:28:35 -05:00 committed by GitHub
parent 8dd9f38891
commit 0629c7a645
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -700,13 +700,17 @@ DEF_ACTION(Action.GROUND_POUND, function(m: Mario)
m.Velocity = Util.SetY(m.Velocity, -50)
m:SetForwardVel(0)
m:SetAnimation(if m.ActionArg == 0 then Animations.START_GROUND_POUND else Animations.TRIPLE_JUMP_GROUND_POUND)
-- stylua: ignore
m:SetAnimation(if m.ActionArg == 0
then Animations.START_GROUND_POUND
else Animations.TRIPLE_JUMP_GROUND_POUND)
if m.ActionTimer == 0 then
m:PlaySound(Sounds.ACTION_SPIN)
end
m.ActionTimer += 1
m.GfxAngle = Vector3int16.new(0, m.FaceAngle.Y, 0)
if m.ActionTimer >= m.AnimFrameCount + 4 then
m:PlaySound(Sounds.MARIO_GROUND_POUND_WAH)