Set gfx angle when ground pounding.
This commit is contained in:
parent
8dd9f38891
commit
0629c7a645
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue