Fix map rotation for FTEQW

This commit is contained in:
DeathByDenim 2023-08-18 13:27:00 -04:00
parent 025210a4ba
commit 8d45195c10
Signed by: DeathByDenim
GPG Key ID: 89185F675E0AB7D5
1 changed files with 19 additions and 4 deletions

View File

@ -31,6 +31,9 @@ unzip -o -d /opt/fteqw /opt/fteqw/fteqw-sv_linux64.zip
rm /opt/fteqw/fteqw-sv_linux64.zip /opt/fteqw/readme.txt
git clone --depth=1 https://github.com/MissLavender-LQ/LibreQuake.git ${TMPDIR:-/tmp}/LibreQuake
if [ -d /opt/fteqw/lq1 ]; then
rm -rf /opt/fteqw/lq1
fi
mv ${TMPDIR:-/tmp}/LibreQuake/lq1 /opt/fteqw
rm -rf ${TMPDIR:-/tmp}/LibreQuake
@ -39,13 +42,13 @@ unzip -o -d /opt/fteqw /opt/fteqw/ftecc_linux64.zip fteqcc64
rm /opt/fteqw/ftecc_linux64.zip
mkdir -p ${TMPDIR:-/tmp}/progs
git clone --depth=1 https://github.com/shpuld/id1-quakec-cleaned.git ${TMPDIR:-/tmp}/progs/id1-quakec-cleaned
cd ${TMPDIR:-/tmp}/progs/id1-quakec-cleaned
git clone --depth=1 https://github.com/fte-team/fteqw.git ${TMPDIR:-/tmp}/progs/fteqw
cd ${TMPDIR:-/tmp}/progs/fteqw/quakec/basemod
/opt/fteqw/fteqcc64
cp qwprogs.dat /opt/fteqw/lq1
cd -
cp ${TMPDIR:-/tmp}/progs/progs.dat /opt/fteqw/lq1
# Configuration
# Configuration based on https://gist.github.com/kwadroke/fa978290d86a606de3875fa853d79334
cat > /opt/fteqw/lq1/autoexec.cfg <<EOF
sv_public "0"
sv_antilag "2"
@ -53,6 +56,18 @@ sv_nqplayerphysics "0"
maxclients "32"
sv_motd1 "Welcome to the onFOSS server!"
admin_password "${systempassword}"
timelimit "10"
deathmatch "1"
fraglimit "20"
map "lqdm2_a6"
serverinfo "lqdm2_a6" lqdm3_a3
serverinfo "lqdm3_a3" "lqdm4_a6"
serverinfo "lqdm4_a6" "lqdm6_a6"
serverinfo "lqdm6_a6" "lqdm9_a7"
serverinfo "lqdm9_a7" "lqdm10_a3"
serverinfo "lqdm10_a3" "lqdm13_a3"
serverinfo "lqdm13_a3" "lqdm14_a1"
serverinfo "lqdm14_a1" "lqdm2_a6"
EOF
# Create SystemD unit