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

Function SpatulaGrabStopCB

src/SB/Game/zEntPlayer.cpp:2063–2102  ·  view source on GitHub ↗

equivalent: sda relocation scheduling

Source from the content-addressed store, hash-verified

2061
2062// equivalent: sda relocation scheduling
2063static U32 SpatulaGrabStopCB(xAnimTransition*, xAnimSingle*, void* data)
2064{
2065 S32 result;
2066 xBase* sendTo;
2067
2068 idle_tmr = 0.0f;
2069 if (globals.autoSaveFeature)
2070 {
2071 if (zEntPlayer_InBossBattle())
2072 {
2073 gWaitingToAutoSave = 1;
2074 }
2075 else
2076 {
2077 if (zSaveLoad_DoAutoSave() < 0)
2078 {
2079 sendTo = zSceneFindObject(xStrHash("MNU4 AUTO SAVE FAILED"));
2080 if (sendTo)
2081 {
2082 zEntEvent(sendTo, eEventVisible);
2083 }
2084 }
2085
2086 sendTo = zSceneFindObject(xStrHash("SAVING GAME ICON UI"));
2087 if (sendTo)
2088 {
2089 zEntEvent(sendTo, eEventInvisible);
2090 }
2091 zSaveLoadPreAutoSave(false);
2092 }
2093 }
2094
2095 zCameraEnableTracking(CO_REWARDANIM);
2096 xCameraSetFOV(&xglobals->camera, 75.0f);
2097 zCameraSetReward(0);
2098 zMusicSetVolume(1.0f, 0.75f);
2099 zCameraEnableInput();
2100 zEntPlayerControlOn(CONTROL_OWNER_REWARDANIM);
2101 return 0;
2102}
2103
2104static U32 LCopterCheck(xAnimTransition*, xAnimSingle*, void*)
2105{

Callers

nothing calls this directly

Calls 12

zEntPlayer_InBossBattleFunction · 0.85
zSceneFindObjectFunction · 0.85
zSaveLoadPreAutoSaveFunction · 0.85
zCameraEnableTrackingFunction · 0.85
xCameraSetFOVFunction · 0.85
zCameraSetRewardFunction · 0.85
zMusicSetVolumeFunction · 0.85
zCameraEnableInputFunction · 0.85
zSaveLoad_DoAutoSaveFunction · 0.70
zEntPlayerControlOnFunction · 0.70
xStrHashFunction · 0.50
zEntEventFunction · 0.50

Tested by

no test coverage detected