-
Notifications
You must be signed in to change notification settings - Fork 20
/
help.qc
163 lines (151 loc) · 7.71 KB
/
help.qc
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
// CLASS HELP FOR CLASSIC FORTRESS
// ===============================
// Shows class bindings for each class.
// functions by order of appearance
void () Help_Show;
void () Help_ShowScout;
void () Help_ShowSniper;
void () Help_ShowSoldier;
void () Help_ShowDemoman;
void () Help_ShowMedic;
void () Help_ShowHWGuy;
void () Help_ShowPyro;
void () Help_ShowSpy;
void () Help_ShowEngineer;
// global variables
// <none>
// shows a list of key bindings and aliases for current class
// called from weapons.qc:ImpulseCommands()
void () Help_Show = {
if (self.playerclass == PC_SCOUT)
Help_ShowScout();
if (self.playerclass == PC_SNIPER)
Help_ShowSniper();
if (self.playerclass == PC_SOLDIER)
Help_ShowSoldier();
if (self.playerclass == PC_DEMOMAN)
Help_ShowDemoman();
if (self.playerclass == PC_MEDIC)
Help_ShowMedic();
if (self.playerclass == PC_HVYWEAP)
Help_ShowHWGuy();
if (self.playerclass == PC_PYRO)
Help_ShowPyro();
if (self.playerclass == PC_SPY)
Help_ShowSpy();
if (self.playerclass == PC_ENGINEER)
Help_ShowEngineer();
};
void () Help_ShowScout = {
sprint(self, PRINT_HIGH, "\nDefault bindings for Scout:\n");
sprint(self, PRINT_HIGH, "± - Equip Nailgun\n");
sprint(self, PRINT_HIGH, "² - Equip Shotgun\n");
sprint(self, PRINT_HIGH, "´ - Equip Axe\n");
sprint(self, PRINT_HIGH, "å - Toggle Scanner on/off\n");
sprint(self, PRINT_HIGH, "æ - Throw Caltrop Canisters\n");
sprint(self, PRINT_HIGH, "íïõóå² - Prime/throw Concussion Grenade\n");
sprint(self, PRINT_HIGH, "\nClass aliases for Scout:\n");
sprint(self, PRINT_HIGH, "áõôïóãáî - Toggle Scanner on/off\n");
sprint(self, PRINT_HIGH, "óãáîóïõîä - Toggle Scanner sound on/off\n");
sprint(self, PRINT_HIGH, "óãáîå - Toggle scanning of enemies on/off\n");
sprint(self, PRINT_HIGH, "óãáîæ - Toggle scanning of friendlies on/off\n");
};
void () Help_ShowSniper = {
sprint(self, PRINT_HIGH, "\nDefault bindings for Sniper:\n");
sprint(self, PRINT_HIGH, "± - Equip Sniper Rifle\n");
sprint(self, PRINT_HIGH, "² - Equip Sniper Rifle on Full Auto\n");
sprint(self, PRINT_HIGH, "³ - Equip Nailgun\n");
sprint(self, PRINT_HIGH, "´ - Equip Axe\n");
sprint(self, PRINT_HIGH, "å - Toggle zoom mode\n");
sprint(self, PRINT_HIGH, "í÷èååìõð - Zoom in (while in zoom mode)\n");
sprint(self, PRINT_HIGH, "í÷èååìäï÷î - Zoom out (while in zoom mode)\n");
sprint(self, PRINT_HIGH, "æ - Throw Flare\n");
sprint(self, PRINT_HIGH, "íïõóå² - Prime/throw Hand Grenade\n");
sprint(self, PRINT_HIGH, "\nClass aliases for Sniper:\n");
sprint(self, PRINT_HIGH, "úïïíôïççìå - Toggle zoom mode\n");
sprint(self, PRINT_HIGH, "úïïíéî - Zoom in (for adjusting zoom while in zoom mode)\n");
sprint(self, PRINT_HIGH, "úïïíïõô - Zoom out (for adjusting zoom while in zoom mode)\n");
sprint(self, PRINT_HIGH, "\nSettings for Sniper:\n");
sprint(self, PRINT_HIGH, "úæ ¼æïö¾ - The default zoom fov which zoomtoggle zooms to (default 30)\n");
sprint(self, PRINT_HIGH, "úó ¼æïö¾ - The fov increments/decrements used by zoomin/zoomout (default 20)\n");
sprint(self, PRINT_HIGH, "Usage: setinfo <setting> <value>\n");
};
void () Help_ShowSoldier = {
sprint(self, PRINT_HIGH, "\nDefault bindings for Soldier:\n");
sprint(self, PRINT_HIGH, "± - Equip Rocket Launcher\n");
sprint(self, PRINT_HIGH, "² - Equip Super Shotgun\n");
sprint(self, PRINT_HIGH, "³ - Equip Shotgun\n");
sprint(self, PRINT_HIGH, "´ - Equip Axe\n");
sprint(self, PRINT_HIGH, "æ - Prime/throw Nail Grenade\n");
sprint(self, PRINT_HIGH, "íïõóå² - Prime/throw Hand Grenade\n");
};
void () Help_ShowDemoman = {
sprint(self, PRINT_HIGH, "\nDefault bindings for Demolitions Man:\n");
sprint(self, PRINT_HIGH, "± - Equip Grenade Launcher\n");
sprint(self, PRINT_HIGH, "² - Equip Pipebomb Launcher\n");
sprint(self, PRINT_HIGH, "³ - Equip Shotgun\n");
sprint(self, PRINT_HIGH, "´ - Equip Axe\n");
sprint(self, PRINT_HIGH, "µ - Detpack menu\n");
sprint(self, PRINT_HIGH, "å - Detonate pipebombs\n");
sprint(self, PRINT_HIGH, "æ - Prime/throw Mirv Grenade\n");
sprint(self, PRINT_HIGH, "íïõóå² - Prime/throw Hand Grenade\n");
sprint(self, PRINT_HIGH, "\nClass aliases for Demolitions Man:\n");
sprint(self, PRINT_HIGH, "äåôðéðå - Detonate pipebombs\n");
sprint(self, PRINT_HIGH, "«äåôµ - Place detpack with 5 second timer\n");
sprint(self, PRINT_HIGH, "«äåô²° - Place detpack with 20 second timer\n");
sprint(self, PRINT_HIGH, "«äåôµ° - Place detpack with 50 second timer\n");
sprint(self, PRINT_HIGH, "«äåô²µµ - Place detpack with 255 second timer\n");
};
void () Help_ShowMedic = {
sprint(self, PRINT_HIGH, "\nDefault bindings for Combat Medic:\n");
sprint(self, PRINT_HIGH, "± - Equip Super Nailgun\n");
sprint(self, PRINT_HIGH, "² - Equip Super Shotgun\n");
sprint(self, PRINT_HIGH, "³ - Equip Shotgun\n");
sprint(self, PRINT_HIGH, "´ - Equip Medikit\n");
sprint(self, PRINT_HIGH, "æ - Prime/throw Concussion Grenade\n");
sprint(self, PRINT_HIGH, "íïõóå² - Prime/throw Hand Grenade\n");
};
void () Help_ShowHWGuy = {
sprint(self, PRINT_HIGH, "\nDefault bindings for Heavy Weapons Guy:\n");
sprint(self, PRINT_HIGH, "± - Equip Assault Cannon\n");
sprint(self, PRINT_HIGH, "² - Equip Super Shotgun\n");
sprint(self, PRINT_HIGH, "³ - Equip Shotgun\n");
sprint(self, PRINT_HIGH, "´ - Equip Axe\n");
sprint(self, PRINT_HIGH, "æ - Prime/throw Mirv Grenade\n");
sprint(self, PRINT_HIGH, "íïõóå² - Prime/throw Hand Grenade\n");
};
void () Help_ShowPyro = {
sprint(self, PRINT_HIGH, "\nDefault bindings for Pyro:\n");
sprint(self, PRINT_HIGH, "± - Equip Flamethrower\n");
sprint(self, PRINT_HIGH, "² - Equip Incendiary Cannon\n");
sprint(self, PRINT_HIGH, "³ - Equip Shotgun\n");
sprint(self, PRINT_HIGH, "´ - Equip Axe\n");
sprint(self, PRINT_HIGH, "æ - Prime/throw Napalm Grenade\n");
sprint(self, PRINT_HIGH, "íïõóå² - Prime/throw Hand Grenade\n");
};
void () Help_ShowSpy = {
sprint(self, PRINT_HIGH, "\nDefault bindings for Spy:\n");
sprint(self, PRINT_HIGH, "± - Equip Tranquiliser Gun\n");
sprint(self, PRINT_HIGH, "² - Equip Super Shotgun\n");
sprint(self, PRINT_HIGH, "³ - Equip Nailgun\n");
sprint(self, PRINT_HIGH, "´ - Equip Knife\n");
sprint(self, PRINT_HIGH, "µ - Disguise menu\n");
sprint(self, PRINT_HIGH, "å - Silently feign death\n");
sprint(self, PRINT_HIGH, "æ - Prime/throw Gas Grenade\n");
sprint(self, PRINT_HIGH, "íïõóå² - Prime/throw Hand Grenade\n");
sprint(self, PRINT_HIGH, "\nClass aliases for Spy:\n");
sprint(self, PRINT_HIGH, "æåéçî - Feign death\n");
sprint(self, PRINT_HIGH, "óæåéçî - Silently feign death\n");
};
void () Help_ShowEngineer = {
sprint(self, PRINT_HIGH, "\nDefault bindings for Engineer:\n");
sprint(self, PRINT_HIGH, "± - Equip Railgun\n");
sprint(self, PRINT_HIGH, "² - Equip Super Shotgun\n");
sprint(self, PRINT_HIGH, "´ - Equip Spanner\n");
sprint(self, PRINT_HIGH, "µ - Build/destroy menu\n");
sprint(self, PRINT_HIGH, "æ - Prime/throw EMP Grenade\n");
sprint(self, PRINT_HIGH, "íïõóå² - Prime/throw Hand Grenade\n");
sprint(self, PRINT_HIGH, "\nClass aliases for Engineer:\n");
sprint(self, PRINT_HIGH, "äåôäéóðåîóåò - Detonate Dispenser\n");
sprint(self, PRINT_HIGH, "äåôóåîôòù - Detonate Sentry Gun\n");
};