speed tweaks, assault cannon lets you go a little faster, no

more silly armor code.
This commit is contained in:
Finny Merrill 2004-02-17 00:26:58 +00:00
parent 59056fd5c8
commit 91ee6d6fba

View file

@ -1473,13 +1473,6 @@ void(entity p) TeamFortress_SetSpeed =
}
if (p.playerclass != PC_UNDEFINED) {
//before anything, speed reductions from armor (no speedy tanks)
if (p.armorvalue > 0)
p.maxspeed *= (0.8 + (0.2 - p.armortype / 5));
if (p.armorvalue > 100 && p.maxspeed > 250) // really tanked? cap speed a little
p.maxspeed -= (p.maxspeed - 250) * (p.armorvalue - 100) / 200;
//1st if we have scuba gear ...
if (p.tf_items & NIT_SCUBA) {
if (p.flags & FL_INWATER) // and are underwater, increase speed
@ -1549,7 +1542,7 @@ void(entity p) TeamFortress_SetSpeed =
// 8th, check if they're firing an Assault Cannon
if (p.tfstate & TFSTATE_ASSAULTCANNON)
p.maxspeed /= 4;
p.maxspeed *= 0.4;
}
local string speed = ftos (p.maxspeed);