I do not know why the bash attack was counted as an unarmed attack, so I implemented a condition: if it is a bash attack, then isUnarmedAttack is set to false so we calculate weaponAttack (CalcWeaponRating). This allows us to correctly calculate weapon damage, as we can have bash damage when wielding a weapon. In the weapon damage calculations, I multiplied the total damage by 0.3, which reflects the typical damage ratio of a bash attack compared to a regular attack.
[!IMPORTANT]
Fix bash attack classification and adjust damage calculation in TES5DamageFormula.cpp.
Behavior:
Modify IsUnarmedAttack in TES5DamageFormula.cpp to return false for bash attacks, ensuring they are not treated as unarmed.
Adjust CalculateDamage in TES5DamageFormulaImpl to multiply damage by 0.3 for bash attacks, reflecting typical bash damage ratio.
Misc:
Add comment for bash damage formula in CalculateDamage.
This description was created by for 9016322337ef5d7ac75668cc7788f90731c42683. It will automatically update as commits are pushed.
I do not know why the bash attack was counted as an unarmed attack, so I implemented a condition: if it is a bash attack, then isUnarmedAttack is set to false so we calculate weaponAttack (CalcWeaponRating). This allows us to correctly calculate weapon damage, as we can have bash damage when wielding a weapon. In the weapon damage calculations, I multiplied the total damage by 0.3, which reflects the typical damage ratio of a bash attack compared to a regular attack.