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

Function zPortalEventCB

src/SB/Game/zPortal.cpp:43–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43S32 zPortalEventCB(xBase* from, xBase* to, U32 toEvent, const F32* toParam, xBase* b3)
44{
45 switch (toEvent)
46 {
47 case eEventReset:
48 {
49 zPortalReset((_zPortal*)to);
50 break;
51 }
52 case eEventTeleportPlayer:
53 {
54 if (globals.player.Health != 0)
55 {
56 zSceneSwitch((_zPortal*)to, false);
57 }
58 break;
59 }
60 }
61 return eEventEnable;
62}

Callers

nothing calls this directly

Calls 2

zPortalResetFunction · 0.85
zSceneSwitchFunction · 0.70

Tested by

no test coverage detected