Advertisement
Tom_Neverwinter

Hawken Server

Apr 17th, 2023 (edited)
826
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.28 KB | None | 0 0
  1. @echo off
  2. setlocal enabledelayedexpansion
  3.  
  4. :menu
  5. cls
  6. echo.
  7. echo Select a map:
  8. echo 1. Alleys_DM
  9. echo 2. Andromeda_DM
  10. echo 3. Andromeda_Siege
  11. echo 4. Sahara_DM_E3
  12. set /p mapChoice=Enter the map number:
  13.  
  14. if "%mapChoice%"=="1" set map=Alleys_DM
  15. if "%mapChoice%"=="2" set map=Andromeda_DM
  16. if "%mapChoice%"=="3" set map=Andromeda_Siege
  17. if "%mapChoice%"=="4" set map=Sahara_DM_E3
  18.  
  19. echo.
  20. set /p numPlayers=Enter the number of players (1-32):
  21.  
  22. echo.
  23. set /p goalScore=Enter the goal score:
  24.  
  25. echo.
  26. set /p timeLimit=Enter the time limit (in minutes):
  27.  
  28. echo.
  29. echo Select a game mode:
  30. echo 1. Team Deathmatch
  31. echo 2. Deathmatch
  32. set /p gameMode=Enter the game mode number:
  33.  
  34. if "%gameMode%"=="1" set game=Robots.R_TeamDeathmatch
  35. if "%gameMode%"=="2" set game=Robots.R_Deathmatch
  36.  
  37. echo.
  38. echo LAN match settings:
  39. echo 1. Enable LAN match
  40. echo 2. Disable LAN match
  41. set /p lanMatch=Enter LAN match setting number:
  42.  
  43. if "%lanMatch%"=="1" set bIsLanMatch=True
  44. if "%lanMatch%"=="2" set bIsLanMatch=False
  45.  
  46. :start_server
  47. echo Starting Hawken server with the selected options...
  48. start HawkenGame-Win32-Shipping.exe Server %map%?NumPublicConnections=%numPlayers%?GoalScore=%goalScore%?TimeLimit=%timeLimit%?bIsLanMatch=%bIsLanMatch%?game=%game% -log
  49. echo Server started.
  50. pause
  51.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement