forked from interstellar_development/freeftf
Milestone 6 Beta 2
Reworked multiplayer, like a lot.
This commit is contained in:
parent
17ece77b7c
commit
9de67986dd
17 changed files with 309 additions and 89 deletions
|
|
@ -16,7 +16,8 @@ var living = true
|
|||
func _process(delta):
|
||||
if occupied:
|
||||
trapped_body.position = global_position
|
||||
if occupied and trapped_body.hp == 0:
|
||||
if occupied and trapped_body.hp == 0 and living:
|
||||
Game.died()
|
||||
living = false
|
||||
$dead.show()
|
||||
|
||||
|
|
@ -28,8 +29,10 @@ func _on_area_3d_body_entered(body):
|
|||
living = true
|
||||
body.lost_one()
|
||||
trapped_body.frozen()
|
||||
Game.freeze()
|
||||
elif !body.beast and occupied and living and body != trapped_body:
|
||||
trapped_body.unfreeze()
|
||||
Game.unfreeze()
|
||||
occupied = false
|
||||
trapped_body.position = $spawn.global_position
|
||||
trapped_body = null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue