Hello All!
I need help with creating a new perk bonus for my new perk.
The Perk Bonus is called ModifyOverheatCoolDownRate and it is to reduce the duration of guns cooling down like the M134 Minigun made by the Russian Modders.
Here is what I have coded so far in my perk file:
and in my own VeterancyTypes file:
How would I make it affect the cooldown rate of the weapons like M134?
I need help with creating a new perk bonus for my new perk.
The Perk Bonus is called ModifyOverheatCoolDownRate and it is to reduce the duration of guns cooling down like the M134 Minigun made by the Russian Modders.
Here is what I have coded so far in my perk file:
Code:
static function float ModifyOverheatCoolDownRate(KFPlayerReplicationInfo KFPRI, class<KFWeapon> Other, out float CDRate)
{
if ( M134DT(Other) != none )
{
if ( KFPRI.ClientVeteranSkillLevel <= 4 )
{
CDRate = 1.00 - (0.05 * float(KFPRI.ClientVeteranSkillLevel));
}
else if ( KFPRI.ClientVeteranSkillLevel <= 5 )
{
CDRate = 0.60;
else
{
CDRate = 0.40; // Level 6 and beyond - 60% Faster CoolDown Rate
}
return CDRate;
}
CDRate = 1.0;
return CDRate;
}
and in my own VeterancyTypes file:
Code:
static function float ModifyOverheatCoolDownRate(KFPlayerReplicationInfo KFPRI, class<KFWeapon> Other, out float CDRate)
{
CDRate = 1.0;
return 1.0;
}
How would I make it affect the cooldown rate of the weapons like M134?
Last edited: