mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-23 12:32:13 +00:00
fixed offset in grower
This commit is contained in:
parent
de5e779c50
commit
f2b13410a5
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class DukeGrowSpark : DukeActor
|
|||
[j, x] = self.findplayer();
|
||||
pos.Z -= 4;
|
||||
double dist = (j.actor.pos.XY - shooter.pos.XY).Length();
|
||||
zvel = ((j.actor.viewzoffset - pos.Z) * 16) / dist;
|
||||
zvel = ((j.actor.pos.Z + j.actor.viewzoffset - pos.Z) * 16) / dist;
|
||||
zvel += 0.5 - frandom(0, 1);
|
||||
ang += 22.5 / 4 - frandom(0, 22.5 / 2);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue