SHARE
TWEET

doom_launcher (old)

PhysixCat Jun 10th, 2019 (edited) 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # This is my GZDoom launching script. Apologies in advance if it's terrible, I can't into bash.
  3.  
  4. # Non-default IWADs
  5. iwad_list=('doomu' 'tnt' 'plutonia' 'freedoom1' 'freedoom2' 'heretic' 'hexen' 'hexdd' 'chex3' 'square1' 'strife1')
  6. # Maps that require doomu
  7. doomu_list=('concerned.zip' 'crusades.zip' 'd1twidd.zip' 'd1twide4.zip' 'd1twidle.zip' 'deimos_e2m1.zip' 'double_impact.zip' 'e1m4b' 'e1m8b' 'hadron_e1.zip' 'hadron_e2.zip' 'indifference.zip' 'neith.zip' 'no_end_sight.zip' 'phobos_ar.zip' 'purgatory.zip' 'rekkr.zip' 'sigil' 'tech_e2m1.zip' 'ultimate_nmd.zip')
  8. # Maps that require plutonia
  9. plut_list=('plutonia_rcp.zip' 'plutonia2.zip')
  10.  
  11. # Ask user for desired map
  12. read -p 'Enter WAD to play (leave blank for DOOM 2): ' map
  13.  
  14. # Check if desired map is actually an IWAD. If it is, the corresponding IWAD is selected and the map variable is deleted to avoid redundancy
  15. if [[ " ${iwad_list[*]} " == *" $map "* ]]; then
  16.     iwad="$map"
  17.     unset map
  18. # Check if desired map needs doomu
  19. elif [[ " ${doomu_list[*]} " == *" $map "* ]]; then
  20.     iwad='doomu'
  21. # Check if desired map needs tnt
  22. elif [ "$map" == 'tnt_revilution.zip' ]; then
  23.     iwad='tnt'
  24. # Check if desired map needs plutonia
  25. elif [[ " ${plut_list[*]} " == *" $map "* ]]; then
  26.     iwad='plutonia'
  27. # Launch Doom 64 EX if doom64 is desired
  28. elif [ "$map" == 'doom64' ]; then
  29.     cd ~/Downloads/doom64ex_2.5_win32/ && WINEPREFIX=~/Vidya/Lutris/Wine/gog wine DOOM64.EXE && cd -
  30.     exit 0
  31. # Default to doom2 if none of the above apply
  32. else
  33.     iwad='doom2'
  34. fi
  35.  
  36. # Ask user for desired gameplay
  37. read -p 'Enter gameplay mod (smooth, babel, drifter, hideous - leave blank for stock): ' gameplay
  38.  
  39. # Load appropiate modlist for desired gameplay
  40. if [ "$gameplay" == 'smooth' ]; then
  41.     extra='smooth_lite.pk3 footsteps.pk3 fullscrn_huds.pk3 healthwarning.pk3 dmgdirov.pk3 targetspy.pk3 idclever.zip nashgore.pk3 cblood.pk3'
  42. elif [ "$gameplay" == 'babel' ]; then
  43.     extra='babel.pk3 footsteps.pk3 fullscrn_huds.pk3 allclear_hm.pk3 dmgdirov.pk3 nashgore.pk3 cblood.pk3'
  44. elif [ "$gameplay" == 'drifter' ]; then
  45.     extra='high_noon_drifter.pk3 healthwarning.pk3 dmgdirov.pk3 nashgore.pk3 cblood.pk3'
  46. elif [ "$gameplay" == 'hideous' ]; then
  47.     if [ "$iwad" == 'doomu' ]; then
  48.         extra='doom2'
  49.     fi
  50.     extra+=' hideous_destructor darkdoomz.zip ugly_as_sin.zip hd_balaclava.pk3 hd_nightvision.zip hd_title hd_suppressedsmg hd_insurgencysfx.pk3'
  51.     # If playing HD and DOTB simultaneously, autoapply patch
  52.     if [ "$map" == 'dotb.zip' ]; then
  53.         autopatch='hd_dotb_patch.pk3'
  54.     fi
  55. elif [ -n "$gameplay" ]; then
  56.     extra="$gameplay footsteps.pk3 healthwarning.pk3 nashgore.pk3 cblood.pk3"
  57. fi
  58.  
  59. # Ask user for final mods or cvars
  60. read -p 'Enter patches, additional cosmetic mods, or cvars (leave blank for none): ' patch
  61.  
  62. gzdoom -iwad $iwad -file $map $extra $autopatch $patch
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top