mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-23 20:52:29 +00:00
- fix the "flying tesla" bug (and a little whitespace beside it)
I compiled it, but I'm too lazy to test it.
This commit is contained in:
parent
4b92b3e4e5
commit
1e8575dbf7
1 changed files with 3 additions and 6 deletions
|
@ -1857,12 +1857,9 @@ void(vector p1, vector p2, entity from, float damage) LightningDamage =
|
|||
deathmsg = DMSG_LIGHTNING;
|
||||
if (trace_ent.takedamage)
|
||||
{
|
||||
LightningHit (from, damage);
|
||||
if (self.classname == "player")
|
||||
{
|
||||
if (other.classname == "player")
|
||||
trace_ent.velocity_z = trace_ent.velocity_z + 400;
|
||||
}
|
||||
LightningHit (from, damage);
|
||||
if (self.classname == "player" && trace_ent.classname == "player")
|
||||
trace_ent.velocity_z = trace_ent.velocity_z + 400;
|
||||
}
|
||||
e1 = trace_ent;
|
||||
|
||||
|
|
Loading…
Reference in a new issue