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

[TF2] Fix an assertion error from trying to remove a nonexistent particle effect

Open Tkain opened this issue 1 month ago • 0 comments

Description

The following function call causes an assertion error whenever a Spy begins to cloak in TF2:

https://github.com/ValveSoftware/source-sdk-2013/blob/b2705ba55b3b802b86ef2b2dbf97939c9d4fb685/src/game/shared/tf/tf_player_shared.cpp#L7003

This call causes an assertion error because TF2 does not have any particle definition named balloontoss_drip; in fact, this is the only line in the SDK that references such a particle effect. Since this particle effect has no definition and is never created, this function call effectively does nothing. (This was likely related to a scrapped water balloon weapon that was never fully implemented.)

This PR prevents this assertion error by commenting out the offending function call.

Tkain avatar Nov 16 '25 17:11 Tkain