mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-19 07:01:09 +00:00
- Blood: Repair life leach turret mode where target's position and not velocity was used.
This commit is contained in:
parent
ef4b72d18e
commit
d00108b9cf
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ void LifeLeechOperate(DBloodActor* actor, EVENT event)
|
|||
auto nDist = (pos.XY() - actor->spr.pos.XY()).Length();
|
||||
if (nDist != 0 && cansee(DVector3(actor->spr.pos.XY(), top), actor->sector(), pos, target->sector()))
|
||||
{
|
||||
pos.XY() += target->spr.pos.XY() * nDist * (65536. / 0x1aaaaa);
|
||||
pos.XY() += target->vel.XY() * nDist * (65536. / 0x1aaaaa);
|
||||
auto angBak = actor->spr.angle;
|
||||
actor->spr.angle = VecToAngle(pos.XY() - actor->spr.pos.XY());
|
||||
double tz = target->spr.pos.Z - (target->spr.yrepeat * pDudeInfo->aimHeight) * REPEAT_SCALE;
|
||||
|
|
Loading…
Reference in a new issue