mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-29 12:40:40 +00:00
Fix the items hitting people you bump bug
This commit is contained in:
parent
d480ce24a9
commit
ff667b7e45
1 changed files with 2 additions and 0 deletions
|
@ -6582,9 +6582,11 @@ void P_MobjThinker(mobj_t *mobj)
|
|||
z = mobj->target->z + mobj->target->height - mobj->height;
|
||||
}
|
||||
|
||||
mobj->flags |= MF_NOCLIPTHING; // temporarily make them noclip other objects so they can't hit anyone while in the player
|
||||
P_TeleportMove(mobj, mobj->target->x, mobj->target->y, z);
|
||||
mobj->momx = FixedMul(FINECOSINE(mobj->angle>>ANGLETOFINESHIFT),radius);
|
||||
mobj->momy = FixedMul(FINESINE(mobj->angle>>ANGLETOFINESHIFT), radius);
|
||||
mobj->flags &= ~MF_NOCLIPTHING;
|
||||
if (!P_TryMove(mobj, mobj->target->x + mobj->momx, mobj->target->y + mobj->momy, true))
|
||||
P_SlideMove(mobj, true);
|
||||
if (P_IsObjectOnGround(mobj->target))
|
||||
|
|
Loading…
Reference in a new issue