mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'hitlag-cam-freeze' into 'master'
Camera no longer updates while you're in hitlag See merge request KartKrew/Kart!358
This commit is contained in:
commit
7fc7fa7299
1 changed files with 7 additions and 0 deletions
|
|
@ -3075,6 +3075,13 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
|
||||||
|
|
||||||
mo = player->mo;
|
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
|
#ifndef NOCLIPCAM
|
||||||
cameranoclip = ((player->pflags & PF_NOCLIP)
|
cameranoclip = ((player->pflags & PF_NOCLIP)
|
||||||
|| (mo->flags & (MF_NOCLIP|MF_NOCLIPHEIGHT)) // Noclipping player camera noclips too!!
|
|| (mo->flags & (MF_NOCLIP|MF_NOCLIPHEIGHT)) // Noclipping player camera noclips too!!
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue