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

18 lines
445 B
Ucode

Class Ext_TraitDemoDirectHit extends Ext_TraitBase;
static function TraitActivate(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
{
Ext_PerkDemolition(Perk).bDirectHit = true;
}
static function TraitDeActivate(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
{
Ext_PerkDemolition(Perk).bDirectHit = false;
}
defaultproperties
{
SupportedPerk=class'Ext_PerkDemolition'
DefLevelCosts(0)=65
DefMinLevel=35
}