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.

26 lines
932 B

  1. extends Node
  2. # Semantic versioning, more or less
  3. # Major: Server cannot accept requests (i.e. new hero, or network protocol change)
  4. # Minor: Gameplay was significantly changed, but these can still technically play together (i.e. master-only scope added)
  5. # These are things a server admin might choose to reject if it was decided to be significant
  6. # Patch: Anything else: Bugfixes, UI changes, etc
  7. # Currently 0.0.0 which means API, gameplay, etc can change suddenly and frequently
  8. # Don't rely on it for anything
  9. # 1.0.0 will be the reddit release
  10. var version = "0.0.0"
  11. func get_master_player():
  12. var path = "/root/Level/Players/%d" % get_tree().get_network_unique_id()
  13. if has_node(path):
  14. return get_node(path)
  15. else:
  16. return null
  17. func is_friendly(player):
  18. var mp = get_master_player()
  19. if mp:
  20. return player.player_info.is_right_team == mp.player_info.is_right_team
  21. else:
  22. return true # Doesn't matter, we're headless