First commit
This commit is contained in:
commit
5b48414900
263 changed files with 24830 additions and 0 deletions
14
sources/Perks/Commando/NiceDamageTypeVetCommando.uc
Normal file
14
sources/Perks/Commando/NiceDamageTypeVetCommando.uc
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
class NiceDamageTypeVetCommando extends NiceWeaponDamageType
|
||||
abstract;
|
||||
static function AwardKill(KFSteamStatsAndAchievements KFStatsAndAchievements, KFPlayerController Killer, KFMonster Killed ){
|
||||
if(Killed.IsA('ZombieStalker'))
KFStatsAndAchievements.AddStalkerKill();
|
||||
}
|
||||
static function AwardDamage(KFSteamStatsAndAchievements KFStatsAndAchievements, int Amount){
|
||||
KFStatsAndAchievements.AddBullpupDamage(Amount);
|
||||
}
|
||||
static function AwardNiceDamage(KFSteamStatsAndAchievements KFStatsAndAchievements, int Amount, int HL){
|
||||
if(SRStatsBase(KFStatsAndAchievements) != none && SRStatsBase(KFStatsAndAchievements).Rep != none)
SRStatsBase(KFStatsAndAchievements).Rep.ProgressCustomValue(Class'NiceVetCommandoExp', Int(Float(Amount) * class'NicePack'.default.vetCommandoDamageExpCost * getScale(HL)));
|
||||
}
|
||||
defaultproperties
|
||||
{
|
||||
}
|
||||
38
sources/Perks/Commando/NiceVetCommando.uc
Normal file
38
sources/Perks/Commando/NiceVetCommando.uc
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
class NiceVetCommando extends NiceVeterancyTypes
|
||||
abstract;
|
||||
static function AddCustomStats(ClientPerkRepLink Other){
|
||||
other.AddCustomValue(Class'NiceVetCommandoExp');
|
||||
}
|
||||
static function int GetStatValueInt(ClientPerkRepLink StatOther, byte ReqNum){
|
||||
return StatOther.GetCustomValueInt(Class'NiceVetCommandoExp');
|
||||
}
|
||||
static function array<int> GetProgressArray(byte ReqNum, optional out int DoubleScalingBase){
|
||||
return default.progressArray0;
|
||||
}
|
||||
static function float GetHealthBarsDistanceMulti(KFPlayerReplicationInfo KFPRI){
|
||||
if(KFPRI != none && SomeoneHasSkill(NicePlayerController(KFPRI.Owner), class'NiceSkillCommandoStrategist'))
return class'NiceSkillCommandoStrategist'.default.visionRadius;
|
||||
return 0.0;
|
||||
}
|
||||
static function float GetStalkerViewDistanceMulti(KFPlayerReplicationInfo KFPRI){
|
||||
if(KFPRI != none && SomeoneHasSkill(NicePlayerController(KFPRI.Owner), class'NiceSkillCommandoStrategist'))
return class'NiceSkillCommandoStrategist'.default.visionRadius;
|
||||
return 0.0;
|
||||
}
|
||||
static function float GetMagCapacityMod(KFPlayerReplicationInfo KFPRI, KFWeapon Other){
|
||||
local class<NiceWeaponPickup> pickupClass;
|
||||
pickupClass = GetPickupFromWeapon(other.class);
|
||||
if(IsPerkedPickup(pickupClass) && HasSkill(NicePlayerController(KFPRI.Owner), class'NiceSkillCommandoLargerMags'))
return class'NiceSkillCommandoLargerMags'.default.sizeBonus;
|
||||
return 1.0;
|
||||
}
|
||||
static function float GetReloadSpeedModifierStatic(KFPlayerReplicationInfo KFPRI, class<KFWeapon> Other){
|
||||
return 1.3;
|
||||
}
|
||||
static function int ZedTimeExtensions(KFPlayerReplicationInfo KFPRI){
|
||||
if(HasSkill(NicePlayerController(KFPRI.Owner), class'NiceSkillCommandoTactitian'))
return class'NiceSkillCommandoTactitian'.default.bonusExt + 3;
|
||||
return 3;
|
||||
}
|
||||
static function string GetCustomLevelInfo(byte Level){
|
||||
return default.CustomLevelInfo;
|
||||
}
|
||||
defaultproperties
|
||||
{
bNewTypePerk=True
SkillGroupA(0)=Class'NicePack.NiceSkillCommandoTactitian'
SkillGroupA(1)=Class'NicePack.NiceSkillCommandoCriticalFocus'
SkillGroupA(2)=Class'NicePack.NiceSkillCommandoLargerMags'
SkillGroupA(3)=Class'NicePack.NiceSkillCommandoPerfectExecution'
SkillGroupA(4)=Class'NicePack.NiceSkillCommandoZEDProfessional'
SkillGroupB(0)=Class'NicePack.NiceSkillCommandoStrategist'
SkillGroupB(1)=Class'NicePack.NiceSkillCommandoTrashCleaner'
SkillGroupB(2)=Class'NicePack.NiceSkillCommandoExplosivePower'
SkillGroupB(3)=Class'NicePack.NiceSkillCommandoThinOut'
SkillGroupB(4)=Class'NicePack.NiceSkillCommandoZEDEvisceration'
progressArray0(0)=100
progressArray0(1)=1000
progressArray0(2)=3000
progressArray0(3)=10000
progressArray0(4)=30000
progressArray0(5)=100000
progressArray0(6)=200000
DefaultDamageType=Class'NicePack.NiceDamageTypeVetCommando'
OnHUDIcons(0)=(PerkIcon=Texture'KillingFloorHUD.Perks.Perk_Commando',StarIcon=Texture'KillingFloorHUD.HUD.Hud_Perk_Star',DrawColor=(B=255,G=255,R=255,A=255))
OnHUDIcons(1)=(PerkIcon=Texture'KillingFloor2HUD.Perk_Icons.Perk_Commando_Gold',StarIcon=Texture'KillingFloor2HUD.Perk_Icons.Hud_Perk_Star_Gold',DrawColor=(B=255,G=255,R=255,A=255))
OnHUDIcons(2)=(PerkIcon=Texture'ScrnTex.Perks.Perk_Commando_Green',StarIcon=Texture'ScrnTex.Perks.Hud_Perk_Star_Green',DrawColor=(B=255,G=255,R=255,A=255))
OnHUDIcons(3)=(PerkIcon=Texture'ScrnTex.Perks.Perk_Commando_Blue',StarIcon=Texture'ScrnTex.Perks.Hud_Perk_Star_Blue',DrawColor=(B=255,G=255,R=255,A=255))
OnHUDIcons(4)=(PerkIcon=Texture'ScrnTex.Perks.Perk_Commando_Purple',StarIcon=Texture'ScrnTex.Perks.Hud_Perk_Star_Purple',DrawColor=(B=255,G=255,R=255,A=255))
OnHUDIcons(5)=(PerkIcon=Texture'ScrnTex.Perks.Perk_Commando_Orange',StarIcon=Texture'ScrnTex.Perks.Hud_Perk_Star_Orange',DrawColor=(B=255,G=255,R=255,A=255))
CustomLevelInfo="Level up by doing damage with perked weapons|30% faster reload with all weapons|You get three additional Zed-Time Extensions"
PerkIndex=3
OnHUDIcon=Texture'KillingFloorHUD.Perks.Perk_Commando'
OnHUDGoldIcon=Texture'KillingFloor2HUD.Perk_Icons.Perk_Commando_Gold'
VeterancyName="Commando"
Requirements(0)="Required experience for the next level: %x"
|
||||
}
|
||||
4
sources/Perks/Commando/NiceVetCommandoExp.uc
Normal file
4
sources/Perks/Commando/NiceVetCommandoExp.uc
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
class NiceVetCommandoExp extends SRCustomProgressInt;
|
||||
defaultproperties
|
||||
{
ProgressName="Commando exp."
|
||||
}
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
class NiceSkillCommandoCriticalFocus extends NiceSkill
|
||||
abstract;
|
||||
var float cooldown;
|
||||
var float healthBoundary;
|
||||
function static SkillSelected(NicePlayerController nicePlayer){
|
||||
local NicePack niceMutator;
|
||||
super.SkillSelected(nicePlayer);
|
||||
niceMutator = class'NicePack'.static.Myself(nicePlayer.Level);
|
||||
if(niceMutator == none || niceMutator.Role == Role_AUTHORITY)
return;
|
||||
niceMutator.AddCounter("npCommandoCriticalFocus", Texture'NicePackT.HudCounter.commandoCounter', false, default.class);
|
||||
}
|
||||
function static SkillDeSelected(NicePlayerController nicePlayer){
|
||||
local NicePack niceMutator;
|
||||
super.SkillDeSelected(nicePlayer);
|
||||
niceMutator = class'NicePack'.static.Myself(nicePlayer.Level);
|
||||
if(niceMutator == none || niceMutator.Role == Role_AUTHORITY)
return;
|
||||
niceMutator.RemoveCounter("npCommandoCriticalFocus");
|
||||
}
|
||||
function static int UpdateCounterValue(string counterName, NicePlayerController nicePlayer){
|
||||
local NiceHumanPawn nicePawn;
|
||||
if(nicePlayer == none || counterName != "npCommandoCriticalFocus")
return 0;
|
||||
nicePawn = NiceHumanPawn(nicePlayer.pawn);
|
||||
if(nicePawn == none)
return 0;
|
||||
return Ceil(nicePawn.forcedZedTimeCountDown);
|
||||
}
|
||||
defaultproperties
|
||||
{
cooldown=30.000000
healthBoundary=50.000000
SkillName="Critical focus"
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
class NiceSkillCommandoExplosivePower extends NiceSkill
|
||||
abstract;
|
||||
var float dmgMod;
|
||||
defaultproperties
|
||||
{
dmgMod=1.200000
SkillName="Explosive power"
SkillEffects="Burst fire deals 20% more damage and has reduced delay between shots."
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
class NiceSkillCommandoLargerMags extends NiceSkill
|
||||
abstract;
|
||||
var float sizeBonus;
|
||||
defaultproperties
|
||||
{
sizeBonus=1.500000
SkillName="Larger mags"
SkillEffects="50% larger assault rifles' magazines."
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class NiceSkillCommandoPerfectExecution extends NiceSkill
|
||||
abstract;
|
||||
defaultproperties
|
||||
{
SkillName="Perfect execution"
SkillEffects="Raging scrake or fleshpound activates zed-time."
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
class NiceSkillCommandoStrategist extends NiceSkill
|
||||
abstract;
|
||||
var float visionRadius; // 1.0 ~ 16m
|
||||
defaultproperties
|
||||
{
visionRadius=1.000000
bBroadcast=True
SkillName="Strategist"
SkillEffects="You and your teammates can see enemies' health and invisible zeds from 16 meters."
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
class NiceSkillCommandoTactitian extends NiceSkill
|
||||
abstract;
|
||||
var int bonusExt;
|
||||
defaultproperties
|
||||
{
bonusExt=2
SkillName="Tactician"
SkillEffects="Gain two additional zed-time extensions."
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
class NiceSkillCommandoThinOut extends NiceSkill
|
||||
abstract;
|
||||
var float damageMult;
|
||||
var float maxDistance;
|
||||
defaultproperties
|
||||
{
damageMult=2.000000
MaxDistance=800.000000
SkillName="Thin out"
SkillEffects="Deal double damage against non-trash zeds, when there's either a huge zed or another zed of the same type within 16 meters of you."
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
class NiceSkillCommandoTrashCleaner extends NiceSkill
|
||||
abstract;
|
||||
var float decapitationMultiLimit;
|
||||
defaultproperties
|
||||
{
decapitationMultiLimit=0.600000
SkillName="Trash cleaner"
SkillEffects="Get finisher property on your shots against low-health zeds, but your weapons leave more decapitated zeds behind."
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class NiceSkillCommandoZEDEvisceration extends NiceSkill
|
||||
abstract;
|
||||
defaultproperties
|
||||
{
SkillName="Evisceration"
SkillEffects="During zed-time both 'Trash cleaner' and 'Thin out' skills are active."
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class NiceSkillCommandoZEDProfessional extends NiceSkill
|
||||
abstract;
|
||||
defaultproperties
|
||||
{
SkillName="Professionalism"
SkillEffects="Your reloads aren't slowed down during zed-time."
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue