summaryrefslogtreecommitdiff
path: root/games-fps/ut2003-bonuspack-epic/files/epic-installer
blob: a8c35aa0c751abb1367f6378672f7cd8869780d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash

if [[ -d $HOME/.ut2003/System ]] ; then
	cd "$HOME/.ut2003/System"
	echo "Editing UT2003.ini in $PWD"
	cat >> UT2003.ini <<EOT

[Xinterface.Tab_AudioSettings]
BonusPackInfo[1]=(PackageName="AnnouncerEvil.uax",Description="Evil")
BonusPackInfo[2]=(PackageName="AnnouncerFemale.uax",Description="Female")
BonusPackInfo[3]=(PackageName="AnnouncerSexy.uax",Description="Aroused")

EOT

	ed UT2003.ini >/dev/null 2>&1 <<EOT
/\[xInterface.ExtendedConsole\]
a
MusicManagerClassName=OGGPlayer.UT2OGGMenu
.
wq
EOT

	ed UT2003.ini >/dev/null 2>&1 <<EOT
$
?EditPackages?
a
EditPackages=BonusPack
EditPackages=SkaarjPack
EditPackages=SkaarjPack_rc
.
wq
EOT

	ed UT2003.ini >/dev/null 2>&1 <<EOT
$
?ServerPackages?
a
ServerPackages=BonusPack
ServerPackages=SkaarjPack
ServerPackages=SkaarjPack_rc
.
wq
EOT

	echo "Editing User.ini in $PWD"
	sed 's/^F11=.*$/F11=MusicMenu/g' < User.ini > User.ini~~
	mv User.ini~~ User.ini
fi