2024-04-15 20:33:58 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2024-09-01 15:02:54 -04:00
|
|
|
# check for required pk3.
|
2024-12-23 12:52:14 -05:00
|
|
|
source ${BASH_SOURCE[0]%/*}/TobyCustom/.dependencies
|
2024-09-01 15:02:54 -04:00
|
|
|
check_dependencies "${gamePath}/Project_Brutality.pk3" \
|
|
|
|
"https://www.moddb.com/mods/project-brutality" \
|
|
|
|
"This should be included by default." \
|
|
|
|
'If you are seeing this message, please reinstall after removing any TobyDoom files from ~/.cache/linux-game-manager.' \
|
|
|
|
'rm -f ~/.cache/linux-game-manager/TobyAccessibilityMod_Version*'
|
|
|
|
|
2024-05-02 16:24:20 -04:00
|
|
|
# Set up the pk3 and wad files
|
2024-04-15 20:33:58 -04:00
|
|
|
gameOption=(
|
2024-07-31 17:48:58 -04:00
|
|
|
"${gamePath}/TobyAccMod_V${tobyVersion}.pk3"
|
2024-08-11 13:39:41 -04:00
|
|
|
"$gamePath/Addons/MENU/TobyV${tobyVersion%%-*}_"*
|
2024-08-28 14:51:26 -04:00
|
|
|
"$gamePath/Addons/DOOM/TobyV${tobyVersion%%-*}_Proximity.pk3"
|
2024-08-19 01:50:11 -04:00
|
|
|
"${gamePath}/PB-Toby-Compatibility-Addon.pk3"
|
|
|
|
"${gamePath}/Project_Brutality.pk3"
|
2024-04-15 20:33:58 -04:00
|
|
|
)
|
2024-05-02 16:24:20 -04:00
|
|
|
|
2024-04-15 20:33:58 -04:00
|
|
|
# Check for and include if present a wad. Some people may not have it.
|
2024-07-31 17:48:58 -04:00
|
|
|
if [[ -e "${gamePath}/DoomMetalVol7.wad" ]]; then
|
|
|
|
gameOption+=("${gamePath}/DoomMetalVol7.wad")
|
|
|
|
elif [[ -e "${gamePath}/DoomMetalVol6.wad" ]]; then
|
|
|
|
gameOption+=("${gamePath}/DoomMetalVol6.wad")
|
2024-04-15 20:33:58 -04:00
|
|
|
fi
|
2024-08-28 14:51:26 -04:00
|
|
|
|
2024-12-23 12:52:14 -05:00
|
|
|
source ${BASH_SOURCE[0]%/*}/TobyCustom/.mapmenu
|
2024-09-02 02:51:53 -04:00
|
|
|
flags=(
|
|
|
|
# Key bindings
|
|
|
|
'+bind Alt +altattack'
|
|
|
|
'+bind Ctrl +attack'
|
|
|
|
'+bind G +User1'
|
|
|
|
'+bind U unreloader'
|
|
|
|
# Variables
|
|
|
|
'+pb_exaggeratedrecoil false'
|
|
|
|
'+pb_weapon_recoil_mod_horizontal 0'
|
|
|
|
'+pb_weapon_recoil_mod_vertical 0'
|
|
|
|
'+vertspread true'
|
|
|
|
)
|