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

Function MeleeCB

src/SB/Game/zEntPlayer.cpp:3217–3230  ·  view source on GitHub ↗

Equivalent: sda relocation scheduling

Source from the content-addressed store, hash-verified

3215
3216// Equivalent: sda relocation scheduling
3217static U32 MeleeCB(xAnimTransition*, xAnimSingle*, void*)
3218{
3219 zEntPlayer_SNDPlay(ePlayerSnd_Chop, 0.0f);
3220 if ((xrand() & 3) == 3)
3221 {
3222 zEntPlayer_SNDPlayStreamRandom(ePlayerStreamSnd_ChopComment1, ePlayerStreamSnd_ChopComment3,
3223 0.0f);
3224 }
3225
3226 sLassoInfo->target = NULL;
3227 sShouldMelee = 0;
3228 sPlayerAttackInAir++;
3229 return 0;
3230}
3231
3232static U32 LassoStartCB(xAnimTransition*, xAnimSingle*, void* object)
3233{

Callers

nothing calls this directly

Calls 3

zEntPlayer_SNDPlayFunction · 0.85
xrandFunction · 0.85

Tested by

no test coverage detected