diff --git a/lgsm/config-default/config-lgsm/csgoserver/_default.cfg b/lgsm/config-default/config-lgsm/csgoserver/_default.cfg index 2ed74049e..da4e8631c 100644 --- a/lgsm/config-default/config-lgsm/csgoserver/_default.cfg +++ b/lgsm/config-default/config-lgsm/csgoserver/_default.cfg @@ -20,15 +20,15 @@ # Wingman 0 2 # Danger Zone 6 0 mg_dz_blacksite (map: dz_blacksite), mg_dz_sirocco (map: dz_sirocco) gametype="0" -gamemode="0" +gamemode="1" mapgroup="mg_active" ip="0.0.0.0" port="27015" clientport="27005" sourcetvport="27020" defaultmap="de_mirage" -maxplayers="16" -tickrate="64" +maxplayers="10" +tickrate="128" ## Game Server Login Token (GSLT): Required # GSLT is required for running a public server. diff --git a/lgsm/functions/fix_csgo.sh b/lgsm/functions/fix_csgo.sh index 6b213d388..f36f675aa 100755 --- a/lgsm/functions/fix_csgo.sh +++ b/lgsm/functions/fix_csgo.sh @@ -30,3 +30,19 @@ if [ -f "${servercfgdir}/valve.rc" ] && grep -E '^\s*exec\s*(default|joystick)\. sed -i 's/^\s*exec\s*joystick.cfg/\/\/exec joystick.cfg/g' "${servercfgdir}/valve.rc" > /dev/null 2>&1 fn_fix_msg_end fi + +# Fixes: Hostname. +if [ -n "${hostname}" ]; then + fixname="hostname" + fn_fix_msg_start + sed -i "s/hostname \".*\"/hostname \"${hostname}\"/g" "${servercfgfullpath}" > /dev/null 2>&1 + fn_fix_msg_end +fi + +# Fixes: rcon password. +if [ -n $rcon_password ]; then + fixname="rcon_pass" + fn_fix_msg_start + sed -i "s/rcon_password \".*\"/rcon_password \"${rcon_password}\"/g" "${servercfgfullpath}" > /dev/null 2>&1 + fn_fix_msg_end +fi