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
30 // FIXME: why a g_minstagib check? doesn't that have only one weapon?
31 if (!cvar("g_minstagib"))
39 else if (imp == 11) // last weapon
40 W_SwitchWeapon (self.cnt);
43 else if (imp >= 13 && imp <= 16)
45 if (cvar("sv_cheats"))
49 makevectors (self.v_angle);
50 self.velocity = self.velocity + v_forward * 300;
52 self.velocity = self.velocity - v_forward * 300;
58 sprint(self, strcat("origin = ", vtos(self.origin), "\n"));
59 sprint(self, strcat("angles = ", vtos(self.angles), "\n"));
69 sprint(self, strcat(s, ": ^", s, "color\n"));
72 sprint(self, strcat("origin = ", vtos(self.origin), "\n"));
79 if (self.weapon != WEP_LASER
80 && !cvar("g_minstagib") && !cvar("g_instagib")
81 && !cvar("g_rocketarena") && !cvar("g_lms") && cvar("g_pickup_items"))
85 PrintWelcomeMessage(self);
88 if (cvar("sv_cheats"))
90 self.items = IT_LASER | IT_UZI | IT_SHOTGUN | IT_GRENADE_LAUNCHER | IT_ELECTRO | IT_CRYLINK | IT_NEX | IT_HAGAR | IT_ROCKET_LAUNCHER;
91 self.ammo_shells = 999;
92 self.ammo_nails = 999;
93 self.ammo_rockets = 999;
94 self.ammo_cells = 999;