View Single Post
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin D.
Old 11-13-2020 , 13:18   Re: Possible to temporary block bots from bypassing "blocked path"
Reply With Quote #10

I found the OnTouchedByEntity in a plugin where someone touches a laser or something but not sure if that was valid anyways. => here:
https://forums.alliedmods.net/showthread.php?t=156431

But thanks Marttt for the sdk_hooktouch, that did the trick and is rather simple!

I just hook the container now check if bot touches it, if so I set the unstick 0 and unhook

then after event stops I just set unstick back to 1.

That seems to solve my problems!

Final result attached...

Thx a ton!
Attached Files
File Type: sp Get Plugin or Get Source (l4d_river01_docks_pimp2.sp - 153 views - 13.5 KB)
__________________

Last edited by finishlast; 11-13-2020 at 14:39.
finishlast is offline