mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
WIP: Can bail during painstates
Not balanced/tuned yet
This commit is contained in:
parent
92e4bb5909
commit
b8a693be32
1 changed files with 10 additions and 0 deletions
10
src/k_kart.c
10
src/k_kart.c
|
|
@ -13978,6 +13978,16 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
mobj_t *broly = Obj_SpawnBrolyKi(player->mo, player->mo->hitlag);
|
mobj_t *broly = Obj_SpawnBrolyKi(player->mo, player->mo->hitlag);
|
||||||
broly->extravalue2 = 16*mapobjectscale;
|
broly->extravalue2 = 16*mapobjectscale;
|
||||||
|
|
||||||
|
if (P_PlayerInPain(player))
|
||||||
|
{
|
||||||
|
player->spinouttimer = 0;
|
||||||
|
player->spinouttype = 0;
|
||||||
|
player->tumbleBounces = 0;
|
||||||
|
player->pflags &= ~PF_TUMBLELASTBOUNCE;
|
||||||
|
player->mo->rollangle = 0;
|
||||||
|
P_ResetPitchRoll(player->mo);
|
||||||
|
}
|
||||||
|
|
||||||
INT32 fls = K_GetEffectiveFollowerSkin(player);
|
INT32 fls = K_GetEffectiveFollowerSkin(player);
|
||||||
if (player->follower && fls >= 0 && fls < numfollowers)
|
if (player->follower && fls >= 0 && fls < numfollowers)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue