2017-10-20 02:00:49 +00:00
|
|
|
Class Ext_T_ArmorRegHelp extends Ext_T_HealthRegHelp
|
|
|
|
transient;
|
|
|
|
|
|
|
|
function Timer()
|
|
|
|
{
|
2020-11-28 20:12:58 +00:00
|
|
|
if (PawnOwner==None || PawnOwner.Health<=0)
|
2017-10-20 02:00:49 +00:00
|
|
|
Destroy();
|
2020-11-28 20:12:58 +00:00
|
|
|
else if (PawnOwner.Armor<PawnOwner.MaxArmor)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
|
|
|
PawnOwner.Armor = Min(PawnOwner.Armor+RegCount,PawnOwner.MaxArmor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
|
|
|
}
|