summaryrefslogtreecommitdiff
path: root/games/quakeserver/files/qserver.sh
diff options
context:
space:
mode:
authorJames FitzGibbon <jfitz@FreeBSD.org>1997-05-31 00:52:04 +0000
committerJames FitzGibbon <jfitz@FreeBSD.org>1997-05-31 00:52:04 +0000
commitaff58f9ad5135dd3dbf77120bbf97672293f5e27 (patch)
tree6ca8676498e3fcd27d89178aee2e176a0a170923 /games/quakeserver/files/qserver.sh
parentInstall doc files into ${LOCALBASE}/share/doc/pcb. (diff)
Upgrade (downgrade?) to v1.0.
Explanation: this port used to use the Linux quake client in server mode. It now uses the BSD/OS dedicated server binary, which has lower CPU and memory footprint, and has a different version numbering scheme.
Notes
Notes: svn path=/head/; revision=6651
Diffstat (limited to 'games/quakeserver/files/qserver.sh')
-rw-r--r--games/quakeserver/files/qserver.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/games/quakeserver/files/qserver.sh b/games/quakeserver/files/qserver.sh
new file mode 100644
index 000000000000..9be253421add
--- /dev/null
+++ b/games/quakeserver/files/qserver.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+#
+# $Id$
+#
+
+QSERVER=%%PREFIX%%/quakeserver/unixded
+QPIPE=%%PREFIX%%/quakeserver/quakeserver.in
+LOG=%%PREFIX%%/quakeserver/quakeserver.log
+
+cd %%PREFIX%%/quakeserver
+
+# This runs the standard quakeserver game, suitable for LAN play
+QARGS=
+
+# A few other ideas/options:
+
+# To run a game better suited for modem play:
+#$QARGS= +sys_ticrate 0.1
+
+# To run a registered game (assuming that you've put the registered *.pak
+# files into %%PREFIX%%/quakeserver/reg/
+#$QARGS= -game reg
+
+# To force the server to bind to just one IP address (to run multiple
+# servers on the same machine)
+#$QARGS= -ip x.x.x.x
+
+# For more ideas, look at %%PREFIX%%/quakeserver/readme.unixded as well as
+# the documentation that comes with Quake.
+
+# This actually runs the server
+$QSERVER $QARGS < $QPIPE >> $LOG &
+
+# Put commands you want to stuff into the console here, each being
+# redirected into %%PREFIX%%/quakeserver/quakeserver.in
+echo "map e1m1" > $QPIPE
+
+#
+# EOF