dhewm_doom3-roe_vanilla.sh 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #!/bin/sh
  2. param_game_dir="$HOME/games/doom3"
  3. basegame=d3xp
  4. echo "INFO: iwad file: $basegame"
  5. map_file=$(unzip -l $param_game_dir/${basegame}/pak000.pk4 */game/*.map \
  6. | grep maps/game/ | grep -v maps/game/mp/ | shuf -n 1 | awk -F/ '{print $3}')
  7. echo "INFO: Map file: $map_file"
  8. #mod_files="$param_game_dir/mods/vanilla/pk_doom_sfx/pk_doom_sfx_20120224.wad $param_game_dir/mods/vanilla/dimm_pal/doom-pal.wad $param_game_dir/mods/vanilla/smoothed/smoothed.wad"
  9. set -x
  10. eval dhewm3 \
  11. +set r_fullscreen 1 \
  12. +set r_mode -1 \
  13. +set r_customWidth 1920 +set r_customHeight 1080 \
  14. +set fs_basepath $param_game_dir \
  15. +set fs_game $basegame \
  16. +set fs_game_base d3xp \
  17. +seta com_allowconsole 1 \
  18. +seta r_brightness 1 \
  19. +seta r_gamma 1 \
  20. +seta r_renderer "best" \
  21. +seta com_videoRam "1024" \
  22. +seta com_machineSpec "3" \
  23. +seta r_shadows "1" \
  24. +seta r_skipBump "0" \
  25. +seta r_skipSpecular "0" \
  26. +seta r_skipNewAmbient "0" \
  27. +seta image_anisotropy "8" \
  28. +seta image_lodbias "0" \
  29. +seta image_filter "GL_LINEAR_MIPMAP_LINEAR" \
  30. +seta image_ignoreHighQuality "0" \
  31. +seta image_roundDown "0" \
  32. +seta image_forceDownSize "0" \
  33. +seta image_downSize "0" \
  34. +seta image_downSizeBump "0" \
  35. +seta image_downSizeSpecular "0" \
  36. +seta image_useCache "0" \
  37. +seta image_usePrecompressedTextures "0" \
  38. +seta image_useNormalCompression "0" \
  39. +seta image_useCompression "0" \
  40. +seta image_useAllFormats "1" \
  41. +seta g_showBrass "1" \
  42. +seta g_decals "1" \
  43. +seta g_doubleVision "1" \
  44. +seta g_bloodEffects "1" \
  45. +seta g_projectileLights "1" \
  46. +seta g_muzzleFlash "1" \
  47. +vid_restart \
  48. +map $(echo game/$(basename -- ${map_file%.*})) \
  49. > /tmp/dhewm3.log
  50. set +x