Fix: update to KF2 v1096
This commit is contained in:
parent
245eb9e552
commit
a2a5101629
@ -172,7 +172,7 @@ function OnPlayerXPAdded(INT XP, class<KFPerk> PerkClass)
|
|||||||
AwardXP(XP);
|
AwardXP(XP);
|
||||||
}
|
}
|
||||||
|
|
||||||
function AddSmallRadiusKill( byte Difficulty )
|
function AddSmallRadiusKill( byte Difficulty, class<KFPerk> PerkClass )
|
||||||
{
|
{
|
||||||
AwardXP(class'KFPerk_Berserker'.static.GetSmallRadiusKillXP(Difficulty));
|
AwardXP(class'KFPerk_Berserker'.static.GetSmallRadiusKillXP(Difficulty));
|
||||||
}
|
}
|
||||||
|
@ -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
|
//Chris: We have to do it earlier here because we need a damage type
|
||||||
KFPC.AddZedKill( MonsterPawn.class, KFG.GameDifficulty, damageType, false );
|
KFPC.AddZedKill( MonsterPawn.class, KFG.GameDifficulty, damageType, false );
|
||||||
|
|
||||||
if( KFPC.ActivePerkManager!=none && KFPC.ActivePerkManager.CanEarnSmallRadiusKillXP(damageType) )
|
// No longer aviable since v1096: KFGameInfo.CheckForBerserkerSmallRadiusKill
|
||||||
KFG.CheckForBerserkerSmallRadiusKill( MonsterPawn, KFPC );
|
//if( KFPC.ActivePerkManager!=none && KFPC.ActivePerkManager.CanEarnSmallRadiusKillXP(damageType) )
|
||||||
|
// KFG.CheckForBerserkerSmallRadiusKill( MonsterPawn, KFPC );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
final function bool CheckPreventDeath( KFPawn_Human Victim, Controller Killer, class<DamageType> damageType )
|
final function bool CheckPreventDeath( KFPawn_Human Victim, Controller Killer, class<DamageType> damageType )
|
||||||
|
Loading…
Reference in New Issue
Block a user