From d00108b9cf130be178981eeb12ffa8c174144020 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Mon, 10 Oct 2022 12:33:48 +1100 Subject: [PATCH] - Blood: Repair life leach turret mode where target's position and not velocity was used. --- source/games/blood/src/triggers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/blood/src/triggers.cpp b/source/games/blood/src/triggers.cpp index 271ff518b..ed3089463 100644 --- a/source/games/blood/src/triggers.cpp +++ b/source/games/blood/src/triggers.cpp @@ -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;