| 2288 | |
| 2289 | static void zEntPlayerJumpAddDriver(xEnt* ent); |
| 2290 | static U32 JumpCB(class xAnimTransition*, class xAnimSingle*, void*) |
| 2291 | { |
| 2292 | if (globals.player.cheat_mode) |
| 2293 | { |
| 2294 | return 0; |
| 2295 | } |
| 2296 | |
| 2297 | zEntPlayerJumpStart(&globals.player.ent, &globals.player.s->Jump); |
| 2298 | zEntPlayerJumpAddDriver(&globals.player.ent); |
| 2299 | zEntPlayer_SNDStop(ePlayerSnd_SlipLoop); |
| 2300 | zEntPlayer_SNDPlay(ePlayerSnd_Jump, 0.0f); |
| 2301 | startDouble = globals.player.ent.frame->mat.pos.y; |
| 2302 | startJump = startDouble; |
| 2303 | globals.player.CanJump = 0; |
| 2304 | globals.player.IsJumping = 1; |
| 2305 | |
| 2306 | return 0; |
| 2307 | } |
| 2308 | |
| 2309 | static U32 JumpApexCheck(xAnimTransition*, xAnimSingle* anim, void*) |
| 2310 | { |
no test coverage detected