Menus overhaul #14
@ -899,18 +899,24 @@ function BileDamageEffect( int damage,
|
|||||||
NextBileTime = Level.TimeSeconds + BileFrequency;
|
NextBileTime = Level.TimeSeconds + BileFrequency;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function float GetDecapDamageModifier( class<NiceWeaponDamageType> damageType,
|
function float GetDecapDamageModifier( class<NiceWeaponDamageType> damageType,
|
||||||
NicePlayerController nicePlayer,
|
NicePlayerController nicePlayer,
|
||||||
KFPlayerReplicationInfo KFPRI){
|
KFPlayerReplicationInfo KFPRI)
|
||||||
|
{
|
||||||
local float damageMod;
|
local float damageMod;
|
||||||
local bool shouldDoGoodDecap;
|
local bool shouldDoGoodDecap;
|
||||||
local bool hasTrashCleaner;
|
local bool hasTrashCleaner;
|
||||||
local bool isPerkedPickup;
|
local bool isPerkedPickup;
|
||||||
local class<NiceWeaponPickup> pickupClass;
|
local class<NiceWeaponPickup> pickupClass;
|
||||||
local class<NiceVeterancyTypes> niceVet;
|
local class<NiceVeterancyTypes> niceVet;
|
||||||
|
|
||||||
|
// KFPRI accessed none fix
|
||||||
|
if (KFPRI != none)
|
||||||
niceVet = class<NiceVeterancyTypes>(KFPRI.ClientVeteranSkill);
|
niceVet = class<NiceVeterancyTypes>(KFPRI.ClientVeteranSkill);
|
||||||
isPerkedPickup = false;
|
isPerkedPickup = false;
|
||||||
if(niceVet != none){
|
if (niceVet != none)
|
||||||
|
{
|
||||||
pickupClass = niceVet.static.GetPickupFromDamageType(damageType);
|
pickupClass = niceVet.static.GetPickupFromDamageType(damageType);
|
||||||
if (pickupClass != none)
|
if (pickupClass != none)
|
||||||
isPerkedPickup = niceVet.static.IsPerkedPickup(pickupClass);
|
isPerkedPickup = niceVet.static.IsPerkedPickup(pickupClass);
|
||||||
@ -926,15 +932,13 @@ function float GetDecapDamageModifier( class<NiceWeaponDamageType> damageType,
|
|||||||
if (nicePlayer != none)
|
if (nicePlayer != none)
|
||||||
hasTrashCleaner = class'NiceVeterancyTypes'.static.
|
hasTrashCleaner = class'NiceVeterancyTypes'.static.
|
||||||
hasSkill(nicePlayer, class'NiceSkillCommandoTrashCleaner');
|
hasSkill(nicePlayer, class'NiceSkillCommandoTrashCleaner');
|
||||||
if(hasTrashCleaner){
|
if (hasTrashCleaner)
|
||||||
damageMod = FMin(
|
{
|
||||||
damageMod,
|
damageMod = FMin(damageMod, class'NiceSkillCommandoTrashCleaner'.default.decapitationMultiLimit);
|
||||||
class'NiceSkillCommandoTrashCleaner'.default.
|
|
||||||
decapitationMultiLimit
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
return damageMod;
|
return damageMod;
|
||||||
}
|
}
|
||||||
|
|
||||||
function DealDecapDamage( int damage,
|
function DealDecapDamage( int damage,
|
||||||
Pawn instigatedBy,
|
Pawn instigatedBy,
|
||||||
Vector hitLocation,
|
Vector hitLocation,
|
||||||
|
Loading…
Reference in New Issue
Block a user