Use CTF map for BZFlag

This commit is contained in:
DeathByDenim 2023-09-17 15:25:14 -04:00
parent 29d020e15d
commit efb5627e54
Signed by: DeathByDenim
GPG Key ID: 89185F675E0AB7D5
1 changed files with 13 additions and 1 deletions

View File

@ -44,6 +44,17 @@ fi
rm -rf ${TMPDIR:-/tmp}/bzflag-build
# Maps
mkdir -p /opt/bzflag-${bzflag_version}/share/bzflag/worlds/
# Crossbar CTF from https://forums.bzflag.org/viewtopic.php?t=17621
# Licence: GPL by ahs3
curl --location 'https://forums.bzflag.org/download/file.php?id=14467' > /opt/bzflag-${bzflag_version}/share/bzflag/worlds/crossbar.bzw
# Tankgalore_2 from https://forums.bzflag.org/viewtopic.php?t=17099
# Licence: CC3.0 by Tanx
curl --location 'https://forums.bzflag.org/download/file.php?id=14109' > /opt/bzflag-${bzflag_version}/share/bzflag/worlds/Tankgalore_2.bzw
# Create SystemD unit
cat > /etc/systemd/system/bzflag.service <<EOF
[Unit]
@ -52,7 +63,8 @@ After=network.target
Requires=bzflag-monitor.service
[Service]
ExecStart=/usr/games/bzfs -ms 5 -j -t +r +f SW +f SB{2} +f GM +f ST{3} -d -d -d -passwd "${systempassword}"
#ExecStart=/usr/games/bzfs -ms 5 -j -t +r +f SW +f SB{2} +f GM +f ST{3} -d -d -d -passwd "${systempassword}"
ExecStart=/usr/games/bzfs -d -d -d -passwd "${systempassword}" -world /opt/bzflag-${bzflag_version}/share/bzflag/worlds/crossbar.bzw
Restart=on-failure
User=${systemuser}