make some cam stuff behave exactly like vanilla again

no clue if this changes anything at all, but cam stuff be causing so many issues id rather just have it behave like it used to
This commit is contained in:
Alug committed 2024-12-23 17:45:59 +01:00
1 parent e38580c9c2
commit c8193380e7
1 file changed
+14 -4
+14 -4
View File
@@ -3383,8 +3383,15 @@ void P_ResetCamera(player_t *player, camera_t *thiscam)
thiscam->z = z;
thiscam->reset = true;
thiscam->angle = player->mo->angle;
thiscam->aiming = 0;
if (!(thiscam == &camera[0] && (cv_cam_still[0].value))
&& !(thiscam == &camera[1] && (cv_cam_still[1].value))
&& !(thiscam == &camera[2] && (cv_cam_still[2].value))
&& !(thiscam == &camera[3] && (cv_cam_still[3].value)))
{
thiscam->angle = player->mo->angle;
thiscam->aiming = 0;
}
thiscam->relativex = 0;
thiscam->subsector = R_PointInSubsectorFast(thiscam->x,thiscam->y);
@@ -3500,7 +3507,10 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
focusangle = mo->angle;
}
camrotate = cv_cam_rotate[num].value;
if (thiscam == &camera[num])
camrotate = cv_cam_rotate[num].value;
else
camrotate = 0;
if (leveltime < introtime) // Whoooshy camera!
{
@@ -3604,7 +3614,7 @@ boolean P_MoveChaseCamera(player_t *player, camera_t *thiscam, boolean resetcall
}
if (!resetcalled && (leveltime > starttime && timeover != 2)
&& (t_cam_rotate[num] != -42))
&& (thiscam == &camera[num] && t_cam_rotate[num] != -42))
{
angle = FixedAngle(camrotate*FRACUNIT);
thiscam->angle = angle;