"exit at low hp" sectors now exit without dealing damage.
This commit is contained in:
parent
55e2279c19
commit
96b334f3de
2 changed files with 7 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue