|
@ -96,7 +96,7 @@ func set_is_running() -> void: |
|
|
is_running = false |
|
|
is_running = false |
|
|
|
|
|
|
|
|
func set_movement_speed() -> void: |
|
|
func set_movement_speed() -> void: |
|
|
if is_crouching: |
|
|
|
|
|
|
|
|
if is_crouching or ray_cast_crouch.is_colliding(): |
|
|
current_speed = crouch_speed |
|
|
current_speed = crouch_speed |
|
|
elif is_running: |
|
|
elif is_running: |
|
|
current_speed = run_speed |
|
|
current_speed = run_speed |
|
|