mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
MF_NOSQUISH to disable K_Squish
This commit is contained in:
parent
4f6121cef2
commit
51941f5896
2 changed files with 4 additions and 1 deletions
|
|
@ -3574,7 +3574,8 @@ static void P_CheckFloatbobPlatforms(mobj_t *mobj)
|
||||||
|
|
||||||
static void P_SquishThink(mobj_t *mobj)
|
static void P_SquishThink(mobj_t *mobj)
|
||||||
{
|
{
|
||||||
if (!(mobj->eflags & MFE_SLOPELAUNCHED))
|
if (!(mobj->flags & MF_NOSQUISH) &&
|
||||||
|
!(mobj->eflags & MFE_SLOPELAUNCHED))
|
||||||
{
|
{
|
||||||
K_Squish(mobj);
|
K_Squish(mobj);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -159,6 +159,8 @@ typedef enum
|
||||||
MF_DONTENCOREMAP = 1<<28,
|
MF_DONTENCOREMAP = 1<<28,
|
||||||
// Hitbox extends just as far below as above.
|
// Hitbox extends just as far below as above.
|
||||||
MF_PICKUPFROMBELOW = 1<<29,
|
MF_PICKUPFROMBELOW = 1<<29,
|
||||||
|
// Disable momentum-based squash and stretch.
|
||||||
|
MF_NOSQUISH = 1<<30,
|
||||||
// free: to and including 1<<31
|
// free: to and including 1<<31
|
||||||
} mobjflag_t;
|
} mobjflag_t;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue