From d02b6a83f08c4ce9a27a92c4b9da4815f583f657 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Thu, 18 Aug 2016 23:37:40 +0100 Subject: [PATCH] #1006 CS Source Requires now GSLT --- CounterStrikeSource/cssserver | 7 ++++++- lgsm/functions/install_gslt.sh | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CounterStrikeSource/cssserver b/CounterStrikeSource/cssserver index e6cb9b473..210c05f57 100644 --- a/CounterStrikeSource/cssserver +++ b/CounterStrikeSource/cssserver @@ -38,9 +38,14 @@ clientport="27005" ip="0.0.0.0" updateonstart="off" +# Required: Game Server Login Token +# GSLT is required for running a public server. +# More info: https://gameservermanagers.com/gslt +gslt="" + # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server fn_parms(){ -parms="-game cstrike -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" +parms="-game cstrike -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" } #### Advanced Variables #### diff --git a/lgsm/functions/install_gslt.sh b/lgsm/functions/install_gslt.sh index f0a706830..3bbe063e0 100644 --- a/lgsm/functions/install_gslt.sh +++ b/lgsm/functions/install_gslt.sh @@ -12,7 +12,7 @@ echo "" echo "Game Server Login Token" echo "=================================" sleep 1 -if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then +if [ "${gamename}" == "Counter Strike: Global Offensive" ]||[ "${gamename}" == "Counter Strike: Source" ]; then echo "GSLT is required to run a public ${gamename} server" fn_script_log_info "GSLT is required to run a public ${gamename} server" else