fixed player leaving bounds check
This commit is contained in:
@@ -528,14 +528,14 @@ func punch():
|
||||
|
||||
func crouch(delta):
|
||||
if crouched:
|
||||
crouching_collision.disabled = false
|
||||
#crouching_collision.disabled = false
|
||||
standing_collision.disabled = true
|
||||
if head.position != CROUCHED_POS:
|
||||
head.position = lerp(head.position, CROUCHED_POS, delta * 8)
|
||||
speed = CROUCH_SPEED
|
||||
else:
|
||||
standing_collision.disabled = false
|
||||
crouching_collision.disabled = true
|
||||
#crouching_collision.disabled = true
|
||||
if head.position != STAND_POS:
|
||||
head.position = lerp(head.position, STAND_POS, delta * 8)
|
||||
speed = level_control.gamemode.walk_speed
|
||||
|
||||
Reference in New Issue
Block a user