Add $RETRO_MODE option

main
Jerry Aldrich 6 years ago
parent 9927d5b760
commit c3181f1b7e
  1. 9
      README.md
  2. 9
      entrypoint.sh
  3. 3
      server.cfg

@ -2,4 +2,13 @@
Specify WAD with the WAD_URL env var Specify WAD with the WAD_URL env var
Enable retro mode by setting the RETRO_MODE env mode to "true". This does the
following:
- Disables jumping
- Disables mouse look
- Disables crouching
- Disables altering FOV
- Disables crosshairs
- Enables forced weapon switching on pickup
See WIP/ for other nearly finished attempts of other servers See WIP/ for other nearly finished attempts of other servers

@ -10,6 +10,15 @@ fi
BOT_COUNT=${BOT_COUNT:-0} BOT_COUNT=${BOT_COUNT:-0}
if [ -n "$RETRO_MODE" ]; then
echo "set Compat_OldWeaponSwitch true" >> /srv/server.cfg
echo "set SV_NoCrouch true" >> /srv/server.cfg
echo "set SV_NoCrosshair true" >> /srv/server.cfg
echo "set SV_NoFOV true" >> /srv/server.cfg
echo "set SV_NoFreelook true" >> /srv/server.cfg
echo "set SV_NoJump true" >> /srv/server.cfg
fi
if [ -n "$SV_HOSTNAME" ]; then if [ -n "$SV_HOSTNAME" ]; then
echo "set sv_hostname $SV_HOSTNAME" >> /srv/server.cfg echo "set sv_hostname $SV_HOSTNAME" >> /srv/server.cfg
fi fi

@ -1,8 +1,5 @@
// https://wiki.zandronum.com/Server_Variables // https://wiki.zandronum.com/Server_Variables
// Disable mouselook
set sv_nofreelook true
// Timestamp console messages // Timestamp console messages
set sv_timestamp true set sv_timestamp true

Loading…
Cancel
Save