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)
22 if (self.impulse >= 1 && self.impulse <= 9 && !cvar("g_minstagib"))
23 W_SwitchWeapon (self.impulse);
24 else if (self.impulse == 10 && !cvar("g_minstagib"))
26 else if (self.impulse == 12 && !cvar("g_minstagib"))
28 else if (self.impulse == 13 && cvar("sv_cheats"))
30 makevectors (self.v_angle);
31 self.velocity = self.velocity + v_forward * 300;
33 self.velocity = self.velocity - v_forward * 300;
35 else if (self.impulse == 14 && cvar("sv_cheats"))
37 else if (self.impulse == 15 && cvar("sv_cheats"))
39 sprint(self, strcat("origin = ", vtos(self.origin), "\n"));
41 else if (self.impulse == 16 && cvar("sv_cheats"))
49 sprint(self, strcat(s, ": ^", s, "color\n"));
52 sprint(self, strcat("origin = ", vtos(self.origin), "\n"));
55 else if (self.impulse == 17 && self.weapon != WEP_LASER
56 && !cvar("g_minstagib") && !cvar("g_instagib")
57 && !cvar("g_rocketarena") && !cvar("g_lms") && cvar("g_pickup_items"))
61 else if(self.impulse == 18)
63 self.welcomemessage_time = time + cvar("welcome_message_time");
64 self.welcomemessage_time2 = 0;
65 PrintWelcomeMessage(self);
67 else if (self.impulse == 99 && cvar("sv_cheats"))
69 self.items = IT_LASER | IT_UZI | IT_SHOTGUN | IT_GRENADE_LAUNCHER | IT_ELECTRO | IT_CRYLINK | IT_NEX | IT_HAGAR | IT_ROCKET_LAUNCHER;
70 self.ammo_shells = 999;
71 self.ammo_nails = 999;
72 self.ammo_rockets = 999;
73 self.ammo_cells = 999;