mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Allow bubblebounce from trick, but disable trick handling
This commit is contained in:
parent
0301847339
commit
f0ddb79156
1 changed files with 14 additions and 11 deletions
25
src/k_kart.c
25
src/k_kart.c
|
|
@ -12500,18 +12500,21 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
|
|
||||||
if (player->fastfall)
|
if (player->fastfall)
|
||||||
{
|
{
|
||||||
P_InstaThrust(player->mo, player->mo->angle, 2*abs(player->fastfall)/3 + 15*FRACUNIT);
|
if (player->curshield != KSHIELD_BUBBLE) // Allow bubblebounce (it's cute) but don't give standard trick rewards
|
||||||
player->mo->hitlag = 3;
|
|
||||||
S_StartSound(player->mo, sfx_gshba);
|
|
||||||
player->fastfall = 0; // intentionally skip bounce
|
|
||||||
player->trickcharge = 0;
|
|
||||||
|
|
||||||
UINT8 i;
|
|
||||||
for (i = 0; i < 4; i++)
|
|
||||||
{
|
{
|
||||||
mobj_t *arc = P_SpawnMobjFromMobj(player->mo, 0, 0, 0, MT_CHARGEFALL);
|
P_InstaThrust(player->mo, player->mo->angle, 2*abs(player->fastfall)/3 + 15*FRACUNIT);
|
||||||
P_SetTarget(&arc->target, player->mo);
|
player->mo->hitlag = 3;
|
||||||
arc->extravalue1 = i;
|
S_StartSound(player->mo, sfx_gshba);
|
||||||
|
player->fastfall = 0; // intentionally skip bounce
|
||||||
|
player->trickcharge = 0;
|
||||||
|
|
||||||
|
UINT8 i;
|
||||||
|
for (i = 0; i < 4; i++)
|
||||||
|
{
|
||||||
|
mobj_t *arc = P_SpawnMobjFromMobj(player->mo, 0, 0, 0, MT_CHARGEFALL);
|
||||||
|
P_SetTarget(&arc->target, player->mo);
|
||||||
|
arc->extravalue1 = i;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue