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

Function LassoStopCB

src/SB/Game/zEntPlayer.cpp:3385–3407  ·  view source on GitHub ↗

Equivalent: sda relocation scheduling

Source from the content-addressed store, hash-verified

3383
3384// Equivalent: sda relocation scheduling
3385static U32 LassoStopCB(xAnimTransition*, xAnimSingle*, void*)
3386{
3387 idle_tmr = 0.0f;
3388 sLasso->flags = 0;
3389
3390 if (sLassoInfo->targetGuide)
3391 {
3392 if (sLassoInfo->target)
3393 {
3394 ((zNPCCommon*)sLassoInfo->target)->LassoNotify(LASS_EVNT_YANK);
3395 }
3396 }
3397 else if (sLassoInfo->destroy && sLassoInfo->target)
3398 {
3399 zEntEvent(sLassoInfo->target, eEventHit);
3400 }
3401
3402 sLassoInfo->destroy = 0;
3403 sLassoInfo->target = NULL;
3404 zLasso_SetGuide(NULL, NULL);
3405 zRumbleStart(SDR_LassoDestroy);
3406 return 0;
3407}
3408
3409static U32 LassoSwingGroundedBeginCheck(xAnimTransition*, xAnimSingle*, void*)
3410{

Callers

nothing calls this directly

Calls 4

zRumbleStartFunction · 0.85
zLasso_SetGuideFunction · 0.70
zEntEventFunction · 0.50
LassoNotifyMethod · 0.45

Tested by

no test coverage detected