• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

PC Inconsistency in grenade damage / projectile ownership

Category: Code.
Reproducibility: Always.
Summary: Grenade damage changes depending on which weapon is currently held by player.

On Fleshpound + VS HE Grenade of Commando (lvl 25, Backup, Hollow Point) example:

Grenade damage = 300, FP vulnerability = x1.5, Base damage to FP = 450.

1. Player holding any on-perk AR. Damage = 450 x 1.55 = 698 points, where x1.55 is damage bonus from passive and Hollow Point skill.

2. Player holding 9mm pistol. Damage = 450 + (450 x 1.1) = 945. Note that there is no damage bonus from passive and HP because your currently holding weapon (9mm) is OFF perk, however there is Backup bonus.

3. Player holding knife. Damage = 450 + (450 x 0.25) + (450 x 0.3) + (450 x 1.1) = 1193 points of damage. All In: x0.55 from passive and HP (because knife is all-perk weapon) + x1.1 because knife is a Backup weapon.

Description: Simple as that, function GetWeaponFromDamageCauser from KFPerk grabs whatever weapon player is currently holding if the damage causer is a projectile. The HE grenade may belong to AR, 9mm or knife. Depending on its owner it does different math within perk's ModifyDamageGiven function.
Online/Offline: Both.