WIP: Some updates

This commit is contained in:
Nikolai Rodionov 2025-02-08 19:47:59 +01:00
parent 8e06eadf1d
commit 67b981365e
Signed by: allanger
GPG Key ID: 09F8B434D0FDD99B

View File

@ -44,8 +44,9 @@ func _physics_process(delta: float) -> void:
shared_node.velocity += shared_node.get_gravity() * delta
if shared_node.is_on_floor() && jumping:
shared_node.velocity.y = consts.DEFAULT_JUMP_VELOCITY
if multiplayer.is_server():
#if shooting:
jumping = false
jumping = false
var direction := (shared_node.transform.basis * Vector3(input_direction.x, 0, input_direction.y)).normalized()
if shared_node.is_on_floor():
if direction: