mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2025-03-02 15:41:49 +00:00
speed tweaks, assault cannon lets you go a little faster, no
more silly armor code.
This commit is contained in:
parent
59056fd5c8
commit
91ee6d6fba
1 changed files with 1 additions and 8 deletions
9
tfort.qc
9
tfort.qc
|
@ -1473,13 +1473,6 @@ void(entity p) TeamFortress_SetSpeed =
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p.playerclass != PC_UNDEFINED) {
|
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 ...
|
//1st if we have scuba gear ...
|
||||||
if (p.tf_items & NIT_SCUBA) {
|
if (p.tf_items & NIT_SCUBA) {
|
||||||
if (p.flags & FL_INWATER) // and are underwater, increase speed
|
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
|
// 8th, check if they're firing an Assault Cannon
|
||||||
if (p.tfstate & TFSTATE_ASSAULTCANNON)
|
if (p.tfstate & TFSTATE_ASSAULTCANNON)
|
||||||
p.maxspeed /= 4;
|
p.maxspeed *= 0.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
local string speed = ftos (p.maxspeed);
|
local string speed = ftos (p.maxspeed);
|
||||||
|
|
Loading…
Reference in a new issue