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

Function zEntPlayerJumpLand

src/SB/Game/zEntPlayer.cpp:4794–4829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4792}
4793
4794static void zEntPlayerJumpLand(xEnt* ent)
4795{
4796 F32 diff;
4797 F32 vol;
4798 F32 tempFloat;
4799
4800 globals.player.JumpState = 0;
4801 globals.player.SlideNotGroundedSinceSlide = 0;
4802 zEntPlayerControlOn(CONTROL_OWNER_SPRINGBOARD);
4803
4804 tempFloat = 0.0f;
4805 diff = -ent->frame->vel.y;
4806 vol = diff - 0.5f;
4807
4808 if (tempFloat <= vol)
4809 {
4810 if (vol >= 10.0f)
4811 {
4812 tempFloat = vol / 10.0f;
4813 }
4814 else
4815 {
4816 tempFloat = 1.0f;
4817 }
4818 }
4819
4820 if ((0.0f > tempFloat) && (globals.sceneCur->sceneID != 'MNU3'))
4821 {
4822 zEntPlayer_SNDPlay(ePlayerSnd_Land, 0.0f);
4823 zEntPlayer_SNDSetVol(ePlayerSnd_Land, tempFloat);
4824 if (12.0f > vol)
4825 {
4826 zPadAddRumble(eRumble_VeryLight, vol * 0.008f, 0, 0);
4827 }
4828 }
4829}
4830
4831F32 det3x3top1(F32 a, F32 b, F32 c, F32 d, F32 e, F32 f)
4832{

Callers

nothing calls this directly

Calls 4

zEntPlayer_SNDPlayFunction · 0.85
zEntPlayer_SNDSetVolFunction · 0.85
zPadAddRumbleFunction · 0.85
zEntPlayerControlOnFunction · 0.70

Tested by

no test coverage detected