Menus overhaul #14

Merged
dkanus merged 30 commits from :somechanges into master 2022-01-23 22:14:51 +03:00
Showing only changes of commit 941991e799 - Show all commits

View File

@ -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);