Files
illusion-arena/code/wrapper/ia-server.in

29 lines
921 B
Bash
Executable File

#!/bin/sh
# Initialization script for Illusion Arena
# This is the server part
CVARS="+set com_basegame baseia"
CVARS="$CVARS +set fs_basepath COPYDIR"
CVARS="$CVARS +set com_homepath .illusion"
# OA uses a different protocol number to reflect incompatible game content.
# When it says "71", that's actually the legacy Quake III Arena 1.32c protocol,
# protocol 68.
CVARS="$CVARS +set com_legacyprotocol 71"
# For the moment, disable the modern protocol, by setting this cvar to the
# same thing. When OA upstream decide what value they'll use, we should
# catch up.
CVARS="$CVARS +set com_protocol 71"
# OA's default master server is different
CVARS="$CVARS +set sv_master1 dpmaster.deathmask.net"
# update.quake3arena.com is pretty irrelevant if you're playing OA
CVARS="$CVARS +set cl_motd 0"
# Run the dedicated server configuration file
CVARS="$CVARS +exec server.cfg"
exec "$(which ioq3ded)" "${CVARS}" "$@"