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

Function zEntPlayer_DamageKnockIntoAir

src/SB/Game/zEntPlayer.cpp:4526–4538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4524}
4525
4526void zEntPlayer_DamageKnockIntoAir(F32 height)
4527{
4528 zJumpParam jump;
4529 jump.PeakHeight = height;
4530 jump.TimeHold = 0.0f;
4531 jump.TimeGravChange = 0.3f;
4532 CalcJumpImpulse(&jump, NULL);
4533 zEntPlayerJumpStart(&globals.player.ent, &jump);
4534 zEntPlayerJumpAddDriver(&globals.player.ent);
4535 globals.player.KnockIntoAirTimer = 0.75f;
4536 globals.player.Jump_CanDouble = 1;
4537 globals.player.Jump_CanFloat = 1;
4538}
4539
4540S32 zEntPlayer_Damage(xBase* src, U32 damage)
4541{

Callers

nothing calls this directly

Calls 3

CalcJumpImpulseFunction · 0.85
zEntPlayerJumpStartFunction · 0.85
zEntPlayerJumpAddDriverFunction · 0.85

Tested by

no test coverage detected