Remove global 50% damage reduction for players (a bit too cheap).

Add 50% crusher damage reduction + chance to break crushers.
Don't spawn gibs when using 'kill monsters'.
Allow player to "fake pick up" unsupported vanilla armor, so specials and item counters can still work.
This commit is contained in:
Mari the Deer 2021-02-18 20:53:28 +01:00
commit 0e12ca15c8
6 changed files with 151 additions and 10 deletions

View file

@ -1486,8 +1486,8 @@ Class SWWMHandler : EventHandler
// gibbing
private void DoGibThing( WorldEvent e )
{
// no gib if it was erased
if ( e.DamageType == 'Ynykron' ) return;
// no gib if it was erased or used the kill monsters cheat
if ( (e.DamageType == 'Ynykron') || (e.DamageType == 'Massacre') ) return;
int gibhealth = e.Thing.GetGibHealth();
bool gotgibbed = (!e.Thing.bDONTGIB && ((e.Inflictor && e.Inflictor.bEXTREMEDEATH) || (e.DamageSource && e.DamageSource.bEXTREMEDEATH) || (e.DamageType == 'Extreme') || (e.Thing.Health < gibhealth)) && (!e.Inflictor || !e.Inflictor.bNOEXTREMEDEATH) && (!e.DamageSource || !e.DamageSource.bNOEXTREMEDEATH));
bool forcegibbed = false;