"exit at low hp" sectors now exit without dealing damage.

This commit is contained in:
Mari the Deer 2023-08-25 18:16:07 +02:00
commit 96b334f3de
2 changed files with 7 additions and 4 deletions

View file

@ -412,10 +412,13 @@ Class Demolitionist : PlayerPawn
if ( damage <= 0 ) return Super.DamageMobj(inflictor,source,damage,mod,flags,angle);
if ( !inflictor && !source && (FloorSector.flags&Sector.SECF_ENDLEVEL) )
{
// end level hax
// nah, man, just end the level
level.ExitLevel(0,false);
return 0;
/*// end level hax
damage = max(50,health-100);
flags |= DMG_FORCED|DMG_NO_ARMOR;
mod = 'EndLevel';
mod = 'EndLevel';*/
}
int oldpchance = PainChance;
if ( damage < 5 ) PainChance = 0;