From 5632c9d812830d066683d42f6bf9fb0b9df805de Mon Sep 17 00:00:00 2001 From: Yimura Date: Tue, 8 Mar 2022 01:06:12 +0100 Subject: [PATCH] fix(FreeCam): Request focus at cam coords. --- BigBaseV2/src/backend/looped/self/free_cam.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BigBaseV2/src/backend/looped/self/free_cam.cpp b/BigBaseV2/src/backend/looped/self/free_cam.cpp index 68106449..6308e2b8 100644 --- a/BigBaseV2/src/backend/looped/self/free_cam.cpp +++ b/BigBaseV2/src/backend/looped/self/free_cam.cpp @@ -39,6 +39,7 @@ namespace big CAM::SET_CAM_ACTIVE(cCam, false); CAM::RENDER_SCRIPT_CAMS(false, true, 500, true, true, 0); CAM::DESTROY_CAM(cCam, false); + STREAMING::SET_FOCUS_ENTITY(PLAYER::PLAYER_PED_ID()); bLastFreeCam = false; @@ -86,6 +87,7 @@ namespace big vecPosition.z += vecChange.z * mult; CAM::SET_CAM_COORD(cCam, vecPosition.x, vecPosition.y, vecPosition.z); + STREAMING::SET_FOCUS_POS_AND_VEL(vecPosition.x, vecPosition.y, vecPosition.z, 0.f, 0.f, 0.f); vecRot = CAM::GET_GAMEPLAY_CAM_ROT(2); CAM::SET_CAM_ROT(cCam, vecRot.x, vecRot.y, vecRot.z, 2);