Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

[Overhaul] In-game Music Player - A Config Script for Team Fortress 2

151 12 kb Raw Code
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
// In-game Music Player - Release Version 2.3.5
// Written by: Edward_shooter
// Download Link: https://gamebanana.com/scripts/10459


// Status
echo "in-game_music_player.cfg"
echo "Status: Active"
echo "Info: press [Keypad Enter] to Open/ Exit Menu"
echo "      press [Keypad 0-9] to Select Music"
echo " "


// Keys
bind KP_ENTER "MusicMenu_Toggle"   // Refresh the Script and Stop Music
bind KP_INS "Keypad_0"             // Keypad 0
bind KP_END "Keypad_1"             // Keypad 1
bind KP_DOWNARROW "Keypad_2"       // Keypad 2
bind KP_PGDN "Keypad_3"            // Keypad 3
bind KP_LEFTARROW "Keypad_4"       // Keypad 4
bind KP_5 "Keypad_5"               // Keypad 5
bind KP_RIGHTARROW "Keypad_6"      // Keypad 6
bind KP_HOME "Keypad_7"            // Keypad 7
bind KP_UPARROW "Keypad_8"         // Keypad 8
bind KP_PGUP "Keypad_9"            // Keypad 9


// Script
alias MusicMenu_Toggle "MusicMenu_Open"
alias MusicMenu_Open "play /ui/buttonclick.wav; alias Keypad_0 "MusicMenu_List0"; alias Keypad_1 "MusicMenu_List1"; alias Keypad_2 "MusicMenu_List2"; alias Keypad_3 "MusicMenu_List3"; alias Keypad_4 "MusicMenu_List4"; alias Keypad_5 "MusicMenu_List5"; alias Keypad_6 "MusicMenu_List6"; alias Keypad_7 "MusicMenu_List7"; alias Keypad_8 "MusicMenu_List8"; alias Keypad_9 "MusicMenu_List9"; alias MusicMenu_Toggle "MusicMenu_Exit""
alias MusicMenu_Exit "play /ui/panel_close.wav; MusicMenu_Clear"
alias MusicMenu_Clear "alias Keypad_0 ""; alias Keypad_1 ""; alias Keypad_2 ""; alias Keypad_3 ""; alias Keypad_4 "";  alias Keypad_5 ""; alias Keypad_6 ""; alias Keypad_7 ""; alias Keypad_8 ""; alias Keypad_9 ""; alias MusicMenu_Toggle "MusicMenu_Open""

MusicMenu_Clear

alias MusicMenu_List0 "play /ui/credits_updated.wav; alias Keypad_0 "MusicMenu_Track00"; alias Keypad_1 "MusicMenu_Track01"; alias Keypad_2 "MusicMenu_Track02"; alias Keypad_3 "MusicMenu_Track03"; alias Keypad_4 "MusicMenu_Track04"; alias Keypad_5 "MusicMenu_Track05"; alias Keypad_6 "MusicMenu_Track06"; alias Keypad_7 "MusicMenu_Track07"; alias Keypad_8 "MusicMenu_Track08"; alias Keypad_9 "MusicMenu_Track09""
alias MusicMenu_List1 "play /ui/credits_updated.wav; alias Keypad_0 "MusicMenu_Track10"; alias Keypad_1 "MusicMenu_Track11"; alias Keypad_2 "MusicMenu_Track12"; alias Keypad_3 "MusicMenu_Track13"; alias Keypad_4 "MusicMenu_Track14"; alias Keypad_5 "MusicMenu_Track15"; alias Keypad_6 "MusicMenu_Track16"; alias Keypad_7 "MusicMenu_Track17"; alias Keypad_8 "MusicMenu_Track18"; alias Keypad_9 "MusicMenu_Track19""
alias MusicMenu_List2 "play /ui/credits_updated.wav; alias Keypad_0 "MusicMenu_Track20"; alias Keypad_1 "MusicMenu_Track21"; alias Keypad_2 "MusicMenu_Track22"; alias Keypad_3 "MusicMenu_Track23"; alias Keypad_4 "MusicMenu_Track24"; alias Keypad_5 "MusicMenu_Track25"; alias Keypad_6 "MusicMenu_Track26"; alias Keypad_7 "MusicMenu_Track27"; alias Keypad_8 "MusicMenu_Track28"; alias Keypad_9 "MusicMenu_Track29""
alias MusicMenu_List3 "play /ui/credits_updated.wav; alias Keypad_0 "MusicMenu_Track30"; alias Keypad_1 "MusicMenu_Track31"; alias Keypad_2 "MusicMenu_Track32"; alias Keypad_3 "MusicMenu_Track33"; alias Keypad_4 "MusicMenu_Track34"; alias Keypad_5 "MusicMenu_Track35"; alias Keypad_6 "MusicMenu_Track36"; alias Keypad_7 "MusicMenu_Track37"; alias Keypad_8 "MusicMenu_Track38"; alias Keypad_9 "MusicMenu_Track39""
alias MusicMenu_List4 "play /ui/credits_updated.wav; alias Keypad_0 "MusicMenu_Track40"; alias Keypad_1 "MusicMenu_Track41"; alias Keypad_2 "MusicMenu_Track42"; alias Keypad_3 "MusicMenu_Track43"; alias Keypad_4 "MusicMenu_Track44"; alias Keypad_5 "MusicMenu_Track45"; alias Keypad_6 "MusicMenu_Track46"; alias Keypad_7 "MusicMenu_Track47"; alias Keypad_8 "MusicMenu_Track48"; alias Keypad_9 "MusicMenu_Track49""
alias MusicMenu_List5 "play /ui/credits_updated.wav; alias Keypad_0 "MusicMenu_Track50"; alias Keypad_1 "MusicMenu_Track51"; alias Keypad_2 "MusicMenu_Track52"; alias Keypad_3 "MusicMenu_Track53"; alias Keypad_4 "MusicMenu_Track54"; alias Keypad_5 "MusicMenu_Track55"; alias Keypad_6 "MusicMenu_Track56"; alias Keypad_7 "MusicMenu_Track57"; alias Keypad_8 "MusicMenu_Track58"; alias Keypad_9 "MusicMenu_Track59""
alias MusicMenu_List6 "play /items/halloween/cat01.wav; alias Keypad_0 "MusicMenu_Track60"; alias Keypad_1 "MusicMenu_Track61"; alias Keypad_2 "MusicMenu_Track62"; alias Keypad_3 "MusicMenu_Track63"; alias Keypad_4 "MusicMenu_Track64"; alias Keypad_5 "MusicMenu_Track65"; alias Keypad_6 "MusicMenu_Track66"; alias Keypad_7 "MusicMenu_Track67"; alias Keypad_8 "MusicMenu_Track68"; alias Keypad_9 "MusicMenu_Track69""
alias MusicMenu_List7 "play /ui/credits_updated.wav; alias Keypad_0 "MusicMenu_Track70"; alias Keypad_1 "MusicMenu_Track71"; alias Keypad_2 "MusicMenu_Track72"; alias Keypad_3 "MusicMenu_Track73"; alias Keypad_4 "MusicMenu_Track74"; alias Keypad_5 "MusicMenu_Track75"; alias Keypad_6 "MusicMenu_Track76"; alias Keypad_7 "MusicMenu_Track77"; alias Keypad_8 "MusicMenu_Track78"; alias Keypad_9 "MusicMenu_Track79""
alias MusicMenu_List8 "play /ui/credits_updated.wav; alias Keypad_0 "MusicMenu_Track80"; alias Keypad_1 "MusicMenu_Track81"; alias Keypad_2 "MusicMenu_Track82"; alias Keypad_3 "MusicMenu_Track83"; alias Keypad_4 "MusicMenu_Track84"; alias Keypad_5 "MusicMenu_Track85"; alias Keypad_6 "MusicMenu_Track86"; alias Keypad_7 "MusicMenu_Track87"; alias Keypad_8 "MusicMenu_Track88"; alias Keypad_9 "MusicMenu_Track89""
alias MusicMenu_List9 "play /ui/credits_updated.wav; alias Keypad_0 "MusicMenu_Track90"; alias Keypad_1 "MusicMenu_Track91"; alias Keypad_2 "MusicMenu_Track92"; alias Keypad_3 "MusicMenu_Track93"; alias Keypad_4 "MusicMenu_Track94"; alias Keypad_5 "MusicMenu_Track95"; alias Keypad_6 "MusicMenu_Track96"; alias Keypad_7 "MusicMenu_Track97"; alias Keypad_8 "MusicMenu_Track98"; alias Keypad_9 "MusicMenu_Track99""

alias MusicMenu_Track404 "MusicMenu_Clear; play /ui/tv_tune.wav"

alias MusicMenu_Track00 "MusicMenu_Clear; play /commentary/tf2-comment000.mp3"
alias MusicMenu_Track01 "MusicMenu_Clear; play /ui/gamestartup1.mp3"
alias MusicMenu_Track02 "MusicMenu_Clear; play /ui/gamestartup2.mp3"
alias MusicMenu_Track03 "MusicMenu_Clear; play /ui/gamestartup3.mp3"
alias MusicMenu_Track04 "MusicMenu_Clear; play /ui/gamestartup4.mp3"
alias MusicMenu_Track05 "MusicMenu_Clear; play /ui/gamestartup5.mp3"
alias MusicMenu_Track06 "MusicMenu_Clear; play /ui/gamestartup7.mp3"
alias MusicMenu_Track07 "MusicMenu_Clear; play /ui/gamestartup6.mp3"
alias MusicMenu_Track08 "MusicMenu_Clear; play /ui/gamestartup8.mp3"
alias MusicMenu_Track09 "MusicMenu_Clear; play /ui/gamestartup9.mp3"
alias MusicMenu_Track10 "MusicMenu_Clear; play /ui/gamestartup10.mp3"
alias MusicMenu_Track11 "MusicMenu_Clear; play /ui/holiday/gamestartup_halloween.mp3"
alias MusicMenu_Track12 "MusicMenu_Clear; play /ui/holiday/gamestartup_saxxy.mp3"
alias MusicMenu_Track13 "MusicMenu_Clear; play /ui/gamestartup11.mp3"
alias MusicMenu_Track14 "MusicMenu_Clear; play /ui/gamestartup12.mp3"
alias MusicMenu_Track15 "MusicMenu_Clear; play /ui/gamestartup13.mp3"
alias MusicMenu_Track16 "MusicMenu_Clear; play /ui/gamestartup14.mp3"
alias MusicMenu_Track17 "MusicMenu_Clear; play /ui/gamestartup15.mp3"
alias MusicMenu_Track18 "MusicMenu_Clear; play /ui/gamestartup16.mp3"
alias MusicMenu_Track19 "MusicMenu_Clear; play /ui/gamestartup17.mp3"
alias MusicMenu_Track20 "MusicMenu_Clear; play /ui/gamestartup18.mp3"
alias MusicMenu_Track21 "MusicMenu_Clear; play /ui/gamestartup19.mp3"
alias MusicMenu_Track22 "MusicMenu_Clear; play /ui/gamestartup20.mp3"
alias MusicMenu_Track23 "MusicMenu_Clear; play /ui/gamestartup21.mp3"
alias MusicMenu_Track24 "MusicMenu_Clear; play /ui/gamestartup22.mp3"
alias MusicMenu_Track25 "MusicMenu_Clear; play /ui/gamestartup23.mp3"
alias MusicMenu_Track26 "MusicMenu_Clear; play /ui/holiday/gamestartup_halloween1.mp3"
alias MusicMenu_Track27 "MusicMenu_Clear; play /ui/gamestartup24.mp3"
alias MusicMenu_Track28 "MusicMenu_Clear; play /ui/gamestartup25.mp3"
alias MusicMenu_Track29 "MusicMenu_Clear; play /ui/gamestartup26.mp3"
alias MusicMenu_Track30 "MusicMenu_Clear; play /ui/gamestartup27.mp3"
alias MusicMenu_Track31 "MusicMenu_Clear; play /ui/gamestartup28.mp3"
alias MusicMenu_Track32 "MusicMenu_Clear; play /ui/gamestartup29.mp3"
alias MusicMenu_Track33 "MusicMenu_Clear; play /ui/holiday/gamestartup_soldier.mp3"
alias MusicMenu_Track34 "MusicMenu_Track404"
alias MusicMenu_Track35 "MusicMenu_Track404"
alias MusicMenu_Track36 "MusicMenu_Track404"
alias MusicMenu_Track37 "MusicMenu_Track404"
alias MusicMenu_Track38 "MusicMenu_Track404"
alias MusicMenu_Track39 "MusicMenu_Track404"
alias MusicMenu_Track40 "MusicMenu_Track404"
alias MusicMenu_Track41 "MusicMenu_Clear; play /items/tf_music_upgrade_machine.wav"
alias MusicMenu_Track42 "MusicMenu_Clear; play /music/conga_sketch_167bpm_01-04.wav"
alias MusicMenu_Track43 "MusicMenu_Clear; play /music/fortress_reel.wav"
alias MusicMenu_Track44 "MusicMenu_Clear; play /music/bonus_round_30.wav"
alias MusicMenu_Track45 "MusicMenu_Clear; play /music/bump_in_the_night.wav"
alias MusicMenu_Track46 "MusicMenu_Clear; play /music/carousel_of_curses.wav"
alias MusicMenu_Track47 "MusicMenu_Clear; play /music/misfortune_teller.wav"
alias MusicMenu_Track48 "MusicMenu_Clear; play /music/cossack_sandvich.wav"
alias MusicMenu_Track49 "MusicMenu_Clear; play /music/mannrobics.wav"
alias MusicMenu_Track50 "MusicMenu_Track404"
alias MusicMenu_Track51 "MusicMenu_Clear; play /ui/cyoa_musicdrunkenpipebomb.mp3"
alias MusicMenu_Track52 "MusicMenu_Clear; play /ui/cyoa_musicfasterthanaspeedingbullet.mp3"
alias MusicMenu_Track53 "MusicMenu_Clear; play /ui/cyoa_musicintruderalert.mp3"
alias MusicMenu_Track54 "MusicMenu_Clear; play /ui/cyoa_musicmoregun.mp3"
alias MusicMenu_Track55 "MusicMenu_Clear; play /ui/cyoa_musicmoregun2.mp3"
alias MusicMenu_Track56 "MusicMenu_Clear; play /ui/cyoa_musicplayingwithdanger.mp3"
alias MusicMenu_Track57 "MusicMenu_Clear; play /ui/cyoa_musicrightbehindyou.mp3"
alias MusicMenu_Track58 "MusicMenu_Clear; play /ui/cyoa_musicteamfortress2.mp3"
alias MusicMenu_Track59 "MusicMenu_Clear; play /ui/cyoa_musicmedic.mp3"
alias MusicMenu_Track60 "MusicMenu_Track404"
alias MusicMenu_Track61 "MusicMenu_Track404"
alias MusicMenu_Track62 "MusicMenu_Track404"
alias MusicMenu_Track63 "MusicMenu_Track404"
alias MusicMenu_Track64 "MusicMenu_Track404"
alias MusicMenu_Track65 "MusicMenu_Track404"
alias MusicMenu_Track66 "MusicMenu_Error"
alias MusicMenu_Track67 "MusicMenu_Track404"
alias MusicMenu_Track68 "MusicMenu_Track404"
alias MusicMenu_Track69 "MusicMenu_Track404"
alias MusicMenu_Track70 "MusicMenu_Track404"
alias MusicMenu_Track71 "MusicMenu_Clear; play /misc/your_team_won.wav"
alias MusicMenu_Track72 "MusicMenu_Clear; play /misc/your_team_lost.wav"
alias MusicMenu_Track73 "MusicMenu_Clear; play /misc/your_team_suddendeath.wav"
alias MusicMenu_Track74 "MusicMenu_Clear; play /misc/your_team_stalemate.wav"
alias MusicMenu_Track75 "MusicMenu_Clear; play /misc/killstreak.wav"
alias MusicMenu_Track76 "MusicMenu_Track404"
alias MusicMenu_Track77 "MusicMenu_Track404"
alias MusicMenu_Track78 "MusicMenu_Track404"
alias MusicMenu_Track79 "MusicMenu_Track404"
alias MusicMenu_Track80 "MusicMenu_Track404"
alias MusicMenu_Track81 "MusicMenu_Track404"
alias MusicMenu_Track82 "MusicMenu_Track404"
alias MusicMenu_Track83 "MusicMenu_Track404"
alias MusicMenu_Track84 "MusicMenu_Track404"
alias MusicMenu_Track85 "MusicMenu_Track404"
alias MusicMenu_Track86 "MusicMenu_Track404"
alias MusicMenu_Track87 "MusicMenu_Track404"
alias MusicMenu_Track88 "MusicMenu_Track404"
alias MusicMenu_Track89 "MusicMenu_Track404"
alias MusicMenu_Track90 "MusicMenu_Track404"
alias MusicMenu_Track91 "MusicMenu_Track404"
alias MusicMenu_Track92 "MusicMenu_Track404"
alias MusicMenu_Track93 "MusicMenu_Track404"
alias MusicMenu_Track94 "MusicMenu_Track404"
alias MusicMenu_Track95 "MusicMenu_Track404"
alias MusicMenu_Track96 "MusicMenu_Track404"
alias MusicMenu_Track97 "MusicMenu_Track404"
alias MusicMenu_Track98 "MusicMenu_Track404"
alias MusicMenu_Track99 "MusicMenu_Track404"

