Commit 7cebdc3b authored by Jan Grewe's avatar Jan Grewe
Browse files

ffa

parent ed89afba
......@@ -10,7 +10,7 @@ echo "===== nQuakeSV Configuration ====="
echo "Setting server name: ${HOSTNAME}"
echo $hostname > ~/.nquakesv/hostname
/bin/sed -i "s/hostname .*/hostname ${HOSTNAME}/" ktx/port1.cfg
/bin/sed -i "s/.* k_motd1 .*/set k_motd1 \"${HOSTNAME}\"/" ktx/port1.cfg
/bin/sed -i "s/.*k_motd1 .*/set k_motd1 \"${HOSTNAME}\"/" ktx/port1.cfg
/bin/sed -i "s/hostname .*/hostname ${HOSTNAME}/" qtv/qtv.cfg
/bin/sed -i "s/set hostname .*/set hostname \"${HOSTNAME}\"/" qwfwd/qwfwd.cfg
......@@ -34,16 +34,14 @@ echo "Setting Qtv password: ${QTVPW}"
echo "Enabled FFA: ${FFA}"
/bin/sed -i "s/set k_matchless .*/set k_matchless ${FFA}/" ktx/port1.cfg
if [ ${FFA} == 1 ]; then
/bin/sed -i "s/set k_use_matchless_dir .*/set k_use_matchless_dir 0/" ktx/port1.cfg
/bin/sed -i "s/set k_defmode .*/set k_defmode ffa/" ktx/port1.cfg
/bin/sed -i "s/set k_mode .*/set k_mode 3/" ktx/port1.cfg
echo "samelevel 0" >> ktx/port1.cfg
echo 'set k_ml_0 "dm1"' >> ktx/port1.cfg
echo 'set k_ml_0 "dm2"' >> ktx/port1.cfg
echo 'set k_ml_0 "dm3"' >> ktx/port1.cfg
echo 'set k_ml_0 "dm4"' >> ktx/port1.cfg
echo 'set k_ml_0 "dm5"' >> ktx/port1.cfg
echo 'set k_ml_0 "dm6"' >> ktx/port1.cfg
/bin/sed -i "s/set k_use_matchless_dir .*/set k_use_matchless_dir 1/" ktx/port1.cfg
/bin/sed -i "s/set k_ml_.*//" ktx/configs/usermodes/matchless/default.cfg
echo 'set k_ml_0 "dm1"' >> ktx/configs/usermodes/matchless/default.cfg
#echo 'set k_ml_0 "dm2"' >> ktx/configs/usermodes/matchless/default.cfg
echo 'set k_ml_0 "dm3"' >> ktx/configs/usermodes/matchless/default.cfg
echo 'set k_ml_0 "dm4"' >> ktx/configs/usermodes/matchless/default.cfg
echo 'set k_ml_0 "dm5"' >> ktx/configs/usermodes/matchless/default.cfg
echo 'set k_ml_0 "dm6"' >> ktx/configs/usermodes/matchless/default.cfg
fi
echo "=================================="
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment