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

Function zCutsceneMgrEventCB

src/SB/Game/zCutsceneMgr.cpp:253–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253S32 zCutsceneMgrEventCB(xBase*, xBase* to, U32 toEvent, const F32*, xBase*)
254{
255 zCutsceneMgr* t = (zCutsceneMgr*)to;
256
257 switch (toEvent)
258 {
259 case 0x13:
260 zEntPlayerControlOn(CONTROL_OWNER_CUTSCENE);
261 t->stop = 1;
262 break;
263 case 0x18:
264 break;
265 case 0xbe:
266 zEntPlayerControlOff(CONTROL_OWNER_CUTSCENE);
267 zMusicPause();
268 if (globals.cmgr == NULL)
269 {
270 t->stop = 0;
271 t->csn = xCutscene_Create(t->tasset->cutsceneAssetID);
272 if (t->csn != NULL)
273 {
274 xCutscene_LoadStart(t->csn);
275 globals.cmgr = t;
276 t->oldfov = xCameraGetFOV(&globals.camera);
277 }
278 }
279 break;
280 case 0xbf:
281 zEntPlayerControlOn(CONTROL_OWNER_CUTSCENE);
282 break;
283 case 0xa:
284 zCutsceneMgrReset(t);
285 break;
286 }
287
288 return 1;
289}
290
291void zCutsceneMgrFinishLoad(xBase* to)
292{

Callers

nothing calls this directly

Calls 7

xCutscene_LoadStartFunction · 0.85
xCameraGetFOVFunction · 0.85
zCutsceneMgrResetFunction · 0.85
zEntPlayerControlOnFunction · 0.70
zEntPlayerControlOffFunction · 0.70
zMusicPauseFunction · 0.70
xCutscene_CreateFunction · 0.50

Tested by

no test coverage detected