| 4758 | } |
| 4759 | |
| 4760 | void zEntPlayerJumpStart(xEnt* ent, zJumpParam* jump) |
| 4761 | { |
| 4762 | globals.player.Jump_CurrGravity = globals.player.s->JumpGravity; |
| 4763 | globals.player.Jump_HoldTimer = jump->TimeHold; |
| 4764 | globals.player.Jump_ChangeTimer = jump->TimeGravChange; |
| 4765 | |
| 4766 | if ((ent->frame->vel.y > 0.0f) && (globals.player.JumpState == 2)) |
| 4767 | { |
| 4768 | ent->frame->vel.y = jump->ImpulseVel; |
| 4769 | } |
| 4770 | else |
| 4771 | { |
| 4772 | ent->frame->vel.y = jump->ImpulseVel; |
| 4773 | } |
| 4774 | |
| 4775 | globals.player.JumpState = 2; |
| 4776 | |
| 4777 | if (((ent->model->Anim->Single->State->UserFlags & 30) != 14) && |
| 4778 | ((ent->model->Anim->Single->State->UserFlags & 256) == 0)) |
| 4779 | { |
| 4780 | return; |
| 4781 | } |
| 4782 | |
| 4783 | globals.player.Bounced = 1; |
| 4784 | } |
| 4785 | |
| 4786 | void zEntPlayerJumpAddDriver(xEnt* ent) |
| 4787 | { |
no outgoing calls
no test coverage detected