Fix: update to KF2 v1096

This commit is contained in:
GenZmeY 2020-06-22 07:47:16 +03:00
parent 245eb9e552
commit a2a5101629
2 changed files with 4 additions and 3 deletions

View File

@ -172,7 +172,7 @@ function OnPlayerXPAdded(INT XP, class<KFPerk> PerkClass)
AwardXP(XP);
}
function AddSmallRadiusKill( byte Difficulty )
function AddSmallRadiusKill( byte Difficulty, class<KFPerk> PerkClass )
{
AwardXP(class'KFPerk_Berserker'.static.GetSmallRadiusKillXP(Difficulty));
}

View File

@ -429,8 +429,9 @@ final function GT_PlayerKilled( Controller Killer, Controller Killed, class<Dama
//Chris: We have to do it earlier here because we need a damage type
KFPC.AddZedKill( MonsterPawn.class, KFG.GameDifficulty, damageType, false );
if( KFPC.ActivePerkManager!=none && KFPC.ActivePerkManager.CanEarnSmallRadiusKillXP(damageType) )
KFG.CheckForBerserkerSmallRadiusKill( MonsterPawn, KFPC );
// No longer aviable since v1096: KFGameInfo.CheckForBerserkerSmallRadiusKill
//if( KFPC.ActivePerkManager!=none && KFPC.ActivePerkManager.CanEarnSmallRadiusKillXP(damageType) )
// KFG.CheckForBerserkerSmallRadiusKill( MonsterPawn, KFPC );
}
}
final function bool CheckPreventDeath( KFPawn_Human Victim, Controller Killer, class<DamageType> damageType )