Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
add todos
Browse files Browse the repository at this point in the history
  • Loading branch information
TimShaw1 committed Jul 1, 2023
1 parent da8acaa commit 5482646
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,13 @@ def is_player_imposter(player : str) -> bool:
return player in get_fellow_imposters()
return False

# TODO: incomplete
cam_areas = {"SHIP" : (-12.7455, -3.397), "PB" : (3.1181712, -12.96315)}
def are_cams_used() -> bool:
data = getGameData()
nearbyPlayers = data["nearbyPlayers"]
for player in nearbyPlayers.keys():
# TODO: Position is hard coded to skeld for now
if dist(nearbyPlayers[player], (-12.7455, -3.397)) < 0.5:
if dist(nearbyPlayers[player], cam_areas[data["map_id"].upper()]) < 0.5:
return True
return False

Expand Down

0 comments on commit 5482646

Please sign in to comment.