feat: added hud for utilites
This commit is contained in:
@@ -259,3 +259,7 @@ func _apply_crouch(crouched: bool) -> void:
|
||||
shape_node.position.y = 0.0
|
||||
if head:
|
||||
head.position.y = 0.7
|
||||
|
||||
func get_dash_cooldown_remaining() -> float:
|
||||
var now := Time.get_ticks_msec() / 1000.0
|
||||
return maxf(0.0, params.dash_cooldown - (now - StateDash._last_dash_time))
|
||||
|
||||
Reference in New Issue
Block a user