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

Function zEntTeleportBox_Load

src/SB/Game/zEntTeleportBox.cpp:374–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372 {
373 if (cruise_bubble::active())
374 {
375 if (xEntIsVisible(sTeleportUI))
376 {
377 zEntEvent("mnu4 teleport box", eEventInvisible);
378 }
379 }
380 else
381 {
382 if (!xEntIsVisible(sTeleportUI) && target->status == STATUS_CLOSED)
383 {
384 zEntEvent("mnu4 teleport box", eEventVisible);
385 }
386 }
387 }
388
389 xVec3 playerMid;
390 xVec3Copy(&playerMid, (xVec3*)&globals.player.ent.model->Mat->pos);
391
392 playerMid.y += 0.5f;
393
394 if (xPointInBox(&ent->trig[0], &playerMid) || xPointInBox(&ent->trig[1], &playerMid) ||

Callers 1

zSceneLoadFunction · 0.70

Calls 5

zEntLoadFunction · 0.85
zEntTeleportBox_OpenFunction · 0.85
zEntTeleportBox_CloseFunction · 0.85
Read_b1Method · 0.80
ReadMethod · 0.80

Tested by

no test coverage detected