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

19 lines
561 B
Ucode
Raw Normal View History

Class Ext_TraitAcidicCompound extends Ext_TraitBase;
static function TraitActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Ext_PerkFieldMedic(Perk).bUseToxicDamage = true;
}
static function TraitDeActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Ext_PerkFieldMedic(Perk).bUseToxicDamage = false;
}
defaultproperties
{
SupportedPerk=class'Ext_PerkFieldMedic'
TraitName="Acidic Compound"
DefLevelCosts(0)=15
DefMinLevel=5
Description="When activated medic weapons have a chance to poison zeds."
}