Skip to content

Instantly share code, notes, and snippets.

@gbudny
Created January 22, 2024 10:06
Show Gist options
  • Save gbudny/08a9fa1302fd7efeb1b9503f8b8a5ede to your computer and use it in GitHub Desktop.
Save gbudny/08a9fa1302fd7efeb1b9503f8b8a5ede to your computer and use it in GitHub Desktop.
cheat codes
#!/bin/bash
echo "Select the game"
echo " 1) Medal of Honor: Allied Assault"
echo " 2) Medal of Honor: Allied Assault (cheat codes)"
echo " 3) Medal of Honor: Allied Assault - Spearhead"
echo " 4) Medal of Honor: Allied Assault - Spearhead (cheat codes)"
echo " 5) Medal of Honor: Allied Assault – Breakthrough"
echo " 6) Medal of Honor: Allied Assault – Breakthrough (cheat codes)"
read n
case $n in
1) echo "You chose Medal of Honor: Allied Assault"
cd Medal\ of\ Honor\ -\ Allied\ Assault\ War\ Chest/
./openmohaax86_64-dbg;;
2) echo "You chose Medal of Honor: Allied Assault (cheat codes)"
cd Medal\ of\ Honor\ -\ Allied\ Assault\ War\ Chest/
./openmohaax86_64-dbg +set developer 2 +set thereisnomonkey 1 +set cheats 1 +set ui_console 1c;;
3) echo "You chose Medal of Honor: Allied Assault - Spearhead"
cd Medal\ of\ Honor\ -\ Allied\ Assault\ War\ Chest/
./openmohaax86_64-dbg +set com_target_game 1;;
4) echo "You chose Medal of Honor: Allied Assault - Spearhead (cheat codes)"
cd Medal\ of\ Honor\ -\ Allied\ Assault\ War\ Chest/
./openmohaax86_64-dbg +set com_target_game 1 +set developer 2 +set thereisnomonkey 1 +set cheats 1 +set ui_console 1c;;
5) echo "You chose Medal of Honor: Allied Assault – Breakthrough"
cd Medal\ of\ Honor\ -\ Allied\ Assault\ War\ Chest/
./openmohaax86_64-dbg +set com_target_game 2;;
6) echo "You chose Medal of Honor: Allied Assault – Breakthrough (cheat codes)"
cd Medal\ of\ Honor\ -\ Allied\ Assault\ War\ Chest/
./openmohaax86_64-dbg +set com_target_game 2 +set developer 2 +set thereisnomonkey 1 +set cheats 1 +set ui_console 1c;;
*) echo "invalid option";;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment