mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-10 15:21:51 +00:00
Fixed the lightning gun 'target bounces' bug. This was in the original quakec for customtf, but apparently never was being evaluated correctly
before someone fixed it for quakeforge aaaaandd.... IMHO, people shouldn't bounce into the air like they're on trampolines when you hit them with the lightning gun :) Also edited the way excess cells are discharged. No longer is there a cap on the minimum amount of cells that can be evaluted. Original code made it so that if you had 101 cells and discharged it was the same as if you had 175... IMHO, not funny :) Also, the excess cells output power is no longer dropped by a third of normal - I may change this back if there are problems with the lg being too easy to kill people with excess cells... But then again, by nature excess cells are a one time shot - if you miss, they're gone. Tim McGrath (Misty)
This commit is contained in:
parent
1d74a0e909
commit
c8157f4105
1 changed files with 1 additions and 4 deletions
|
@ -1857,8 +1857,6 @@ void(vector p1, vector p2, entity from, float damage) LightningDamage =
|
|||
if (trace_ent.takedamage)
|
||||
{
|
||||
LightningHit (from, damage);
|
||||
if (self.classname == "player" && trace_ent.classname == "player")
|
||||
trace_ent.velocity_z = trace_ent.velocity_z + 400;
|
||||
}
|
||||
e1 = trace_ent;
|
||||
|
||||
|
@ -1918,8 +1916,7 @@ void() W_FireLightning =
|
|||
//We do this by capping the maximum ammo at 100, and using all
|
||||
//cells above that in one tremendous shot
|
||||
if (self.ammo_cells > 100) {
|
||||
excess = (self.ammo_cells - 100) * 2 / 3;
|
||||
if (excess < 50) excess = 50;
|
||||
excess = self.ammo_cells - 100;
|
||||
self.ammo_cells = 100;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue