T.BAT 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. @REM Hexen startup batch file
  2. @echo off
  3. echo :
  4. call castoff
  5. echo :
  6. if "%1x"=="x" goto badargs
  7. set hticargs=-devmaps dev.txt -warp %1
  8. set hticwads=-file
  9. set hticnplay=
  10. :parseloop
  11. if "%2x"=="x" goto doneparse
  12. if "%2"=="m" goto nomonsters
  13. if "%2"=="M" goto nomonsters
  14. if "%2"=="s1" goto skill1
  15. if "%2"=="S1" goto skill1
  16. if "%2"=="s2" goto skill2
  17. if "%2"=="S2" goto skill2
  18. if "%2"=="s3" goto skill3
  19. if "%2"=="S3" goto skill3
  20. if "%2"=="s4" goto skill4
  21. if "%2"=="S4" goto skill4
  22. if "%2"=="s5" goto skill5
  23. if "%2"=="S5" goto skill5
  24. if "%2"=="n1" goto nplay1
  25. if "%2"=="N1" goto nplay1
  26. if "%2"=="n2" goto nplay2
  27. if "%2"=="N2" goto nplay2
  28. if "%2"=="n3" goto nplay3
  29. if "%2"=="N3" goto nplay3
  30. if "%2"=="n4" goto nplay4
  31. if "%2"=="N4" goto nplay4
  32. if "%2"=="p" goto altport
  33. if "%2"=="P" goto altport
  34. if "%2"=="c0" goto class0
  35. if "%2"=="C0" goto class0
  36. if "%2"=="c1" goto class1
  37. if "%2"=="C1" goto class1
  38. if "%2"=="c2" goto class2
  39. if "%2"=="C2" goto class2
  40. if "%2"=="r" goto randclass
  41. if "%2"=="R" goto randclass
  42. goto addwad
  43. :nomonsters
  44. set hticargs=%hticargs% -nomonsters
  45. shift
  46. goto parseloop
  47. :skill1
  48. set hticargs=%hticargs% -skill 1
  49. shift
  50. goto parseloop
  51. :skill2
  52. set hticargs=%hticargs% -skill 2
  53. shift
  54. goto parseloop
  55. :skill3
  56. set hticargs=%hticargs% -skill 3
  57. shift
  58. goto parseloop
  59. :skill4
  60. set hticargs=%hticargs% -skill 4
  61. shift
  62. goto parseloop
  63. :skill5
  64. set hticargs=%hticargs% -skill 5
  65. shift
  66. goto parseloop
  67. :nplay1
  68. set hticnplay=1
  69. shift
  70. goto parseloop
  71. :nplay2
  72. set hticnplay=2
  73. shift
  74. goto parseloop
  75. :nplay3
  76. set hticnplay=3
  77. shift
  78. goto parseloop
  79. :nplay4
  80. set hticnplay=4
  81. shift
  82. goto parseloop
  83. :altport
  84. set hticargs=%hticargs% -port 2
  85. shift
  86. goto parseloop
  87. :class0
  88. set hticargs=%hticargs% -class 0
  89. shift
  90. goto parseloop
  91. :class1
  92. set hticargs=%hticargs% -class 1
  93. shift
  94. goto parseloop
  95. :class2
  96. set hticargs=%hticargs% -class 2
  97. shift
  98. goto parseloop
  99. :randclass
  100. set hticargs=%hticargs% -randclass
  101. shift
  102. goto parseloop
  103. :addwad
  104. set hticwads=%hticwads% %3.wad
  105. shift
  106. goto parseloop
  107. :badargs
  108. echo HEXEN STARTUP
  109. echo Usage: H map [s?] [m] [n?] [p] [wadfile [wadfile ...] ]
  110. echo.
  111. echo [s?] = skill (1-5)
  112. echo [m] = no monsters
  113. echo [n?] = net play (1-4)
  114. echo [p] = use alternate port setting
  115. echo [r] = random player class
  116. echo [wadfile] = add external wadfile (.WAD is implicit)
  117. echo.
  118. goto end
  119. :doneparse
  120. if "%hticwads%" == "-file" goto startgame
  121. set hticargs=%hticargs% %hticwads%
  122. :startgame
  123. if "%hticnplay%x" == "x" goto normalplay
  124. echo -nodes %hticnplay% -deathmatch %hticargs%
  125. hexipx -nodes %hticnplay% -deathmatch %hticargs%
  126. goto end
  127. :normalplay
  128. echo %hticargs%
  129. hexen %hticargs%
  130. goto end
  131. :end
  132. set hticargs=
  133. set hticwads=
  134. set hticnplay=
  135. echo :
  136. @call caston
  137. echo :