mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Stair jank sound effects
Big meaty sfx, or a shorter one when quickly stepping.
This commit is contained in:
parent
786dec30ad
commit
7badb5d925
1 changed files with 4 additions and 0 deletions
|
|
@ -2637,6 +2637,10 @@ boolean P_TryMove(mobj_t *thing, fixed_t x, fixed_t y, boolean allowdropoff)
|
||||||
|
|
||||||
if (stairjank > stairstep && thing->player)
|
if (stairjank > stairstep && thing->player)
|
||||||
{
|
{
|
||||||
|
/* use a shorter sound if not two tics have passed
|
||||||
|
* since the last step */
|
||||||
|
S_StartSound(thing, thing->player->stairjank
|
||||||
|
>= 16 ? sfx_s23b : sfx_s268);
|
||||||
thing->player->stairjank = 17;
|
thing->player->stairjank = 17;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue