|
|
@ -9,19 +9,15 @@ |
|
|
|
#### Game Server Settings #### |
|
|
|
|
|
|
|
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
|
|
|
ip="0.0.0.0" ##not used at the time |
|
|
|
ip="0.0.0.0" |
|
|
|
port="27015" |
|
|
|
clientport="27005" |
|
|
|
sourcetvport="27020" |
|
|
|
defaultmap="sf_astrodome" |
|
|
|
maxplayers="32" |
|
|
|
|
|
|
|
## Gather IP address for startup parameter |
|
|
|
IPADDR=$(ip addr show |grep 'inet '|grep -v 127.0.0.1 |awk '{print $2}'| cut -d/ -f1) |
|
|
|
|
|
|
|
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
|
|
|
startparameters="-game sfclassic -strictportbind -multihome=${IPADDR} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
|
|
|
|
|
|
startparameters="-game sfclassic -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}" |
|
|
|
|
|
|
|
#### LinuxGSM Settings #### |
|
|
|
|
|
|
|