Fix the rest of #4 derp
This commit is contained in:
@ -136,7 +136,7 @@ func handle_state(moving):
|
|||||||
enter_normal_state()
|
enter_normal_state()
|
||||||
elif sprint_mode == 1:
|
elif sprint_mode == 1:
|
||||||
if moving:
|
if moving:
|
||||||
if Input.is_action_just_pressed("sprint"):
|
if Input.is_action_just_pressed(SPRINT):
|
||||||
match state:
|
match state:
|
||||||
"normal":
|
"normal":
|
||||||
enter_sprint_state()
|
enter_sprint_state()
|
||||||
@ -153,7 +153,7 @@ func handle_state(moving):
|
|||||||
elif state == "crouching" and !$CrouchCeilingDetection.is_colliding():
|
elif state == "crouching" and !$CrouchCeilingDetection.is_colliding():
|
||||||
enter_normal_state()
|
enter_normal_state()
|
||||||
elif crouch_mode == 1:
|
elif crouch_mode == 1:
|
||||||
if Input.is_action_just_pressed("crouch"):
|
if Input.is_action_just_pressed(CROUCH):
|
||||||
match state:
|
match state:
|
||||||
"normal":
|
"normal":
|
||||||
enter_crouch_state()
|
enter_crouch_state()
|
||||||
@ -174,7 +174,6 @@ func enter_crouch_state():
|
|||||||
state = "crouching"
|
state = "crouching"
|
||||||
speed = crouch_speed
|
speed = crouch_speed
|
||||||
|
|
||||||
|
|
||||||
func enter_sprint_state():
|
func enter_sprint_state():
|
||||||
#print("entering sprint state")
|
#print("entering sprint state")
|
||||||
var prev_state = state
|
var prev_state = state
|
||||||
|
Reference in New Issue
Block a user