Add ThirdPersonChanged NotifyAction type

This commit is contained in:
Derek 2025-01-03 18:35:33 +10:00
parent 6a51ab9215
commit 9053303825

View file

@ -12,6 +12,7 @@
#include "Options.h"
#include "Picking.h"
#include "Platform.h"
#include "Protocol.h"
struct _CameraData Camera;
static struct RayTracer cameraClipPos;
@ -302,6 +303,12 @@ void Camera_CycleActive(void) {
}
cam_isForwardThird = Camera.Active == &cam_ForwardThird;
int cycle = 0;
if (Camera.Active == &cam_FirstPerson) cycle = 0;
else if (Camera.Active == &cam_ThirdPerson) cycle = 1;
else if (cam_isForwardThird) cycle = 2;
CPE_SendNotifyAction(7, cycle);
/* reset rotation offset when changing cameras */
cam_rotOffset.x = 0.0f; cam_rotOffset.y = 0.0f;
Camera_UpdateProjection();