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");
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");
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);
31 self.hasaliases = TRUE;