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

Function zGameSetup

src/SB/Game/zGame.cpp:397–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397void zGameSetup()
398{
399 gGameWhereAmI = eGameWhere_SetupScene;
400 zSceneSetup();
401 gGameWhereAmI = eGameWhere_SetupZFX;
402 RpWorld* world = globals.sceneCur->env->geom->world;
403 xModel_SceneEnter(world);
404 zFX_SceneEnter(world);
405 gGameWhereAmI = eGameWhere_SetupPlayer;
406 zGameSetupPlayer();
407 gGameWhereAmI = eGameWhere_SetupCamera;
408 zEnvStartingCamera(gCurEnv);
409 gGameWhereAmI = eGameWhere_SetupScrFX;
410 xScrFxReset();
411 gGameWhereAmI = eGameWhere_SetupSceneLoad;
412 zSceneLoad(globals.sceneCur, NULL);
413 gGameWhereAmI = eGameWhere_SetupMusicNotify;
414 zMusicNotify(0);
415 gGameWhereAmI = eGameWhere_SetupHudSetup;
416 zhud::setup();
417 zCombo_Setup();
418 gGameWhereAmI = eGameWhere_SetupSkydome;
419 xSkyDome_Setup();
420 gGameWhereAmI = eGameWhere_SetupSceneEvents;
421 zEntEventAll(0, 0, 0x57, 0);
422 zEntEventAll(0, 0, 0x59, 0);
423 zEntEventAll(0, 0, 0x1dd, 0);
424 if (gLevelChanged != 0)
425 {
426 zEntEventAll(0, 0, 0x1db, 0);
427 }
428 gGameWhereAmI = eGameWhere_SetupUpdateCull;
429 if (globals.updateMgr != NULL)
430 {
431 xUpdateCull_Update(globals.updateMgr, 100);
432 }
433 gGameWhereAmI = eGameWhere_SetupLOD;
434 zLOD_Update(100);
435 gGameWhereAmI = eGameWhere_SetupExtras;
436 zGameExtras_SceneInit();
437 gGameWhereAmI = eGameWhere_SetupEnd;
438}
439
440S32 zGameIsPaused()
441{

Callers 1

zGameUpdateModeFunction · 0.70

Calls 15

xModel_SceneEnterFunction · 0.85
zFX_SceneEnterFunction · 0.85
xScrFxResetFunction · 0.85
xSkyDome_SetupFunction · 0.85
zSceneSetupFunction · 0.70
zGameSetupPlayerFunction · 0.70
zEnvStartingCameraFunction · 0.70
zSceneLoadFunction · 0.70
zMusicNotifyFunction · 0.70
zCombo_SetupFunction · 0.70
zEntEventAllFunction · 0.70
zLOD_UpdateFunction · 0.70

Tested by

no test coverage detected