KF2-Server-Extension/ServerExt/Classes/Ext_TraitAirborne.uc

30 lines
978 B
Ucode
Raw Normal View History

2017-10-20 02:00:49 +00:00
Class Ext_TraitAirborne extends Ext_TraitBase;
var array<float> HealRates;
static function TraitActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Ext_PerkFieldMedic(Perk).AirborneAgentHealRate = Default.HealRates[Level-1];
Ext_PerkFieldMedic(Perk).AirborneAgentLevel = (Level<4 ? 1 : 2);
}
static function TraitDeActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Ext_PerkFieldMedic(Perk).AirborneAgentLevel = 0;
}
defaultproperties
{
SupportedPerk=class'Ext_PerkFieldMedic'
TraitName="Airborne Agent"
DefLevelCosts(0)=20
DefLevelCosts(1)=10
DefLevelCosts(2)=10
DefLevelCosts(3)=60
HealRates(0)=0.05
HealRates(1)=0.1
HealRates(2)=0.2
HealRates(3)=0.15
NumLevels=4
DefMinLevel=50
Description="Give extra health boost and area of heal effect for medic darts during ZED-time,|each level gives extra amount of heal boost at a rate of:|Lv 1-3: +5%, +10%, +20%|Lv 4: +15%, but works outside of ZED-time too!"
}