1234567891011121314151617181920212223242526272829303132 |
- #!/bin/sh
- game=doom2
- game_dir="$HOME/games/doom"
- mod_files="$game_dir/mods/vanilla/pk_doom_sfx/pk_doom_sfx_20120224.wad \
- $game_dir/mods/vanilla/dimm_pal/doom-pal.wad \
- $game_dir/mods/zdoom/relighting/relighting_v4.0162b.pk3 \
- $game_dir/mods/zdoom/beautiful_doom/beautiful_doom_716.pk3 \
- $game_dir/mods/zdoom/bullet_time_x/bullet-time-x_1.3.1.pk3"
- # $game_dir/mods/zdoom/slomobullettime_ultimate/slomobullettime_ultimate_r3.1c.pk3
- pwad_file=$(find "${game_dir}"/wads/${game}/vanilla/*/*.wad \
- "$game_dir"/wads/${game}/nolimit/*/*.wad \
- "$game_dir"/wads/${game}/boom/*/*.wad \
- "$game_dir"/wads/${game}/zdoom/*/*.wad \
- "$game_dir"/wads/${game}/zdoom/*/*.pk3 \
- -ls | sort -rn | awk '{print $11}' | shuf -n 1)
- set -x
- if [ -d /usr/share/gzdoom/ ]; then cd /usr/share/gzdoom/ || return; fi
- if [ -d /usr/local/share/games/doom/ ]; then cd /usr/local/share/games/doom/ || return; fi
- eval gzdoom -config "$game_dir"/config/zdoom/config_zdoom.ini \
- -width 1920 -height 1080 \
- -fullscreen \
- -iwad "$game_dir"/wads/iwads/${game}.wad \
- -file "$pwad_file" "$mod_files" \
- -savedir "$game_dir"/savegames/${game}/ \
- -skill 3 \
- -warp 1 \
- > /tmp/gzdoom.log
- set +x
|