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

Function LassoYankCB

src/SB/Game/zEntPlayer.cpp:3345–3357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3343}
3344
3345static U32 LassoYankCB(xAnimTransition*, xAnimSingle*, void*)
3346{
3347 zEntPlayer_SNDPlay(ePlayerSnd_LassoYank, 0.17f);
3348 zEntPlayer_SNDPlayStreamRandom(ePlayerStreamSnd_RopingComment1, ePlayerStreamSnd_RopingComment3,
3349 0.133f);
3350
3351 if (sLassoInfo->targetGuide && sLassoInfo->target)
3352 {
3353 ((zNPCCommon*)sLassoInfo->target)->LassoNotify(LASS_EVNT_YANK);
3354 }
3355
3356 return 0;
3357}
3358
3359// Equivalent: sda relocation scheduling
3360static U32 MeleeStopCB(xAnimTransition*, xAnimSingle*, void*)

Callers

nothing calls this directly

Calls 3

zEntPlayer_SNDPlayFunction · 0.85
LassoNotifyMethod · 0.45

Tested by

no test coverage detected