A team game with an emphasis on movement (with no shooting), inspired by Overwatch and Zineth
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
390 B

  1. extends Node
  2. func get_master_player():
  3. var path = "/root/Level/Players/%d" % get_tree().get_network_unique_id()
  4. if has_node(path):
  5. return get_node(path)
  6. else:
  7. return null
  8. func is_friendly(player):
  9. var mp = get_master_player()
  10. if mp:
  11. return player.player_info.is_right_team == get_master_player().player_info.is_right_team
  12. else:
  13. return true # Doesn't matter, we're headless