bleed inv stuck fix
This commit is contained in:
parent
e26b420656
commit
941991e799
@ -26,19 +26,16 @@ event Timer()
|
|||||||
locpawn = Pawn(Owner);
|
locpawn = Pawn(Owner);
|
||||||
amAlive = locpawn != none && locpawn.Health > 0;
|
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;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
maxBleedCount--;
|
||||||
|
|
||||||
if (stalker != none)
|
if (stalker != none)
|
||||||
locpawn.TakeDamage(bleedDamage, stalker, locpawn.Location,
|
locpawn.TakeDamage(bleedDamage, stalker, locpawn.Location,
|
||||||
vect(0, 0, 0), dmtype_bleed);
|
vect(0, 0, 0), dmtype_bleed);
|
||||||
|
Loading…
Reference in New Issue
Block a user