|
|
@ -25,7 +25,7 @@ wscollectionid="" |
|
|
|
|
|
|
|
## Custom Start Parameters |
|
|
|
# Default -disableluarefresh, disables lua autorefresh reducing server lag. Auto refresh only useful for developers. |
|
|
|
customparms="-disableluarefresh" |
|
|
|
customstartparameters="-disableluarefresh" |
|
|
|
|
|
|
|
## Game Server Login Token (GSLT): Optional |
|
|
|
# GSLT can be used for running a public server. |
|
|
@ -34,7 +34,7 @@ gslt="" |
|
|
|
|
|
|
|
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
|
|
|
fn_parms(){ |
|
|
|
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}" |
|
|
|
startparameters="-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}" |
|
|
|
} |
|
|
|
|
|
|
|
#### LinuxGSM Settings #### |
|
|
|