Ballhog active frames 26 -> 15

This commit is contained in:
Antonio Martinez 2025-08-23 16:22:38 -04:00
parent a191c5d394
commit 945c8d5a9c
2 changed files with 10 additions and 1 deletions

View file

@ -75,7 +75,8 @@ boolean K_BananaBallhogCollide(mobj_t *t1, mobj_t *t2)
if (t1->type == MT_BALLHOGBOOM && t2->type == MT_BALLHOGBOOM)
return true; // Ballhogs don't collide with eachother
if (t1->type == MT_BALLHOGBOOM && t2->type == MT_PLAYER && t1->target == t2 )
extern consvar_t cv_debugpickmeup;
if (t1->type == MT_BALLHOGBOOM && t2->type == MT_PLAYER && t1->target == t2 && !cv_debugpickmeup.value)
return true; // Allied hog explosion, not snatchable but shouldn't damage
if (K_TryPickMeUp(t1, t2, false))

View file

@ -7557,6 +7557,14 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
P_MobjCheckWater(mobj);
}
break;
case MT_BALLHOGBOOM:
{
if ((mobj->frame & FF_FRAMEMASK) >= 15)
{
mobj->flags |= MF_NOCLIPTHING;
}
break;
}
case MT_SINK:
if (mobj->momx || mobj->momy)
{