alias MusicMenu_Error "play /items/halloween/banshee01.wav; alias Keypad_6 "MusicMenu_Track666""
alias MusicMenu_Track666 "MusicMenu_Clear; play /items/halloween/crazy02.wav"

Updates

Release Version 2.3 (.5) 8mo
  • - Fixed "bugs" caused by unused alias not bound to anything
  • - Added support for customization/ compatability
  • - Added sound effects to guide users
  • - Removed excessive comments (kept in description below)
  • - Improved naming of aliases (reserved prefix)
  • - Improved layout
  • - Improved syntax (missing double quotes)
  • - Allocated Track 81-99 for Custom Music
It's more user-friendly now! 
Release Version 2.2 1y Release Version 2.1 2y Release Version 2.0 2y

[TF2] Music Player Script

Description:

A "simple" script that allows you to play ALL TF2 Soundtrack/ Music while camping.

>> List of All Included Music <<

It can play other custom music too!


Default Controls: (customisable)

Keypad_Enter ----- Open Menu/ Stop Music
Keypad_0 ... Keypad_9 ----- Select Music

This script will play any music with 3 button presses:
e.g. Keypad_Enter + Keypad_0 + Keypad_3 ==> Play Track 03 ==> Rocket Jump Waltz


How To Install:

1. Download "in-game_music_player.cfg" from Google Drive OR
1. Copy the Raw Code from above and paste it in any text editor, then save as "in-game_music_player.cfg"
2. Put the .cfg file in "X:\Steam\steamapps\common\Team Fortress 2\tf\cfg"
3. Create/ Edit the "autoexec.cfg" file located in the same folder
4. Type "exec in-game_music_player.cfg" at the very bottom as a new separate line
5. Go to Team Fortress 2's launch option and type "-exec autoexec"


How To Customise:




Important Note:

- Only works while you are in a match.
- Requires additional set-up if other scripts also use the keypad.


Enjoy!

Todos

Record a YouTube tuorial? Low Priority
1-10 of 11
1
Pages
  • 1
  • 2
Go to page: