home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DeathMatch Manifesto
/
DEATHMATCH.ISO
/
walkthru
/
doom2
/
doomdemo.bat
< prev
next >
Wrap
DOS Batch File
|
1996-10-14
|
2KB
|
88 lines
@echo off
if "%1"=="" goto help
if "%1"=="0" goto sorry
if "%1"=="1" goto sorry
if "%1"=="2" goto sorry
if "%1"=="3" goto sorry
if "%1"=="4" goto sorry
if "%1"=="5" goto sorry
if "%1"=="6" goto sorry
if "%1"=="7" goto sorry
if "%1"=="8" goto sorry
if "%1"=="9" goto sorry
if "%1"=="00" goto noway
if "%1"=="33" goto noway
if "%1"=="34" goto noway
if "%1"=="35" goto noway
if "%1"=="36" goto noway
if "%1"=="37" goto noway
if "%1"=="38" goto noway
if "%1"=="39" goto noway
if "%1"=="40" goto noway
if "%1"=="41" goto noway
if "%1"=="42" goto noway
if "%1"=="43" goto noway
if "%1"=="44" goto noway
if "%1"=="45" goto noway
if "%1"=="46" goto noway
if "%1"=="47" goto noway
if "%1"=="48" goto noway
if "%1"=="49" goto noway
if "%1"=="50" goto noway
cls
echo Be sure to have this batch file and the appropriate demo file in your
echo DOOM II v1.9 directory or else it won't play back!
echo.
echo.
echo If you have problems running this demo contact:
echo Steffen Itterheim (aka Duke Addict) 100606.2141@compuserve.com
echo.
echo.
echo Now playing back DOOM2_%1.LMP, press any key to start...
pause>nul
cls
more < doom2_%1.txt
echo.
pause
cls
doom2.exe -playdemo doom2_%1
echo Finished Playback...
goto exit
:help
echo.
echo SYNTAX : DOOMDEMO.BAT [Level ##]
echo.
echo example: DOOMDEMO 08
echo this will run the demo from Map 8 (MAP08)
echo DOOMDEMO 23
echo this will run the demo from Map 23 (MAP23)
echo.
goto exit
:sorry
echo.
echo Error: the first (and only) parameter has only one digit!
echo If you want to play the demo from Level 8 use this syntax:
echo.
echo DOOMDEMO 08
echo note the leading 0 for levels between 1 and 9!
echo.
echo *****************************************************************************
goto help
:noway
echo.
echo Sorry, this level does not exist: MAP%1
echo.
goto exit
:exit