Crouch, walking and scoping support, deleted unnecessary Session rpcs

This commit is contained in:
Rendo 2025-12-03 13:08:32 +05:00
commit d79db8a8d8
6 changed files with 4513 additions and 4456 deletions

View file

@ -26,19 +26,16 @@ const MAX_HP = 100
get:
return hp
func _enter_tree() -> void:
set_multiplayer_authority(str(name).to_int())
func _physics_process(_delta: float) -> void:
if not is_multiplayer_authority():
if not multiplayer.is_server():
return
move_and_slide()
func die() -> void:
if (not is_multiplayer_authority()):
if (not multiplayer.is_server()):
return
Session.add_dead.rpc(team)
Session.add_dead(team)
died.emit()
passived = true