KF2-Server-Extension/ServerExt/Classes/Ext_TraitMedShield.uc
2020-11-28 23:04:55 +03:00

33 lines
933 B
Ucode

Class Ext_TraitMedShield extends Ext_TraitBase;
static function ApplyEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
{
Ext_PerkFieldMedic(Perk).HealingShieldPct = 10.0f + (5.f + ((float(Level) - 1.f) * 5.f));
}
static function CancelEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
{
Ext_PerkFieldMedic(Perk).HealingShieldPct = 10.0f;
}
static function TraitActivate(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
{
Ext_PerkFieldMedic(Perk).bHealingShield = true;
}
static function TraitDeActivate(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
{
Ext_PerkFieldMedic(Perk).bHealingShield = false;
}
defaultproperties
{
SupportedPerk=class'Ext_PerkFieldMedic'
NumLevels=5
DefLevelCosts(0)=35
DefLevelCosts(1)=10
DefLevelCosts(2)=20
DefLevelCosts(3)=30
DefLevelCosts(4)=40
DefMinLevel=100
}