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

Method CollReview

src/SB/Game/zNPCGoalVillager.cpp:988–1024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986}
987
988S32 zNPCGoalBoyFall::CollReview(void* updCtxt)
989{
990 S32 diditall = 0;
991 zNPCBalloonBoy* npc = ((zNPCBalloonBoy*)(psyche->clt_owner));
992 xEntCollis* floor;
993 F32 gooDepth;
994
995 if (hitGround)
996 {
997 return 0;
998 }
999
1000 floor = &npc->collis[0];
1001 xCollis* coll = ((xCollis*)(floor->colls));
1002
1003 if (coll->flags & 1)
1004 {
1005 zSurfaceGetSurface(coll);
1006 gooDepth = 0.0f;
1007 if (coll->optr == NULL)
1008 {
1009 hitGround = 1;
1010 }
1011 else if (zGooIs((xEnt*)(coll->optr), gooDepth, 0))
1012 {
1013 hitGround = 2;
1014 }
1015 else
1016 {
1017 hitGround = 1;
1018 }
1019 DoAutoAnim(NPC_GSPOT_ALTA, 0);
1020 diditall = 1;
1021 }
1022
1023 return diditall;
1024}
1025
1026S32 zNPCGoalBoyWeep::Enter(F32 dt, void* updCtxt)
1027{

Callers

nothing calls this directly

Calls 3

DoAutoAnimFunction · 0.85
zSurfaceGetSurfaceFunction · 0.70
zGooIsFunction · 0.70

Tested by

no test coverage detected