if test /dev/photon -ef /dev/photon
then
   /usr/doom/pdoom $*
elif test /dev/X.0 -ef /dev/X.0
then
  /usr/doom/xdoom $*
elif
then
   /usr/doom/cdoom $*
fi
#ifdef __USAGE
#%C [options]*
#
#Options:
#-2                        Pixel double window for Photon or X.
#-3                        Pixel triple window for Photon or X.
#-4                        Pixel quadruple window for Photon or X.
#                          Note: The -shmem option is recommended for pixel
#                            doubled modes, but this option also disables
#                            dragging from screen to screen across the network.
#-config file              Use this config file instead of $HOME/default.cfg.
#-deathmatch               Set rules for a multiplayer deathmatch.
#-devparm                  Puts you in developers mode.
#-disp displayname         Use this display for X (default: current screen).
#-episode episode          Start at episode 1 to 3. Shareware only has 1.
#-fast                     Make the monsters fast as in nightmare mode.
#-file file.wad            Include an external wad file.
#-grabmouse                Grab the mouse in the X version.
#-loadgame slot            Load saved game from slot 1 to 6.
#-maxdemo size             Specifies the maximum size of a LMP recording.
#-midi                     Put music out to /dev/midi instead of /dev/fm.
#-midi devname             Put music out to devname. It can be on another node.
#-mqueue player# nid ...   Network multiplayer using POSIX Mqueue manager.
#-net player# host ...     Network multiplayer using TCP/IP Socket manager.
#-nomonsters               Don't create any monsters. Usefull for deathmatchs.
#-nomouse                 *Don't look for a mouse.
#-nomusic                 *Don't play music.
#-nosfx                   *Don't play sound effects.
#-nosound                 *Don't play music or sound effects.
#-novideo                 *Don't switch to graphics mode for console version.
#-playdemo                 Play the demo (default).
#-port                     Specify a different IP port (default: 5029).
#-record file              Makes a demo recording until you finish or die.
#-respawn                  Respawn all monsters 8 seconds after you kill them.
#-shmem                    Use shared memory with the Photon server
#-skill level              Set skill from 1 (baby) to 5 (nightmare).
#-stereo                   Attempt to generate stereo sound effects.
#-timedemo file           *Calculates the number of times the screen is
#                          redrawn when playing a demo
#-turbo scale              Run faster. Scale can be 10 to 400 percent.
#-warp episode level      *Warp to episode (1-3) level (1-9)
#
#
#To use most of these options, start DOOM by typing:
#"doom -devparm <parameter> <more parameters>".  If the "-devparm" parameter
#IS needed, the parameter will be marked with a star (*).  Most of these
#parameters can be mixed and matched to create different effects.  For
#instance, typing "doom -devparm -warp 1 8 -record demo01 -respawn" would
#record a demo on episode one, level eight, with monster respawn.  Lastly,
#typing F1 during development mode will allow a 256 color screen capture in
#PCX format.
#
#
#Some key codes:
#
#Spacebar or Escape: Bring up main menu
#F1: General help and DOOM info
#F2: Load saved game
#F3: Save game
#F4: Sound volume
#F5: Change detail level 
#F6: Quicksave
#F7: End game
#F8: Toggle messages on or off
#F9: Quickload
#F10: Quit game
#F11: Gamma correction (adjust background brightness)
#F12: Spy mode (in cooperative play only)
#Tab: Display automap, 0 for full or zoom view, +/-, M=mark, C=clear, F=follow
#+ and -: Change screen size (on console version)
#Up/down arrows: Walk forward or backward
#Left/right arrow: Turn left or right
#Left or right shift: Causes up/down arrows to become running speed
#Alt: Causes left/right arrows to become sidestep
#
#Use the numeric keys across the top of the keyboard to select a weapon:
#
#1 = Fist 
#2 = Pistol 
#3 = Shotgun
#4 = Chaingun
#5 = Rocket Launcher
#6 = Plasma Rifles
#7 = BFG 9000
#
#Ctrl: Fire weapon
#t: Talk to another player in multiplayer mode
#b: Talk to brown player
#i: Talk to indigo player
#g: Talk to green player
#r: Talk to red player
#
#MOUSE: If you are using a mouse, use button 1 to shoot and button 2 to walk 
#forward. Double-click button 2 to open doors and activate switches. With a 
#three-button mouse, use the third button to strafe. 
#
#
#Cheat Codes: (Type in from keyboard during game play. Most are toggles)
#
#iddqd           Degreelessness mode (God mode).
#idkfa           Very Happy Ammo (full ammo, 200% armor, all weapons).
#idspispopd      No clipping (you can walk through walls).
#idbehold        Displays menu (followed by S, V, I, R, A, or L for choice).
#idclev          Warp (followed by episode number and level number).
#idmypos         Displays your coordinates in hex.
#idchoppers      Gives you the chain saw (long story behind the message).
#iddt            Toggles Automap between normal, full, and full with objects.
#                (enter when looking at the Automap).
#endif
