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
This commit is contained in:
Sally Coolatta 2021-02-01 22:28:02 -05:00
parent 9257c373ff
commit 092a24540b

View file

@ -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!!