WIP: Some updates

This commit is contained in:
Nikolai Rodionov 2025-02-09 16:27:06 +01:00
parent 6e3d4b47dd
commit 7a36a173b5
Signed by: allanger
GPG Key ID: 09F8B434D0FDD99B

View File

@ -43,12 +43,8 @@ func _physics_process(delta: float) -> void:
if not shared_node.is_on_floor():
shared_node.velocity += shared_node.get_gravity() * delta
if shared_node.is_on_floor() && jumping:
if not multiplayer.is_server():
print("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: