Ring Box mapper arg

This commit is contained in:
AJ Martinez 2023-08-07 22:39:11 -07:00
parent 56c5e367ab
commit 688ba7a705
2 changed files with 3 additions and 1 deletions

View file

@ -114,7 +114,7 @@ void Obj_RandomItemVisuals(mobj_t *mobj)
// the player's cleared out a good portion of the map.
//
// Then extraval1 starts ticking up and triggers the transformation from Ringbox to Random Item.
if (mobj->fuse == 0 && !(mobj->flags & MF_NOCLIPTHING)
if (mobj->fuse == 0 && !(mobj->flags & MF_NOCLIPTHING) && !(mobj->flags2 & MF2_AMBUSH)
&& !cv_thunderdome.value && !(modeattacking & ATTACKING_SPB))
{
mobj->extravalue1++;

View file

@ -13273,6 +13273,8 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj)
P_SetThingPosition(mobj);
}
}
if (mthing->args[0] == 1)
mobj->flags2 |= MF2_AMBUSH;
break;
}
case MT_ITEMCAPSULE: