mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Rework Last Chance
This commit is contained in:
parent
a323365ce2
commit
9ef0109eb8
1 changed files with 19 additions and 4 deletions
23
src/p_map.c
23
src/p_map.c
|
|
@ -35,6 +35,7 @@
|
||||||
#include "k_terrain.h"
|
#include "k_terrain.h"
|
||||||
#include "k_objects.h"
|
#include "k_objects.h"
|
||||||
#include "k_boss.h"
|
#include "k_boss.h"
|
||||||
|
#include "k_hitlag.h" // K_AddHitlag
|
||||||
|
|
||||||
#include "r_splats.h"
|
#include "r_splats.h"
|
||||||
|
|
||||||
|
|
@ -4120,10 +4121,24 @@ static void P_BouncePlayerMove(mobj_t *mo, TryMoveResult_t *result)
|
||||||
// Combo avoidance!
|
// Combo avoidance!
|
||||||
if (mo->player && P_PlayerInPain(mo->player) && gametyperules & GTR_BUMPERS && mo->health == 1)
|
if (mo->player && P_PlayerInPain(mo->player) && gametyperules & GTR_BUMPERS && mo->health == 1)
|
||||||
{
|
{
|
||||||
K_StumblePlayer(mo->player);
|
P_ResetPlayer(mo->player);
|
||||||
K_BumperInflate(mo->player);
|
mo->player->spinouttimer = 0;
|
||||||
mo->player->tumbleBounces = TUMBLEBOUNCES;
|
mo->player->wipeoutslow = 0;
|
||||||
mo->hitlag = max(mo->hitlag, 6);
|
mo->player->tumbleBounces = 0;
|
||||||
|
|
||||||
|
K_AddHitLag(mo, 3, false);
|
||||||
|
|
||||||
|
// "I dunno man, just fuckin' do it" - jart
|
||||||
|
S_StartSound(mo, sfx_mbs45);
|
||||||
|
S_StartSound(mo, sfx_mbs45);
|
||||||
|
S_StartSound(mo, sfx_mbs45);
|
||||||
|
S_StartSound(mo, sfx_mbs45);
|
||||||
|
S_StartSound(mo, sfx_mbv84);
|
||||||
|
|
||||||
|
if (mo->eflags & MFE_VERTICALFLIP)
|
||||||
|
mo->momz -= 40*mo->scale;
|
||||||
|
else
|
||||||
|
mo->momz += 40*mo->scale;
|
||||||
}
|
}
|
||||||
|
|
||||||
mo->momx = tmxmove;
|
mo->momx = tmxmove;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue