redsunservers / SuperZombieFortress

Custom Team Fortress 2 Gamemode, inspired from Left 4 Dead
GNU General Public License v3.0
36 stars 26 forks source link

Update detection into goo touching player #52

Closed FortyTwoFortyTwo closed 4 years ago

FortyTwoFortyTwo commented 4 years ago

SDKHook_StartTouch and SDKHook_Touch on Sandman ball can rarely not call on touching player, and stuns instead of doing usual goo. Use actual sandman's touch functions instead, CTFStunBall::ShouldBallTouch.

There also CTFStunBall::ApplyBallImpactEffectOnVictim that could be hooked instead, but that does not call when ball is rolling on the round and touching player, unlike SDKHook_StartTouch and SDKHook_Touch.