Implement WaterCrouchMove and WingCrouchMove (and fix an incorrect default value on small crouch height) (#643)

* Add WaterCrouchMove and WingCrouchMove states

* Implement WaterCrouchMove and WingCrouchMove

* Quick patch for incorrect crouch height

im adding this to this branch for this since its literally just a number change lol
This commit is contained in:
SkyanUltra
2025-10-22 14:51:52 -04:00
committed by GitHub
parent 1e2d4d9404
commit bc73dc899b
2 changed files with 15 additions and 7 deletions

View File

@@ -221,13 +221,19 @@ func get_animation_name() -> String:
return "CrouchJump"
elif player.is_actually_on_floor():
if abs(player.velocity.x) >= 5 and not player.is_actually_on_wall():
return "CrouchMove"
elif player.in_water:
return "WaterCrouch"
elif player.flight_meter > 0:
return "WingCrouch"
if player.in_water:
return "WaterCrouchMove"
elif player.flight_meter > 0:
return "WingCrouchMove"
else:
return "CrouchMove"
else:
return "Crouch"
if player.in_water:
return "WaterCrouch"
elif player.flight_meter > 0:
return "WingCrouch"
else:
return "Crouch"
if player.is_actually_on_floor():
if player.skidding:
return "Skid"