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

Function CalcJumpImpulse

src/SB/Game/zEntPlayer.cpp:4749–4758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4747}
4748
4749void CalcJumpImpulse(zJumpParam* param, const zPlayerSettings* settings)
4750{
4751 if (settings == 0)
4752 {
4753 settings = globals.player.s;
4754 }
4755 param->ImpulseVel =
4756 CalcJumpImpulse_Smooth(globals.player.g.Gravity, settings->JumpGravity, param->PeakHeight,
4757 param->TimeGravChange, settings->GravSmooth);
4758}
4759
4760void zEntPlayerJumpStart(xEnt* ent, zJumpParam* jump)
4761{

Callers 3

WallJumpCallbackFunction · 0.85
zMainParseINIGlobalsFunction · 0.85

Calls 1

CalcJumpImpulse_SmoothFunction · 0.70

Tested by

no test coverage detected