GameBanana shows no ads to members. Sign up now!
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

Spy disguise menu with team selection

A Config Script for Team Fortress 2 Classic

305 6 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
// Save this to menusystem.cfg
// and then add "exec menusystem" to your autoexec

// Simplified Menu System
// Credits given to https://www.reddit.com/user/noobquire/

// Reddit link: https://www.reddit.com/r/tf2/comments/6pyb0o/adding_sourcemodlike_menu_interface_to_your_binds/

// Github link: https://github.com/noobquire/sourcemenu

alias launchmenu        "lastpage; play_menulaunched"
alias exitmenu  "clear; developer 0; con_filter_enable 0; fixbinds; setlaunchkey; play_menuexit"
alias exitmenu_silent   "clear; developer 0; fixbinds; setlaunchkey"
alias launchvis "clear; contimes 400; con_notifytime 10000; developer 1; con_filter_enable 0"
alias btn       "play buttons/button24.wav"
alias play_menuloaded   "play buttons/combine_button1.wav"
alias play_menuexit     "play buttons/combine_button2.wav"
alias play_menulaunched "play buttons/blip.wav"
alias setlaunchkey      ""
alias fixbinds  ""
alias lastpage  ""

// end of menusystem.cfg

// Save this to menu_disguise_team.cfg
// save it to the cfg folder of your team fortress 2 classic install
// *Disguise aliases* //
alias dg_r_scout                "disguise 1 0"
alias dg_r_sniper               "disguise 2 0"
alias dg_r_soldier              "disguise 3 0"
alias dg_r_demoman              "disguise 4 0"
alias dg_r_medic                "disguise 5 0"
alias dg_r_heavy                "disguise 6 0"
alias dg_r_pyro                 "disguise 7 0"
alias dg_r_spy                  "disguise 8 0"
alias dg_r_engineer             "disguise 9 0"
alias dg_b_scout                "disguise 1 1"
alias dg_b_sniper               "disguise 2 1"
alias dg_b_soldier              "disguise 3 1"
alias dg_b_demoman              "disguise 4 1"
alias dg_b_medic                "disguise 5 1"
alias dg_b_heavy                "disguise 6 1"
alias dg_b_pyro                 "disguise 7 1"
alias dg_b_spy                  "disguise 8 1"
alias dg_b_engineer             "disguise 9 1"
alias dg_g_scout                "disguise 1 2"
alias dg_g_sniper               "disguise 2 2"
alias dg_g_soldier              "disguise 3 2"
alias dg_g_demoman              "disguise 4 2"
alias dg_g_medic                "disguise 5 2"
alias dg_g_heavy                "disguise 6 2"
alias dg_g_pyro                 "disguise 7 2"
alias dg_g_spy                  "disguise 8 2"
alias dg_g_engineer             "disguise 9 2"
alias dg_y_scout                "disguise 1 3"
alias dg_y_sniper               "disguise 2 3"
alias dg_y_soldier              "disguise 3 3"
alias dg_y_demoman              "disguise 4 3"
alias dg_y_medic                "disguise 5 3"
alias dg_y_heavy                "disguise 6 3"
alias dg_y_pyro                 "disguise 7 3"
alias dg_y_spy                  "disguise 8 3"
alias dg_y_engineer             "disguise 9 3"


// Setup Team and class logic
alias dt_red                    "alias d_scout dg_r_scout; alias d_spy dg_r_spy; alias d_medic dg_r_medic; alias d_engi dg_r_engineer; alias d_sniper dg_r_sniper"
alias dt_green                  "alias d_scout dg_g_scout; alias d_spy dg_g_spy; alias d_medic dg_g_medic; alias d_engi dg_g_engineer; alias d_sniper dg_g_sniper"
alias dt_yellow                 "alias d_scout dg_y_scout; alias d_spy dg_y_spy; alias d_medic dg_y_medic; alias d_engi dg_y_engineer; alias d_sniper dg_y_sniper"
alias dt_blue                   "alias d_scout dg_b_scout; alias d_spy dg_b_spy; alias d_medic dg_b_medic; alias d_engi dg_b_engineer; alias d_sniper dg_b_sniper"


// Menu to pick team color for disguise
// option functions
alias "op1"                             "dt_red; btn; exec menu_disguise_class"
alias "op2"                             "dt_green; btn; exec menu_disguise_class"
alias "op3"                             "dt_yellow; btn; exec menu_disguise_class"
alias "op4"                             "dt_blue; btn; exec menu_disguise_class"
alias "op0"                             "exitmenu" // execute previous page in tree


launchvis
bind b                                  exitmenu
bind 1                                  op1
bind 2                                  op2
bind 3                                  op3
bind 4                                  op4
alias lastpage                  "exec menu_disguise_team" // execute current page


echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ____________________________
echo ""
echo Disguise As Team:
echo ____________________________
echo ""
echo [1] - Red
echo [2] - Green
echo [3] - Yellow
echo [4] - Blue
echo [b] - Exit
echo ____________________________
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""

// end of menu_disguise_team.cfg

// Save this to menu_disguise_class.cfg
// save it to the cfg folder of your team fortress 2 classic install
// Menu to pick class for disguise
// option functions
alias "op1" "d_scout; btn; exitmenu"
alias "op2" "d_spy; btn; exitmenu"
alias "op3" "d_medic; btn; exitmenu"
alias "op4" "d_engi; btn; exitmenu"
alias "op5" "d_sniper; btn; exitmenu"
alias "op0" "exec menu_disguise_team" // execute previous page in tree

launchvis
bind b op0
bind 1 op1
bind 2 op2
bind 3 op3
bind 4 op4
bind 5 op5
alias lastpage "exec menu_disguise_class" // execute current page

echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ____________________________
echo ""
echo Disguise As Class:
echo ____________________________
echo ""
echo [1] - Disguise as Scout
echo [2] - Disguise as Spy
echo [3] - Disguise as Medic
echo [4] - Disguise as Engi
echo [5] - Disguise as Sniper
echo [b] - Back
echo ____________________________
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""

// end of menu_disguise_class.cfg

// Save this to Spy.cfg in your cfg folder
// make sure to change things to how you like them
alias firstmenupage                             "exec menu_disguise_team"
alias fixbinds1                                 "slot1"
alias fixbinds2                                 "slot2"
alias fixbinds3                                 "slot3"
alias fixbinds4                                 "slot4"
alias setlaunchkey                              "bind b launchmenu"
alias lastpage                                  "firstmenupage"
alias fixbinds                                  "bind 1 fixbinds1; bind 2 fixbinds2; bind 3 fixbinds3; bind 4 fixbinds4; alias lastpage firstmenupage"
setlaunchkey

bind 1                                                  "slot1"
bind 2                                                  "slot2"
bind 3                                                  "slot3"
bind 4                                                  "slot4"

Updates

version working 17d
  • BugFix all of the bug fixes

Menu system that will allow easy team color choice and class choice in a few button clicks

The script has multiple parts:
  1. menusystem.cfg
  2. menu_disguise_team.cfg
  3. menu_disguise_class.cfg
  4. example spy.cfg

menusystem.cfg


This is a very simplified version of the menu system by noobquire.
It is entirely possible to build more elaborate menu's than the one I have built here.
check out the original here: 
Reddit link: https://www.reddit.com/r/tf2/comments/6pyb0o/adding_sourcemodlike_menu_interface_to_your_binds/

Github link: https://github.com/noobquire/sourcemenu

menu_disguise_team.cfg


This is the first menu page that you visit when you hit your custom disguise menu key (default b).
It will be used to select the Team color that you would like to disguise as.
1 Red
2 Green
3 Yellow
4 Blue

menu_disguise_class.cfg


This is the second page you visit in the menu, and it is used to choose your class. At the moment only five classes are available but with minimal effort you should be able to add more if you so choose. But the ones who are left out are the slower classes like heavy and soldier so you shouldn't need them too badly.

An example spy.cfg


you should implement the script how you want to but an example spy.cfg file is provided so you can see the things you will need to change to get the menu working.

Instructions


You should be able to follow the instructions in the provided script but to recap:
  1. Copy code between the "Save this to menusystem.cfg" and the "end of menusystem.cfg" comments and then paste that code in a new file called menusystem.cfg
  2. Save that file in the /cfg/ folder usually located in your steam path ("C:\Program Files (x86)\Steam\steamapps\") under the sourcemods/tf2classic folder
  3. Copy code between the "Save this to menu_disguise_team.cfg" and the "end of menu_disguise_team.cfg" comments and then paste that code in a new file called menu_disguise_team.cfg
  4. Save that file in the same cfg folder as earlier
  5. Copy code between the "Save this to menu_disguise_class.cfg" and the "end of menu_disguise_class.cfg" comments and then paste that code in a new file called menu_disguise_class.cfg
  6. Save that file in the same cfg folder as earlier
  7. copy the code after the "Save this to spy.cfg" comment
  8. Save it to spy.cfg in the same cfg folder as earlier
  9. Customise your spy.cfg folder how you want it
  10. Profit
Sign up to access this!

No comments yet

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
SumOfAllN00bs
SumOfAllN00bs Joined 3y ago
Offline
103 points Ranked 71,092nd
Scripter

Submitter

SumOfAllN00bs avatar
SumOfAllN00bs Joined 3y ago
Offline
103 points Ranked 71,092nd
SumOfAllN00bs
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 0
  • 232
  • 17d
  • 17d
  • 17d

More from Submitter

More Other/Misc Scripts