0.1.0
Added a basic test map, options menu, bug fixes, and much more.
This commit is contained in:
parent
d72b5ac57b
commit
2dce012535
34 changed files with 1268 additions and 84 deletions
|
@ -1,4 +1,4 @@
|
|||
class_name Coffin
|
||||
class_name Coffin
|
||||
extends StaticBody3D
|
||||
|
||||
var caught_player: Player = null
|
||||
|
@ -12,9 +12,7 @@ func _on_dropoff(body: Node3D) -> void:
|
|||
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
|
||||
Multiplayer.players[caught_player.get_multiplayer_authority()].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