gzdoom_doom2_beautiful.sh 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/sh
  2. game=doom2
  3. game_dir="$HOME/games/doom"
  4. mod_files="$game_dir/mods/vanilla/pk_doom_sfx/pk_doom_sfx_20120224.wad \
  5. $game_dir/mods/vanilla/dimm_pal/doom-pal.wad \
  6. $game_dir/mods/zdoom/relighting/relighting_v4.0162b.pk3 \
  7. $game_dir/mods/zdoom/beautiful_doom/beautiful_doom_716.pk3 \
  8. $game_dir/mods/zdoom/bullet_time_x/bullet-time-x_1.3.1.pk3"
  9. # $game_dir/mods/zdoom/slomobullettime_ultimate/slomobullettime_ultimate_r3.1c.pk3
  10. pwad_file=$(find "${game_dir}"/wads/${game}/vanilla/*/*.wad \
  11. "$game_dir"/wads/${game}/nolimit/*/*.wad \
  12. "$game_dir"/wads/${game}/boom/*/*.wad \
  13. "$game_dir"/wads/${game}/zdoom/*/*.wad \
  14. "$game_dir"/wads/${game}/zdoom/*/*.pk3 \
  15. -ls | sort -rn | awk '{print $11}' | shuf -n 1)
  16. set -x
  17. if [ -d /usr/share/gzdoom/ ]; then cd /usr/share/gzdoom/ || return; fi
  18. if [ -d /usr/local/share/games/doom/ ]; then cd /usr/local/share/games/doom/ || return; fi
  19. eval gzdoom -config "$game_dir"/config/zdoom/config_zdoom.ini \
  20. -width 1920 -height 1080 \
  21. -fullscreen \
  22. -iwad "$game_dir"/wads/iwads/${game}.wad \
  23. -file "$pwad_file" "$mod_files" \
  24. -savedir "$game_dir"/savegames/${game}/ \
  25. -skill 3 \
  26. -warp 1 \
  27. > /tmp/gzdoom.log
  28. set +x