KF2-Server-Extension/ServerExt/Classes/Ext_TraitFireRange.uc
2017-10-19 21:00:49 -05:00

17 lines
569 B
Ucode

Class Ext_TraitFireRange extends Ext_TraitBase;
static function TraitActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
KFPlayerReplicationInfo(Perk.PlayerOwner.PlayerReplicationInfo).bExtraFireRange = true;
}
static function TraitDeActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
KFPlayerReplicationInfo(Perk.PlayerOwner.PlayerReplicationInfo).bExtraFireRange = false;
}
defaultproperties
{
TraitName="Extra Fire Range"
DefLevelCosts(0)=35
Description="Add some additional fire range to flamethrowers."
}