/***************************************************************************** In Items of class'SBSuperHealth' you can set *HealMax* to any value. *bSuperHeal* has no effect here Version 0, 24 Jun 2025, SeriousBarbie AT barbies DOT world *****************************************************************************/ class SBSuperHealth expands SuperHealth; var (Health) int HealMax; auto state Pickup { function Touch(actor Other) { local Pawn P; if (ValidTouch(Other)) { P = Pawn(Other); // if (bSuperHeal) HealMax = HealMax * 2.0; if (P.Health < HealMax) { P.Health += HealingAmount; if (P.Health > HealMax) P.Health = HealMax; PlayPickupMessage(P); PlaySound (PickupSound,,2.5); if ( Level.Game.Difficulty > 1 ) Other.MakeNoise(0.1 * Level.Game.Difficulty); SetRespawn(); } } } } defaultproperties { HealMax=500 HealingAmount=300 ItemName="SuperHealth" RespawnTime=607.000000 }