Difference between revisions of "Weapon Damage Formula"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>SnakeChomp
m (Minor formatting)
imported>SnakeChomp
(Add information about critical hit damage)
Line 1: Line 1:
=== Variables ===
=== Variables ===
;Weapon damage listed on the [[Weapons|weapon form]] = D
;Weapon damage listed on the [[Weapons|weapon form]] = D
;Weapon crit damage listed on the [[Weapons|weapon form]] = CritD


;[[fDamageWeaponMult]] = DM
;[[fDamageWeaponMult]] = DM
Line 27: Line 29:


;Actor strength value = Str
;Actor strength value = Str
;IsCriticalHit
:This value is 1 if the attack was a critical hit, 0 otherwise


;All perks with a "Calculate weapon damage" entry point = PerkModifiers(x) => y
;All perks with a "Calculate weapon damage" entry point = PerkModifiers(x) => y
:Note that consumables which increase damage, such as the Yao Guai Meat, are implemented by adding a perk to the actor which has a "Calculate weapon damage" entry point for the duration of the effect.
:Note that consumables which increase damage, such as the Yao Guai Meat, are implemented by adding a perk to the actor which has a "Calculate weapon damage" entry point for the duration of the effect.
;All perks with a "Calculate my critical hit damage" entry point = PerkCritModifiers(x) => y


=== Gun Formula ===
=== Gun Formula ===
  Gun Damage = PerkModifiers(DM * (GunCB + (GunCM * C)) * (D * SB + S * SM))
  Gun Damage = IsCriticalHit * PerkCritModifiers(CritD) + PerkModifiers(DM * (GunCB + (GunCM * C)) * (D * SB + S * SM))


=== Melee Formula ===
=== Melee Formula ===
  Melee Damage = PerkModifiers((StrM * (Str + StrB)) + DM * (MeleeCB + (MeleeCM * C)) * (D * SB + S * SM))
  Melee Damage = IsCriticalHit * PerkCritModifiers(CritD) + PerkModifiers((StrM * (Str + StrB)) + DM * (MeleeCB + (MeleeCM * C)) * (D * SB + S * SM))


=== Unarmed Formula ===
=== Unarmed Formula ===
To be determined
To be determined
=== Notes ===
If the value returned by PerkModifiers is 0, the game engine considers the attack to have missed. No blood spatter is made, no hit sound effect is played, and the attack cannot critically hit, even if the critical hit chance is 100% or more.

Revision as of 14:34, 24 December 2008

Variables

Weapon damage listed on the weapon form = D
Weapon crit damage listed on the weapon form = CritD
fDamageWeaponMult = DM
fDamageSkillBase = SB
fDamageSkillMult = SM
Actor skill with the given weapon = S
This value is 10 with 100 skill, 9 with 90 skill, and etc
Weapon condition = C
100% condition gives a value of 1, 90% a value of 0.9, etc
fDamageGunWeapCondMult = GunCM
fDamageGunWeapCondBase = GunCB
fDamageMeleeWeapCondMult = MeleeCM
fDamageMeleeWeapCondBase = MeleeCB
fAVDMeleeDamageStrengthMult = StrM
fAVDMeleeDamageStrengthOffset = StrB
Actor strength value = Str
IsCriticalHit
This value is 1 if the attack was a critical hit, 0 otherwise
All perks with a "Calculate weapon damage" entry point = PerkModifiers(x) => y
Note that consumables which increase damage, such as the Yao Guai Meat, are implemented by adding a perk to the actor which has a "Calculate weapon damage" entry point for the duration of the effect.
All perks with a "Calculate my critical hit damage" entry point = PerkCritModifiers(x) => y

Gun Formula

Gun Damage = IsCriticalHit * PerkCritModifiers(CritD) + PerkModifiers(DM * (GunCB + (GunCM * C)) * (D * SB + S * SM))

Melee Formula

Melee Damage = IsCriticalHit * PerkCritModifiers(CritD) + PerkModifiers((StrM * (Str + StrB)) + DM * (MeleeCB + (MeleeCM * C)) * (D * SB + S * SM))

Unarmed Formula

To be determined

Notes

If the value returned by PerkModifiers is 0, the game engine considers the attack to have missed. No blood spatter is made, no hit sound effect is played, and the attack cannot critically hit, even if the critical hit chance is 100% or more.