From 092a24540b547d6f007b48356e5598455fd265a6 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Mon, 1 Feb 2021 22:28:02 -0500 Subject: [PATCH] Camera no longer updates while you're in hitlag The camera zooming out made it hard to focus on the hit, which is the opposite of what hitlag is intended to do :V --- src/p_user.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/p_user.c b/src/p_user.c index befea60fa..e705c0d8a 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -3075,6 +3075,13 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall mo = player->mo; + if (mo->hitlag > 0) + { + // Do not move the camera while in hitlag! + // The camera zooming out after you got hit makes it hard to focus on the vibration. + return true; + } + #ifndef NOCLIPCAM cameranoclip = ((player->pflags & PF_NOCLIP) || (mo->flags & (MF_NOCLIP|MF_NOCLIPHEIGHT)) // Noclipping player camera noclips too!!