KF2-Server-Extension/ServerExt/Classes/Ext_TraitMachineGunner.uc
Forrest Keller 88f2c71e54 Added perk changing without dying
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
2017-10-20 02:02:53 -05:00

39 lines
992 B
Ucode

Class Ext_TraitMachineGunner extends Ext_TraitBase;
static function string GetPerkDescription()
{
local string S;
S = Super.GetPerkDescription();
S $= "|Trait requires prestige level: #{FF4000}2";
return S;
}
static function bool MeetsRequirements( byte Lvl, Ext_PerkBase Perk )
{
if( Perk.CurrentLevel<Default.MinLevel || Perk.CurrentPrestige<2 )
return false;
return true;
}
static function TraitActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Ext_PerkCommando(Perk).bUseMachineGunner = true;
}
static function TraitDeActivate( Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data )
{
Ext_PerkCommando(Perk).bUseMachineGunner = false;
}
defaultproperties
{
SupportedPerk=class'Ext_PerkCommando'
TraitGroup=class'Ext_TGroupZEDTime'
TraitName="ZED TIME - Machine Gunner"
NumLevels=1
DefLevelCosts(0)=60
DefMinLevel=55
Description="During Zed time, you do 3% more damage with perks weapons and shoot 3x faster with all guns!"
}