Thread
:
[TF2] Sentry Exploit Fix (2/8/2020)
View Single Post
bakugo
Member
Join Date: Nov 2012
02-11-2020 , 17:51 Re: [TF2] Sentry Exploit Fix (2/8/2020)
#
2
This method is way, WAY overkill. Maybe that's what you were going for, in which case good job, but still.
It's way easier to just hook TakeDamage or TraceAttack and do a raytrace between the sentry's center and the target to check if there's a wall too close to it, and cancel damage if so. This way you don't have to interfere with game mechanics in any way.
EDIT: Attached a plugin implementing this method.
Attached Files
Get Plugin
or
Get Source
(wrangler_wall_fix.sp - 349 views - 2.1 KB)
Last edited by bakugo; 02-11-2020 at
20:39
.
bakugo
View Public Profile
Send a private message to bakugo
Find More Posts by bakugo