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

Function JumpCB

src/SB/Game/zEntPlayer.cpp:2290–2307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2288
2289static void zEntPlayerJumpAddDriver(xEnt* ent);
2290static U32 JumpCB(class xAnimTransition*, class xAnimSingle*, void*)
2291{
2292 if (globals.player.cheat_mode)
2293 {
2294 return 0;
2295 }
2296
2297 zEntPlayerJumpStart(&globals.player.ent, &globals.player.s->Jump);
2298 zEntPlayerJumpAddDriver(&globals.player.ent);
2299 zEntPlayer_SNDStop(ePlayerSnd_SlipLoop);
2300 zEntPlayer_SNDPlay(ePlayerSnd_Jump, 0.0f);
2301 startDouble = globals.player.ent.frame->mat.pos.y;
2302 startJump = startDouble;
2303 globals.player.CanJump = 0;
2304 globals.player.IsJumping = 1;
2305
2306 return 0;
2307}
2308
2309static U32 JumpApexCheck(xAnimTransition*, xAnimSingle* anim, void*)
2310{

Callers 2

LassoSwingReleaseCBFunction · 0.85

Calls 4

zEntPlayerJumpStartFunction · 0.85
zEntPlayerJumpAddDriverFunction · 0.85
zEntPlayer_SNDStopFunction · 0.85
zEntPlayer_SNDPlayFunction · 0.85

Tested by

no test coverage detected