Fix unintended fire damage buffs

This commit is contained in:
Anton Tarasenko 2024-09-01 18:10:17 +07:00
parent b4b3111440
commit da810d50f1
3 changed files with 1 additions and 9 deletions

View File

@ -15,12 +15,6 @@ static function class<Grenade> GetNadeType(KFPlayerReplicationInfo KFPRI){
//return class'NiceMedicNadePoison';
return class'NiceNade';
}
static function int AddFireDamage(KFPlayerReplicationInfo KFPRI, KFMonster Injured, KFPawn DamageTaker, int InDamage, class<NiceWeaponDamageType> DmgType){
if(class<NiceDamTypeFire>(DmgType) != none){
return float(InDamage) * 1.5;
}
return 0.0;
}
static function float GetHealthBarsDistanceMulti(KFPlayerReplicationInfo KFPRI){
/*if(KFPRI != none && SomeoneHasSkill(NicePlayerController(KFPRI.Owner), class'NiceSkillCommandoStrategist'))
return class'NiceSkillCommandoStrategist'.default.visionRadius;*/

View File

@ -219,8 +219,6 @@ static function int AddRegDamage(KFPlayerReplicationInfo KFPRI, KFMonster Injure
}
// Allows to buff only fire component of damage.
static function int AddFireDamage(KFPlayerReplicationInfo KFPRI, KFMonster Injured, KFPawn DamageTaker, int InDamage, class<NiceWeaponDamageType> DmgType){
if(DmgType != none)
return InDamage * DmgType.default.heatPart;
return InDamage;
}
static function float stunDurationMult(KFPlayerReplicationInfo KFPRI, KFMonster Injured, KFPawn DamageTaker, class<NiceWeaponDamageType> DmgType){

View File

@ -2,7 +2,7 @@ class NiceHFRPFire extends NiceFire;
defaultproperties
{
ProjectileSpeed=1000.000000
ProjectileSpeed=2000.000000
FireAimedAnim="Fire_Iron"
RecoilRate=0.070000
maxVerticalRecoilAngle=70