|
|
@ -2006,6 +2006,26 @@ fn_info_game_sf() { |
|
|
|
beaconport="${beaconport:-"0"}" |
|
|
|
} |
|
|
|
|
|
|
|
# Config Type: Parameters (with an ini) |
|
|
|
fn_info_game_sm() { |
|
|
|
servername="${servername:-"NOT SET"}" |
|
|
|
adminpassword="${adminpassword:-"NOT SET"}" |
|
|
|
serverpassword="${serverpassword:-"NOT SET"}" |
|
|
|
port="${port:-"0"}" |
|
|
|
queryport="${queryport:-"0"}" |
|
|
|
maxplayers="${maxplayers:-"0"}" |
|
|
|
# telnet config |
|
|
|
telnetenabled=true |
|
|
|
telnetport="${telnetport:-"0"}" |
|
|
|
# Telnet IP will be localhost if no password is set |
|
|
|
# check_ip will set the IP first. This will overwrite it. |
|
|
|
if [ -z "${telnetpass}" ]; then |
|
|
|
telnetip="127.0.0.1" |
|
|
|
fi |
|
|
|
telnetpass="${telnetpass:-"NOT SET"}" |
|
|
|
telnetport="${telnetport:-"0"}" |
|
|
|
} |
|
|
|
|
|
|
|
# Config Type: QuakeC |
|
|
|
# Comment: // or /* */ |
|
|
|
# Example: set sv_hostname "SERVERNAME" |
|
|
@ -2427,6 +2447,8 @@ elif [ "${shortname}" == "sdtd" ]; then |
|
|
|
fn_info_game_sdtd |
|
|
|
elif [ "${shortname}" == "sf" ]; then |
|
|
|
fn_info_game_sf |
|
|
|
elif [ "${shortname}" == "sm" ]; then |
|
|
|
fn_info_game_sm |
|
|
|
elif [ "${shortname}" == "sof2" ]; then |
|
|
|
fn_info_game_sof2 |
|
|
|
elif [ "${shortname}" == "sol" ]; then |
|
|
|