0.0.2
This commit is contained in:
parent
fadea22b9d
commit
d72b5ac57b
14 changed files with 184 additions and 5 deletions
|
@ -8,10 +8,13 @@ func _on_dropoff(body: Node3D) -> void:
|
|||
var player: Player = body
|
||||
if player.caught_player and !caught_player:
|
||||
caught_player = player.caught_player
|
||||
player.caught_player.get_imprisoned.rpc_id(player.caught_player.get_multiplayer_authority(), get_path())
|
||||
caught_player.get_imprisoned.rpc_id(caught_player.get_multiplayer_authority(), get_path())
|
||||
player.released_player.rpc_id(player.get_multiplayer_authority())
|
||||
(player.get_node("ReleaseTimer") as Timer).stop()
|
||||
($DamageTimer as Timer).start()
|
||||
for i: int in range(Multiplayer.players.size()):
|
||||
if Multiplayer.players[i].id == caught_player.get_multiplayer_authority():
|
||||
Multiplayer.players[i].captured = true
|
||||
elif !player.hunter and player.visible and caught_player and caught_player.health > 0:
|
||||
caught_player.go_free.rpc_id(caught_player.get_multiplayer_authority())
|
||||
caught_player = null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue