88f2c71e54
Fixed scoreboard avatars not working Added the ServerExt perk menu to the lobby Made the perk buttons look better (Reset, Unload, Prestige) Added a better damage popup system Added a better pet info hud system Made player info bars fade out with distance Added missing traits from most of the perks Made lobby menu support 12 players Medic Pistol from the trait can't be dropped, sold and has infinite ammo 9mm Pistol now has infinite ammo Pet sirens do not blow up grenades Unlocked all cosmetics and emotes Hide bad cosmetics that were debug Hans pet no longer forces the camera on his death Custom weapons in the trader now support the proper weapon names Updated character info system to support alot of added items
32 lines
1022 B
Ucode
32 lines
1022 B
Ucode
Class Ext_TraitSpartan extends Ext_TraitBase;
|
|
|
|
var array<float> AtkRates;
|
|
|
|
static function ApplyEffectOn( KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
|
|
{
|
|
if( ExtHumanPawn(Player)!=None )
|
|
ExtHumanPawn(Player).bMovesFastInZedTime = true;
|
|
Ext_PerkBerserker(Perk).ZedTimeMeleeAtkRate = 1.f/Default.AtkRates[Level-1];
|
|
}
|
|
static function CancelEffectOn( KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
|
|
{
|
|
if( ExtHumanPawn(Player)!=None )
|
|
ExtHumanPawn(Player).bMovesFastInZedTime = false;
|
|
Ext_PerkBerserker(Perk).ZedTimeMeleeAtkRate = 1.f;
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
SupportedPerk=class'Ext_PerkBerserker'
|
|
TraitGroup=class'Ext_TGroupZEDTime'
|
|
TraitName="ZED TIME - Spartan!"
|
|
NumLevels=3
|
|
DefLevelCosts(0)=50
|
|
DefLevelCosts(1)=40
|
|
DefLevelCosts(2)=80
|
|
Description="This trait lets you move at normal speed and attack faster in ZED-time.|Lv1-3: +50,+120,+300% atk speed"
|
|
AtkRates.Add(1.5)
|
|
AtkRates.Add(2.2)
|
|
AtkRates.Add(4.0)
|
|
DefMinLevel=100
|
|
} |