Difference between revisions of "Critical Hit Chance Formula"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>SnakeChomp
(Improve formatting)
imported>SnakeChomp
(New formatting)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
  Critical Hit Chance = PerkModifiers(ConditionFactor * (LuckFactor + CritChanceBonuses) * WeaponFactor) + VATSFactor
  Critical Hit Chance = PerkModifiers(ConditionPenalty * CritChanceActorValue * WeaponMultiplier) + VATSBonus


'''PerkModifiers''' is a function that modifies the input value using any perks active on the actor that have a "Calculate My Critical Hit Chance" [[Entry Point]] and returns the result.
'''PerkModifiers''' is a function that modifies the input value using any perks active on the actor that have a "Calculate My Critical Hit Chance" [[Entry Point]] and returns the result.


'''ConditionFactor''' = WeaponCondition * fWeaponConditionCriticalChanceMult
'''ConditionPenalty''' = fWeaponConditionCriticalChanceMult * ''WeaponCondition''
:*fWeaponConditionCriticalChanceMult = 0.1
:*WeaponCondition is 10 at 100% condition, 5 at 50% condition, and etc.


'''LuckFactor''' = fAVDCritLuckBase + ActorLuckValue * fAVDCritLuckMult
'''CritChanceActorValue''' is an [[ActorValue]]. The base value = fAVDCritLuckBase + fAVDCritLuckMult * ''ActorLuckValue''
:*fAVDCritLuckBase = 0
:The value of the CritChance actor value can be increased or decreased by certain abilities, effects, perks, enchanted armors, and consumables. For example, the Finesse perk is implemented by granting the player an ability which increases critical chance by 5. With this perk, the base value calculated from luck is further increased by 5 when calculating the CritChance actor value.
:*fAVDCritLuckMult = 1
:*ActorLuckValue is the actor's luck value.


'''CritChanceBonuses''' are granted by certain abilities. For example, the Finesse perk is implemented as an ability which applies the "Increase Critical Chance" effect with a magnitute of 5, resulting in a value of 5 for CritChanceBonuses.
'''WeaponMultiplier''' is the "Crit % Mult" specified on the [[Weapons|weapon form]]. For automatic weapons, this value is divided by the "Fire Rate", also specified on the weapon form. For example, an Assault Rifle has a "Crit % Mult" of 1.0, and a "Fire Rate" of 8, so the WeaponMultiplier will be 0.125.


'''WeaponFactor''' is the "Crit % Mult" specified on the [[Weapons|weapon form]]. For automatic weapons, this value is divided by the "Fire Rate", also specified on the weapon form. For example, an Assault Rifle has a "Crit % Mult" of 1.0, and a "Fire Rate" of 8, so the WeaponFactor will be 0.125.
'''VATSBonus''' = fVATSCriticalChanceBonus * ''IsUsingVATS''


'''VATSFactor''' = fVATSCriticalChanceBonus
 
:*fVATSCriticalChanceBonus = 15
''ActorLuckValue'' is the actor's luck value.
:*:This value is zero unless the attack is being made using VATS.
 
''WeaponCondition'' is 10 at 100% condition, 5 at 50% condition, and etc.
 
''IsUsingVATS'' is 1 if the attack is being made with VATS, 0 otherwise.
 
=== Game settings used by this formula ===
 
{{SettingGroupHeader}}
{{SettingGroupSetting
|Name = fWeaponConditionCriticalChanceMult
|Default = 0.1
|Description = Used when calculating ''ConditionPenalty''
}}
{{SettingGroupSetting
|Name = fAVDCritLuckBase
|Default = 0
|Description = Used when calculating the ''CritChanceActorValue''
}}
{{SettingGroupSetting
|Name = fAVDCritLuckMult
|Default = 1
|Description = Used when calculating the ''CritChanceActorValue''
}}
{{SettingGroupSetting
|Name = fVATSCriticalChanceBonus
|Default = 15
|Description = Applied as a bonus chance to critically hit when attacking with VATS. A value of 100 adds 100% chance to crit, 15 is 15% chance to crit, etc.
}}
{{SettingGroupFooter}}

Latest revision as of 22:04, 14 January 2009

Critical Hit Chance = PerkModifiers(ConditionPenalty * CritChanceActorValue * WeaponMultiplier) + VATSBonus

PerkModifiers is a function that modifies the input value using any perks active on the actor that have a "Calculate My Critical Hit Chance" Entry Point and returns the result.

ConditionPenalty = fWeaponConditionCriticalChanceMult * WeaponCondition

CritChanceActorValue is an ActorValue. The base value = fAVDCritLuckBase + fAVDCritLuckMult * ActorLuckValue

The value of the CritChance actor value can be increased or decreased by certain abilities, effects, perks, enchanted armors, and consumables. For example, the Finesse perk is implemented by granting the player an ability which increases critical chance by 5. With this perk, the base value calculated from luck is further increased by 5 when calculating the CritChance actor value.

WeaponMultiplier is the "Crit % Mult" specified on the weapon form. For automatic weapons, this value is divided by the "Fire Rate", also specified on the weapon form. For example, an Assault Rifle has a "Crit % Mult" of 1.0, and a "Fire Rate" of 8, so the WeaponMultiplier will be 0.125.

VATSBonus = fVATSCriticalChanceBonus * IsUsingVATS


ActorLuckValue is the actor's luck value.

WeaponCondition is 10 at 100% condition, 5 at 50% condition, and etc.

IsUsingVATS is 1 if the attack is being made with VATS, 0 otherwise.

Game settings used by this formula[edit | edit source]

Setting Default Description
fWeaponConditionCriticalChanceMult 0.1 Used when calculating ConditionPenalty
fAVDCritLuckBase 0 Used when calculating the CritChanceActorValue
fAVDCritLuckMult 1 Used when calculating the CritChanceActorValue
fVATSCriticalChanceBonus 15 Applied as a bonus chance to critically hit when attacking with VATS. A value of 100 adds 100% chance to crit, 15 is 15% chance to crit, etc.