mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-25 19:43:22 +00:00
Hugging now requires being in the same Z position
Don't try this at home
This commit is contained in:
parent
f7abc7c30f
commit
2e1460cb5c
1 changed files with 2 additions and 1 deletions
|
|
@ -7833,7 +7833,8 @@ void P_MobjThinker(mobj_t *mobj)
|
||||||
boolean dojump = false, targonground, love, makeheart = false;
|
boolean dojump = false, targonground, love, makeheart = false;
|
||||||
if (mobj->target != player->mo)
|
if (mobj->target != player->mo)
|
||||||
P_SetTarget(&mobj->target, player->mo);
|
P_SetTarget(&mobj->target, player->mo);
|
||||||
targonground = (P_IsObjectOnGround(mobj->target) && (player->panim == PA_IDLE || player->panim == PA_WALK || player->panim == PA_RUN));
|
// Tatsuru: Don't try to hug them if they're above or below you!
|
||||||
|
targonground = (P_IsObjectOnGround(mobj->target) && (player->panim == PA_IDLE || player->panim == PA_WALK || player->panim == PA_RUN) && player->mo->z == mobj->z);
|
||||||
love = (player->skin == 0 || player->skin == 5);
|
love = (player->skin == 0 || player->skin == 5);
|
||||||
|
|
||||||
switch (stat)
|
switch (stat)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue