Use CTF map for BZFlag
This commit is contained in:
parent
29d020e15d
commit
efb5627e54
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in New Issue