From 40bbb612396b0d5820759254d9f745661ea2b885 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 16 Sep 2020 22:18:22 +1000 Subject: [PATCH] - Blood: Get death chase-cam going while unsynchronised using input helpers. --- source/blood/src/player.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/blood/src/player.cpp b/source/blood/src/player.cpp index 7885e1184..118264e55 100644 --- a/source/blood/src/player.cpp +++ b/source/blood/src/player.cpp @@ -1480,6 +1480,8 @@ void ProcessInput(PLAYER *pPlayer) Item_JumpBoots = 3 }; + resetinputhelpers(pPlayer); + spritetype *pSprite = pPlayer->pSprite; XSPRITE *pXSprite = pPlayer->pXSprite; int nSprite = pPlayer->nSprite; @@ -1498,11 +1500,11 @@ void ProcessInput(PLAYER *pPlayer) if (pPlayer->fraggerId != -1) { pPlayer->angold = pSprite->ang = getangle(sprite[pPlayer->fraggerId].x - pSprite->x, sprite[pPlayer->fraggerId].y - pSprite->y); - pPlayer->q16ang = IntToFixed(pSprite->ang); + playerSetAngle(pPlayer, pSprite->ang); } pPlayer->deathTime += 4; if (!bSeqStat) - pPlayer->q16horiz = mulscale16(0x8000-(Cos(ClipHigh(pPlayer->deathTime<<3, 1024))>>15), IntToFixed(120)); + playerSetHoriz(pPlayer, FixedToFloat(mulscale16(0x8000-(Cos(ClipHigh(pPlayer->deathTime<<3, 1024))>>15), IntToFixed(120)))); if (pPlayer->curWeapon) pInput->setNewWeapon(pPlayer->curWeapon); if (pInput->actions & SB_OPEN)