mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Implement bumpy floor
This commit is contained in:
parent
b3d3135c58
commit
047b725a30
1 changed files with 20 additions and 0 deletions
|
|
@ -415,6 +415,26 @@ void K_ProcessTerrainEffect(mobj_t *mo)
|
||||||
P_InstaThrust(mo, mo->angle, speed);
|
P_InstaThrust(mo, mo->angle, speed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Bumpy floor
|
||||||
|
if (terrain->flags & TRF_STAIRJANK)
|
||||||
|
{
|
||||||
|
/* use a shorter sound if not two tics have passed
|
||||||
|
* since the last step */
|
||||||
|
S_StartSound(mo, player->stairjank
|
||||||
|
>= 16 ? sfx_s23b : sfx_s268);
|
||||||
|
|
||||||
|
if (player->stairjank == 0)
|
||||||
|
{
|
||||||
|
mobj_t *spark = P_SpawnMobjFromMobj(mo,
|
||||||
|
0, 0, 0, MT_JANKSPARK);
|
||||||
|
spark->fuse = 9;
|
||||||
|
spark->cusval = K_StairJankFlip(ANGLE_90);
|
||||||
|
P_SetTarget(&spark->target, mo);
|
||||||
|
}
|
||||||
|
|
||||||
|
player->stairjank = 17;
|
||||||
|
}
|
||||||
|
|
||||||
// (Offroad is handled elsewhere!)
|
// (Offroad is handled elsewhere!)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue