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

Function JumpApexCheck

src/SB/Game/zEntPlayer.cpp:2309–2317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2307}
2308
2309static U32 JumpApexCheck(xAnimTransition*, xAnimSingle* anim, void*)
2310{
2311 return globals.player.ent.model == globals.player.model_sandy && anim->State &&
2312 anim->State->Name &&
2313 (strcmp(anim->State->Name, "DJumpStart01") == 0 ||
2314 strcmp(anim->State->Name, "DJumpLift01") == 0) ?
2315 (globals.player.ent.frame->vel.y <= 5.0f) :
2316 (globals.player.ent.frame->vel.y <= 0.001f);
2317}
2318
2319static U32 BounceCheck(xAnimTransition*, xAnimSingle*, void*)
2320{

Callers

nothing calls this directly

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected