From 941991e7997936cbb683ed4a415f5df88d5d65b8 Mon Sep 17 00:00:00 2001 From: Shtoyan Date: Sun, 23 Jan 2022 23:07:51 +0400 Subject: [PATCH] bleed inv stuck fix --- sources/Zeds/Mean/MeanBleedInventory.uc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/sources/Zeds/Mean/MeanBleedInventory.uc b/sources/Zeds/Mean/MeanBleedInventory.uc index c3b813d..796923b 100644 --- a/sources/Zeds/Mean/MeanBleedInventory.uc +++ b/sources/Zeds/Mean/MeanBleedInventory.uc @@ -26,19 +26,16 @@ event Timer() locpawn = Pawn(Owner); amAlive = locpawn != none && locpawn.Health > 0; - // if pawn owner is dead or bleed count is done - destroy - if (!amAlive || maxBleedCount < 0) - Destroy(); - - maxBleedCount--; - bleedDamage = bleedLevel * 7; - if (bleedDamage < 1.0) + // if pawn owner is dead or bleed count is done - destroy + if (!amAlive || maxBleedCount < 0 || bleedDamage < 1.0) { - maxBleedCount = 0; + Destroy(); return; } + maxBleedCount--; + if (stalker != none) locpawn.TakeDamage(bleedDamage, stalker, locpawn.Location, vect(0, 0, 0), dmtype_bleed);