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

26 lines
864 B
Ucode
Raw Normal View History

2017-10-20 02:00:49 +00:00
Class Ext_TraitSupply extends Ext_TraitBase;
var() Texture2D SupplyIcon;
static function ApplyEffectOn( KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Ext_TraitSupplyData(Data).SpawnSupplier(Player);
}
static function CancelEffectOn( KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Ext_TraitSupplyData(Data).RemoveSupplier();
}
static function PlayerDied( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Ext_TraitSupplyData(Data).RemoveSupplier();
}
defaultproperties
{
TraitName="Ammunition Supply"
DefLevelCosts(0)=50
Description="With this trait you can supply ammunition for your team mates. For each use you will receive a little bit of XP points."
TraitData=class'Ext_TraitSupplyData'
SupplyIcon=Texture2D'UI_World_TEX.Support_Supplier_HUD'
}