mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-25 19:43:22 +00:00
Instawhip hop: 1.5x height, slightly tweak timing
This commit is contained in:
parent
9e5c9cfbd9
commit
2d7a224e8e
1 changed files with 2 additions and 2 deletions
|
|
@ -7822,9 +7822,9 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
|||
// There is a constant total time to complete but the
|
||||
// acceleration and deceleration times can be made
|
||||
// asymmetrical.
|
||||
const fixed_t hop = 16 * mapobjectscale;
|
||||
const fixed_t hop = 24 * mapobjectscale;
|
||||
const INT32 duration = 12;
|
||||
const INT32 mid = (duration / 2) - 2;
|
||||
const INT32 mid = (duration / 2) - 1;
|
||||
const INT32 t = (duration - mid) - player->whip->fuse;
|
||||
|
||||
player->cameraOffset = hop - (abs(t * hop) / (t < 0 ? mid : duration - mid));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue