Browse Source

arma 3 improvements

pull/3428/head
Daniel Gibbs 4 years ago
parent
commit
b37062b096
  1. 4
      lgsm/functions/info_config.sh
  2. 18
      lgsm/functions/info_messages.sh
  3. 11
      lgsm/functions/info_parms.sh

4
lgsm/functions/info_config.sh

@ -731,7 +731,7 @@ fn_info_config_quakelive(){
fi
}
fn_info_config_realvirtuality(){
fn_info_config_arma3(){
if [ ! -f "${servercfgfullpath}" ]; then
servername="${unavailable}"
adminpassword="${unavailable}"
@ -1656,7 +1656,7 @@ elif [ "${shortname}" == "pc" ]; then
elif [ "${shortname}" == "pz" ]; then
fn_info_config_projectzomboid
elif [ "${shortname}" == "arma3" ]; then
fn_info_config_realvirtuality
fn_info_config_arma3
elif [ "${shortname}" == "rtcw" ]; then
fn_info_config_rtcw
elif [ "${shortname}" == "rw" ]; then

18
lgsm/functions/info_messages.sh

@ -1077,21 +1077,17 @@ fn_info_message_quakelive(){
}
fn_info_message_arma3(){
echo -e "netstat -atunp | grep arma3server"
echo -e " ss -tupl| grep ${executable}"
echo -e ""
# Default port
if [ -z "${port}" ]; then
port="2302"
fi
{
echo -e "${lightblue}DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL${default}"
echo -e "> Game\tINBOUND\t${port}\tudp"
# Don't do arithmetics if ever the port wasn't a numeric value
if [ "${port}" -eq "${port}" ]; then
echo -e "> Query Steam\tINBOUND\t$((port+1))\tudp"
echo -e "> Steam: Master traffic\tINBOUND\t$((port+2))\tudp"
echo -e "> Undocumented Port\tINBOUND\t$((port+3))\tudp"
fi
echo -e "> Voice\tINBOUND\t${voiceport}\tudp"
echo -e "> Query Steam\tINBOUND\t${queryport}\tudp"
echo -e "> Steam Master\tINBOUND\t${steammasterport}\tudp"
echo -e "> Voice (unused)\tINBOUND\t${voiceunusedport}\tudp"
echo -e "> BattleEye\tINBOUND\t${battleeyeport}\tudp"
} | column -s $'\t' -t
}

11
lgsm/functions/info_parms.sh

@ -122,9 +122,14 @@ fn_info_parms_quake2(){
defaultmap=${defaultmap:-"NOT SET"}
}
fn_info_parms_realvirtuality(){
port=${port:-"0"}
fn_info_parms_arma3(){
port=${port:-"2302"}
voiceport=${port:-"2302"}
queryport=$((port+1))
steammasterport=$((port+2))
voiceunusedport=$((port+3))
battleeyeport=$((port+4))
}
fn_info_parms_risingworld(){
@ -265,7 +270,7 @@ fn_info_parms_queryport(){
if [ "${shortname}" == "ark" ]; then
fn_info_parms_ark
elif [ "${shortname}" == "arma3" ]; then
fn_info_parms_realvirtuality
fn_info_parms_arma3
elif [ "${shortname}" == "bt" ]; then
fn_info_parms_barotrauma
elif [ "${shortname}" == "bt1944" ]; then

Loading…
Cancel
Save