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

Function SlideTrackCB

src/SB/Game/zEntPlayer.cpp:2619–2638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2617}
2618
2619static U32 SlideTrackCB(xAnimTransition*, xAnimSingle*, void*)
2620{
2621 sLasso->flags = 0;
2622 globals.player.SlideTrackLean = 0.0f;
2623
2624 if (globals.player.Health != 0 && sPlayerSndID[gCurrentPlayer][ePlayerSnd_SlideLoop] == 0)
2625 {
2626 zEntPlayer_SNDPlay(ePlayerSnd_SlideLoop, 0.0f);
2627 }
2628
2629 if (gCurrentPlayer == eCurrentPlayerSandy)
2630 {
2631 globals.player.Jump_CanDouble = 1;
2632 }
2633
2634 zEntPlayerKillCarry();
2635 zEntPlayer_SNDStop(ePlayerSnd_SlipLoop);
2636
2637 return 0;
2638}
2639
2640static U32 NoslideTrackCB(xAnimTransition*, xAnimSingle*, void*)
2641{

Callers

nothing calls this directly

Calls 3

zEntPlayer_SNDPlayFunction · 0.85
zEntPlayerKillCarryFunction · 0.85
zEntPlayer_SNDStopFunction · 0.85

Tested by

no test coverage detected