mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Use mobjzmovement for footsteps
This commit is contained in:
parent
21e868216e
commit
528ee29f2f
1 changed files with 1 additions and 1 deletions
|
|
@ -560,7 +560,7 @@ static void K_SpawnFootstepParticle(mobj_t *mo, t_footstep_t *fs)
|
|||
|
||||
dust->momx = mo->momx;
|
||||
dust->momy = mo->momy;
|
||||
dust->momz = mo->momz;
|
||||
dust->momz = P_GetMobjZMovement(mo) / 2;
|
||||
|
||||
momentum = P_AproxDistance(mo->momx, mo->momy) / 2;
|
||||
dust->momx += FixedMul(momentum, FINECOSINE(pushAngle >> ANGLETOFINESHIFT));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue