1 void CopyBody(float keepvelocity);
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)
27 if (imp >= 1 && imp <= 12)
29 // weapon switching impulses
36 else if (imp == 11) // last weapon
37 W_SwitchWeapon (self.cnt);
39 else if (imp >= 13 && imp <= 16)
41 if (cvar("sv_cheats"))
45 makevectors (self.v_angle);
46 self.velocity = self.velocity + v_forward * 300;
48 self.velocity = self.velocity - v_forward * 300;
54 sprint(self, strcat("origin = ", vtos(self.origin), "\n"));
55 sprint(self, strcat("angles = ", vtos(self.angles), "\n"));
65 sprint(self, strcat(s, ": ^", s, "color\n"));
68 sprint(self, strcat("origin = ", vtos(self.origin), "\n"));
75 if (self.weapon != WEP_LASER
76 && !cvar("g_minstagib") && !cvar("g_instagib")
77 && !cvar("g_rocketarena") && !cvar("g_lms") && cvar("g_pickup_items"))
81 PrintWelcomeMessage(self);
84 if (cvar("sv_cheats"))
86 self.items = IT_LASER | IT_UZI | IT_SHOTGUN | IT_GRENADE_LAUNCHER | IT_ELECTRO | IT_CRYLINK | IT_NEX | IT_HAGAR | IT_ROCKET_LAUNCHER;
87 self.ammo_shells = 999;
88 self.ammo_nails = 999;
89 self.ammo_rockets = 999;
90 self.ammo_cells = 999;