Weapon Damage Formula
Revision as of 23:14, 19 December 2008 by imported>SnakeChomp (Weapon damage formula for gun and melee weapons, unarmed TBD)
Variables
- Weapon damage listed on the weapon form = D
- 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
- Actor strength value = Str
- 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.
Gun Formula
Gun Damage = PerkModifiers(DM * (GunCB + (GunCM * C)) * (D * SB + S * SM))
Melee Formula
Melee Damage = PerkModifiers((StrM * (Str + StrB)) + DM * (MeleeCB + (MeleeCM * C)) * (D * SB + S * SM))
Unarmed Formula
To be determined