Skip to content

Commit

Permalink
update regamedll: add -bots
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Apr 11, 2024
1 parent e3d00ad commit 3484bb9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ RUN if [ "${MOD}" = "valve" ] && [ "${#BugfixedHL_LINK}" -gt 0 ]; then \
fi

ARG ReGameDLL_VERSION
ARG ReGameDLL_Bots_URL="https://github.com/s1lentq/ReGameDLL_CS/blob/master/regamedll/extra/zBot/bot_profiles.zip?raw=true"
# Install ReGameDLL_CS
RUN if [ "${MOD}" = "cstrike" ] || [ "${MOD}" = "czero" ]; then \
releaseLink=$(GetGithubReleaseUrl "s1lentq/ReGameDLL_CS" ${ReGameDLL_VERSION}) \
&& curl -sSL $releaseLink | bsdtar -xf - --strip-components=2 bin/linux32/*; \
if [ "${MOD}" = "czero" ]; then \
mv cstrike czero ; \
else \
curl -sSL ${ReGameDLL_Bots_URL} | bsdtar -xf - cstrike/ ;\
fi \
fi

Expand All @@ -62,3 +65,6 @@ ARG BugfixedHL_LINK
RUN if [ "${MOD}" = "valve" ] && [ "${#BugfixedHL_LINK}" -gt 0 ]; then \
rm -rf libstdc++.so.6 libgcc_s.so.1 ; \
fi

# Set default command
CMD ["bash", "-c", "./hlds_run -game ${MOD} $([ '$MOD' = 'cstrike' ] && echo '-bots' || echo '') -bots +ip 0.0.0.0 -port 27016 +map $(grep -oE '^\\s*(\\w+)' ./${MOD}/mapcycle.txt | head -n 1 | xargs)"]

0 comments on commit 3484bb9

Please sign in to comment.