From c779e723863d9f5734df505dbdf5d40bbf03bc63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Garapich?= Date: Sat, 25 Sep 2021 15:48:14 +0200 Subject: [PATCH] feat(*): add tf2pickup.org connector plugin (#2) --- Dockerfile | 12 +++++++++++- server.cfg.template | 3 +++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c8bc9f6..717c85e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,17 @@ LABEL maintainer="garrappachc@gmail.com" # DM is conflicting with the ready up mode RUN rm $SERVER_DIR/tf/addons/sourcemod/plugins/soap_{tf2dm,tournament}.smx -RUN wget https://github.com/tf2pickup-pl/stadium-sm-plugin/raw/master/teams.smx -O $SERVER_DIR/tf/addons/sourcemod/plugins/teams.smx +RUN wget "https://forums.alliedmods.net/attachment.php?attachmentid=188744&d=1618607414" -O system2.zip \ + && unzip -o system2.zip -d "${SERVER_DIR}/tf/addons/sourcemod/" \ + && rm -f system2.zip \ + && wget "https://github.com/KyleSanderson/SteamWorks/releases/download/1.2.3c/package-lin.tgz" -O steamworks.tgz \ + && tar -xf steamworks.tgz --strip-components=1 -C "${SERVER_DIR}/tf/" \ + && rm -f steamworks.tgz \ + && wget "https://github.com/tf2pickup-org/connector/releases/download/0.0.1/connector.smx" -O $SERVER_DIR/tf/addons/sourcemod/plugins/connector.smx \ + && wget "https://github.com/tf2pickup-org/stadium-sm-plugin/raw/master/teams.smx" -O $SERVER_DIR/tf/addons/sourcemod/plugins/teams.smx ENV TEAM_SIZE=6 +ENV TF2PICKUPORG_API_ADDRESS= +ENV TF2PICKUPORG_API_KEY= + COPY server.cfg.template ${SERVER_DIR}/tf/cfg/server.cfg.template diff --git a/server.cfg.template b/server.cfg.template index 70a0560..c1ce118 100644 --- a/server.cfg.template +++ b/server.cfg.template @@ -40,3 +40,6 @@ mp_tournament_readymode_min 2 mp_tournament_readymode_team_size ${TEAM_SIZE} sm_concede_command_timeleft 15 + +sm_tf2pickuporg_api_address ${TF2PICKUPORG_API_ADDRESS} +sm_tf2pickuporg_api_key ${TF2PICKUPORG_API_KEY}