diff --git a/gmod/common.cfg b/gmod/common.cfg index dcf08f5..4630955 100644 --- a/gmod/common.cfg +++ b/gmod/common.cfg @@ -14,7 +14,7 @@ ip="$SERVER_IP" port="$SERVER_PORT" clientport="$SERVER_CLIENTPORT" sourcetvport="$SERVER_SOURCETVPORT" -defaultmap="gm_construct" +defaultmap="$SERVER_DEFAULT_MAP" maxplayers="$SERVER_MAX_PLAYERS" tickrate="$SERVER_TICKRATE" gamemode="$SERVER_GAMEMODE" @@ -35,8 +35,8 @@ gslt="$SERVER_LOGIN_TOKEN" ## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters fn_parms(){ -#shellcheck disable=SC2034,SC2154 -parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} -tickrate ${tickrate} +host_workshop_collection ${wscollectionid} -authkey ${wsapikey} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers} ${customparms}" + #shellcheck disable=SC2034,SC2154 + parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} -tickrate ${tickrate} +host_workshop_collection ${wscollectionid} -authkey ${wsapikey} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +sv_setsteamaccount ${gslt} +servercfgfile ${servercfg} -maxplayers ${maxplayers} +hostname '$servername' ${customparms}" } #### LinuxGSM Settings ####