mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-18 07:22:03 +00:00
Merge remote-tracking branch 'refs/remotes/origin/gameplay-tweaks' into battle
This commit is contained in:
commit
f601520199
2 changed files with 7 additions and 0 deletions
|
@ -1093,6 +1093,11 @@ void K_KartBouncing(mobj_t *mobj1, mobj_t *mobj2, boolean bounce)
|
|||
if (!mobj1 || !mobj2)
|
||||
return;
|
||||
|
||||
// Don't bump when you're being reborn
|
||||
if ((mobj1->player && mobj1->player->playerstate != PST_LIVE)
|
||||
|| (mobj2->player && mobj2->player->playerstate != PST_LIVE))
|
||||
return;
|
||||
|
||||
if (cv_collidesounds.value == 1)
|
||||
{
|
||||
S_StartSound(mobj1, cv_collidesoundnum.value);
|
||||
|
|
|
@ -6585,9 +6585,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