- Blood: Fixed choking hand with new renderer.

This gets directed to the weapon 3D drawer, but for that it was processed too late.
This commit is contained in:
Christoph Oelckers 2022-01-23 12:23:55 +01:00
parent a23124a201
commit e64a6f7e30
2 changed files with 7 additions and 6 deletions

View file

@ -172,6 +172,13 @@ void hudDraw(PLAYER* gView, sectortype* pSector, double bobx, double boby, doubl
drawElement(0, 237, 2358, 1, 0, 1, -1);
drawElement(320, 237, 2358, 1, 1, 1, 1);
}
int zn = ((gView->zWeapon - gView->zView - (12 << 8)) >> 7) + 220;
PLAYER* pPSprite = &gPlayer[gMe->actor->spr.type - kDudePlayer1];
if (gMe->actor->IsPlayerActor() && pPSprite->hand == 1)
{
gChoke.animateChoke(160, zn, (int)gInterpolate);
}
}
END_BLD_NS

View file

@ -827,12 +827,6 @@ void viewDrawScreen(bool sceneonly)
DrawMap(gView->actor);
}
UpdateStatusBar();
int zn = ((gView->zWeapon - gView->zView - (12 << 8)) >> 7) + 220;
PLAYER* pPSprite = &gPlayer[gMe->actor->spr.type - kDudePlayer1];
if (gMe->actor->IsPlayerActor() && pPSprite->hand == 1)
{
gChoke.animateChoke(160, zn, (int)gInterpolate);
}
viewDrawAimedPlayerName();
if (paused)