MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / reset_camera

Function reset_camera

src/SB/Game/zEntPlayerOOBState.cpp:106–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 static void reset_camera()
107 {
108 globals.camera.tgt_omat = xEntGetFrame(&(xEnt)globals.player.ent);
109 globals.camera.tgt_mat = globals.camera.tgt_omat;
110
111 zCameraEnableInput();
112 zCameraEnableTracking(CO_OOB);
113 xCameraDoCollisions(1, 6);
114 zCameraTweakGlobal_Init();
115 }
116
117 static void render_model(xModelInstance& model, const xVec3& loc, const xVec3& size,
118 const xVec3& ypr /*Yaw Pitch Roll*/)

Callers 1

stopMethod · 0.85

Calls 5

xEntGetFrameFunction · 0.85
zCameraEnableInputFunction · 0.85
zCameraEnableTrackingFunction · 0.85
xCameraDoCollisionsFunction · 0.85
zCameraTweakGlobal_InitFunction · 0.85

Tested by

no test coverage detected