Crouch, walking and scoping support, deleted unnecessary Session rpcs
This commit is contained in:
parent
76647fc2fc
commit
d79db8a8d8
6 changed files with 4513 additions and 4456 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue