View Single Post
bakugo
Member
Join Date: Nov 2012
Old 02-11-2020 , 17:51   Re: [TF2] Sentry Exploit Fix (2/8/2020)
Reply With Quote #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
File Type: sp 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 is offline