Give MT_WOODDEBRIS the MF_SCENERY flag, so it can be made to join its MT_ROCKCRUMBLEn friends in dying after hitting the ground.
(Untested)
This commit is contained in:
parent
e63e36f5e4
commit
88dc34818e
|
@ -19480,7 +19480,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
|
||||||
100, // mass
|
100, // mass
|
||||||
0, // damage
|
0, // damage
|
||||||
sfx_None, // activesound
|
sfx_None, // activesound
|
||||||
MF_NOBLOCKMAP|MF_NOCLIPTHING|MF_RUNSPAWNFUNC|MF_NOCLIPHEIGHT, // flags
|
MF_NOBLOCKMAP|MF_NOCLIPTHING|MF_RUNSPAWNFUNC|MF_NOCLIPHEIGHT|MF_SCENERY, // flags
|
||||||
S_NULL // raisestate
|
S_NULL // raisestate
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -7332,6 +7332,7 @@ void P_MobjThinker(mobj_t *mobj)
|
||||||
case MT_ROCKCRUMBLE14:
|
case MT_ROCKCRUMBLE14:
|
||||||
case MT_ROCKCRUMBLE15:
|
case MT_ROCKCRUMBLE15:
|
||||||
case MT_ROCKCRUMBLE16:
|
case MT_ROCKCRUMBLE16:
|
||||||
|
case MT_WOODDEBRIS:
|
||||||
if (mobj->z <= P_FloorzAtPos(mobj->x, mobj->y, mobj->z, mobj->height)
|
if (mobj->z <= P_FloorzAtPos(mobj->x, mobj->y, mobj->z, mobj->height)
|
||||||
&& mobj->state != &states[mobj->info->deathstate])
|
&& mobj->state != &states[mobj->info->deathstate])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue