add WorkshopDL support

This commit is contained in:
Lars Olzem
2020-06-06 18:42:20 +02:00
parent 0b7138e1f3
commit 2252753d07
2 changed files with 14 additions and 4 deletions

View File

@@ -16,8 +16,11 @@ ENV \
# http://steamcommunity.com/dev/managegameservers
GLST="" \
#
# Workshop (require API)
WORKSHOPCOLLECTIONID="" \
# Workshop server download (require API)
WORKSHOP="\${WORKSHOPCOLLECTIONID:-}" \
#
# Workshop client download (require API)
WORKSHOPDL="" \
#
# Server config
GAME="garrysmod" \
@@ -35,7 +38,7 @@ ENV \
-tickrate \${TICKRATE} \
-maxplayers \${MAXPLAYERS} \
-authkey \${AUTHKEY} \
+host_workshop_collection \${WORKSHOPCOLLECTIONID} \
+host_workshop_collection \${WORKSHOP} \
+gamemode \${GAMEMODE} \
+map \${MAP} \
+servercfgfile \${CONFIG} \