Skip to content

Commit

Permalink
Add U15.3 maps and commands (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
timraay authored Oct 16, 2024
1 parent 15202bd commit 2d6c289
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rcon/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,12 @@ def set_game_layout(self, objectives: Sequence[str]):
can_fail=False
)
return list(objectives)

def get_game_mode(self):
"""
Any of "IntenseWarfare", "OffensiveWarfare", or ???
"""
return self._str_request("get gamemode", can_fail=False)

if __name__ == "__main__":
from rcon.settings import SERVER_INFO
Expand Down
55 changes: 55 additions & 0 deletions rcon/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ def image_name(self) -> str:
game_mode=GameMode.OFFENSIVE,
attackers=Team.AXIS,
),
# PHL v1 (U15.2 and before)
Layer(
id="purpleheartlane_warfare",
map=MAPS["purpleheartlane"],
Expand All @@ -539,6 +540,48 @@ def image_name(self) -> str:
game_mode=GameMode.OFFENSIVE,
attackers=Team.AXIS,
),
# PHL v2 (U15.3 and after)
Layer(
id="PHL_L_1944_Warfare",
map=MAPS["purpleheartlane"],
game_mode=GameMode.WARFARE,
),
Layer(
id="PHL_L_1944_Warfare_Night",
map=MAPS["purpleheartlane"],
game_mode=GameMode.WARFARE,
environment=Environment.NIGHT,
),
Layer(
id="PHL_L_1944_OffensiveUS",
map=MAPS["purpleheartlane"],
game_mode=GameMode.OFFENSIVE,
attackers=Team.ALLIES,
),
Layer(
id="PHL_L_1944_OffensiveGER",
map=MAPS["purpleheartlane"],
game_mode=GameMode.OFFENSIVE,
attackers=Team.AXIS,
),
Layer(
id="PHL_S_1944_Rain_P_Skirmish",
map=MAPS["purpleheartlane"],
game_mode=GameMode.CONTROL,
environment=Environment.RAIN,
),
Layer(
id="PHL_S_1944_Morning_P_Skirmish",
map=MAPS["purpleheartlane"],
game_mode=GameMode.CONTROL,
environment=Environment.DAWN,
),
Layer(
id="PHL_S_1944_Night_P_Skirmish",
map=MAPS["purpleheartlane"],
game_mode=GameMode.CONTROL,
environment=Environment.NIGHT,
),
Layer(
id="carentan_warfare",
map=MAPS["carentan"],
Expand Down Expand Up @@ -626,6 +669,18 @@ def image_name(self) -> str:
game_mode=GameMode.OFFENSIVE,
attackers=Team.AXIS,
),
Layer(
id="HIL_S_1944_Day_P_Skirmish",
map=MAPS["hill400"],
game_mode=GameMode.CONTROL,
environment=Environment.DAY,
),
Layer(
id="HIL_S_1944_Dusk_P_Skirmish",
map=MAPS["hill400"],
game_mode=GameMode.CONTROL,
environment=Environment.DUSK,
),
Layer(
id="foy_warfare",
map=MAPS["foy"],
Expand Down

0 comments on commit 2d6c289

Please sign in to comment.