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

Function LassoStartCheck

src/SB/Game/zEntPlayer.cpp:3125–3143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3123}
3124
3125static U32 LassoStartCheck(xAnimTransition*, xAnimSingle*, void*)
3126{
3127 xNPCBasic* npc = (xNPCBasic*)sLassoInfo->target;
3128
3129 if (npc != NULL)
3130 {
3131 if (npc->baseType == 0x2b)
3132 {
3133 if ((npc->SelfType() & 0xffffff00) != 0x4e545400)
3134 {
3135 return ((zNPCCommon*)sLassoInfo->target)->GimmeLassInfo() != NULL;
3136 }
3137 }
3138
3139 return 1;
3140 }
3141
3142 return 0;
3143}
3144
3145static U32 LassoLostTargetCheck(xAnimTransition*, xAnimSingle*, void*)
3146{

Callers

nothing calls this directly

Calls 2

SelfTypeMethod · 0.80
GimmeLassInfoMethod · 0.80

Tested by

no test coverage detected