3 // changes by LordHavoc on 03/30/04
4 // cleaned up dummy code
5 // dummies are now removed eventually after being gibbed (norespawn = TRUE)
6 // dummy impulse now checks sv_cheats to prevent players from overwhelming server with dummies
7 // dummies now use player code where possible
9 void player_anim (void);
12 self.think = DummyThink;
13 self.nextthink = time;
20 void ImpulseCommands (void)
22 if (self.impulse >= 1 && self.impulse <= 9)
23 W_SwitchWeapon (self.impulse);
24 else if (self.impulse == 10)
26 else if (self.impulse == 12)
28 else if (self.impulse == 13 && cvar("sv_cheats"))
30 makevectors (self.v_angle);
33 else if (self.impulse == 97 && !self.crouch)
36 self.view_ofs_z = self.view_ofs_z - 20;
38 else if (self.impulse == 98 && self.crouch) {
40 self.view_ofs_z = self.view_ofs_z + 20;
42 else if (self.impulse == 99 && cvar("sv_cheats"))
44 self.items = IT_LASER | IT_UZI | IT_SHOTGUN | IT_GRENADE_LAUNCHER | IT_ELECTRO | IT_CRYLINK | IT_NEX | IT_HAGAR | IT_ROCKET_LAUNCHER;
45 self.ammo_shells = 100;
46 self.ammo_nails = 200;
47 self.ammo_rockets = 100;
48 self.ammo_cells = 100;