From 79a2d1e12d19dff39888a9cf8d5e36ff7580eab9 Mon Sep 17 00:00:00 2001 From: "Austin St. Aubin" Date: Mon, 20 Jan 2014 15:25:31 -0600 Subject: [PATCH] Added gamemode & gametype vars & parms Added gamemode & gametype to the varables group and defined it in the server parms. --- CounterStrikeGlobalOffensive/csgoserver | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/CounterStrikeGlobalOffensive/csgoserver b/CounterStrikeGlobalOffensive/csgoserver index 586650ea4..d915d1796 100644 --- a/CounterStrikeGlobalOffensive/csgoserver +++ b/CounterStrikeGlobalOffensive/csgoserver @@ -13,14 +13,23 @@ emailnotification="off" email="email@example.com" # Start Variables +# [Game Modes] game_mode game_type +# Classic Casual 0 0 +# Classic Competitive 0 1 +# Arms Race 1 0 +# Demolition 1 1 +gamemode="0" +gametype="0" defaultmap="de_dust" +mapgroup="random_classic" +maxplayers="16" port="27015" sourcetvport="27020" clientport="27005" -maxplayers="16" ip="0.0.0.0" # https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server -parms="-game csgo -usercon +map ${defaultmap} -strictportbind -ip ${ip} -port ${port} +tv_port ${sourcetvport} +clientport ${clientport} -maxplayers ${maxplayers}" +# Change the parameter "-maxplayers" to "-maxplayers_override" for force the max player limit +parms="-game csgo -usercon +map ${defaultmap} +mapgroup ${defaultmap} +game_mode ${gamemode} +game_type ${gametype} -strictportbind -ip ${ip} -port ${port} +tv_port ${sourcetvport} +clientport ${clientport} -maxplayers ${maxplayers}" #### Advanced Variables #### @@ -711,4 +720,4 @@ case "$1" in echo "Usage: $0 {start|stop|restart|update|monitor|email-test|details|backup|console|debug|install}" exit 1;; esac -exit \ No newline at end of file +exit