fix(FreeCam): Request focus at cam coords.

This commit is contained in:
Yimura 2022-03-08 01:06:12 +01:00
parent a901a30ba8
commit 5632c9d812

View File

@ -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);