Cap overheals on map change.

This commit is contained in:
Mari the Deer 2021-09-07 00:51:56 +02:00
commit e2e8d23599
3 changed files with 5 additions and 8 deletions

View file

@ -132,6 +132,8 @@ extend Class SWWMHandler
if ( !SWWMWeapon(i) ) continue;
SWWMWeapon(i).hastravelled = false;
}
// cap health to 200
if ( p.Health > 200 ) p.Health = p.mo.Health = 200;
}
override void PlayerRespawned( PlayerEvent e )