]> icculus.org git repositories - divverent/nexuiz.git/blob - qcsrc/aliases.qc
Added more air control
[divverent/nexuiz.git] / qcsrc / aliases.qc
1 void AddAlias(entity client, string alias, string command) {
2     stuffcmd(client, "alias ");
3     stuffcmd(client, alias);
4     stuffcmd(client, " \"");
5     stuffcmd(client, command);
6     stuffcmd(client, "\"\n");
7 };
8
9 void AddImpulse(entity client, string alias, float imp) {
10     stuffcmd(client, "alias ");
11     stuffcmd(client, alias);
12     stuffcmd(client, " \"impulse ");
13     stuffcmd(client, ftos(imp));
14     stuffcmd(client, "\"\n");
15 };
16
17 void DoAliases() {
18     if (self.hasaliases)
19         return;
20
21     AddImpulse(self, "weapnext", 10);
22     AddImpulse(self, "weapnext", 12);
23     AddImpulse(self, "+crouch", 97);
24     AddImpulse(self, "-crouch", 98);
25     AddImpulse(self, "bot_add", 100);
26     AddImpulse(self, "bot_add2", 101);
27     AddImpulse(self, "bot_kick", 102);
28     AddImpulse(self, "bot_cam", 102);
29     AddImpulse(self, "bot_wayedit", 102);
30
31     self.hasaliases = TRUE;
32 };