This commit is contained in:
Victor Turgeon
2022-10-11 21:21:27 -04:00
parent 4973e22d23
commit d31b299251
15 changed files with 261 additions and 24 deletions

View File

@@ -83,9 +83,10 @@ func _physics_process(delta):
if Input.is_action_just_pressed("crouch"):
head.translate(Vector3.DOWN)
speed = 20
if Input.is_action_just_released("crouch"):
head.translate(Vector3.UP)
isStep = false
speed = 40
if Input.is_action_pressed("move_forward"):
direction -= transform.basis.z
@@ -113,14 +114,16 @@ func _physics_process(delta):
else:
isSlap = false;
if isSlap:
if slap >= slapkill:
AudioMegaSlap.play()
else:
isSlap = false;
AudioSlap.play()
isSlap = false;
hitbox.monitorable = true
hitbox.slap_level = slap
hitbox.slap_kill = slapkill
hitbox.slap_vector = point_to.get_global_transform().origin - camera.get_global_transform().origin
if (chargeSlap):