Menus overhaul #14
1 changed files with 5 additions and 8 deletions
bleed inv stuck fix
commit
941991e799
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue