monke
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user