| 986 | } |
| 987 | |
| 988 | S32 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 | |
| 1026 | S32 zNPCGoalBoyWeep::Enter(F32 dt, void* updCtxt) |
| 1027 | { |
nothing calls this directly
no test coverage detected