#!/bin/csh -f
#Tag 0x00101C3
#Author: G. Helms
#Date:   12/6/94
#Updated: June 24 1996: Diana Starr (new directory paths)
#
# Misc:  This is a total and complete hack.  Its sole reason for 
# existance is to make life easier to first-time DOOM players, and
# especially those using the iconic interface.  There are complexities
# involved with the icons and the way paths are handled that I attempted
# to address here.  If you have questions about DOOM, you should look
# at the man page for sgixdoom, or read the README file in 
# /usr/demos/General_Demos/doom directory.

# If the user hasn't set DOOMWADDIR, assume this is their first
# time playing DOOM.  This means they don't know about ~home/.doomrc,
# they don't know about the sndserver stuff, and they don't know about
# registered WAD files.  So, set DOOMWADDIR to the commercial version,
# but leave them in their current directory so they can save games if
# they have write permission.
#
# Experienced users: DOOM only checks your current directory, ~home/.doomrc
# file, and DOOMWADDIR for the sndserver.  DOOM only saves games to your
# current directory, regardless of what DOOMWADDIR is set to.
# You can also explicitly list the path to sndserver in your 
#  ~home/.doomrc file by replacing "sndserver" with 
#  "/usr/demos/General_Demos/doom/sndserver" in order to pick up sounds.  
#


if ( $?DOOMWADDIR == 0 ) then
  setenv DOOMWADDIR /usr/demos/General_Demos/doom
endif

setenv HOME /tmp


# Now start up the REAL binary, and hand down any
# options that may be wanted ($*). If nothing
# specified, use size -2


cd /usr/demos/General_Demos/doom
/usr/demos/General_Demos/doom/sgixdoom -2 $* >& /dev/null
