source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

[TF2] Fix organ props spawning from non-Vita-Saw damage

Open Tkain opened this issue 9 months ago • 1 comments

Description

As part of the Vita-Saw's weapon gimmick of collecting organs from players, organ props are spawned whenever a player is hit with the Vita-Saw. However, the check for when to spawn an organ prop is imprecise; currently, TF2 will spawn a prop when a player takes damage if their attacker is a Medic holding the Vita-Saw. This logic means that if a Medic shoots a projectile (ex. a Crusader's Crossbow syringe) and switches to the Vita-Saw before the projectile hits a player, the projectile hit will cause an organ prop to spawn. This is presumably unintended, as such a hit does not increment a player's organ count.

This PR makes it so organ props will only spawn when a player takes damage if the attacking weapon is the Vita-Saw, preventing the prior case from spawning props.

Tkain avatar Mar 15 '25 23:03 Tkain

lame!

wgetJane avatar Mar 16 '25 01:03 wgetJane