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

Oh that actually seems to do the trick, thanks a lot!

Do you know if this cvar can be changed midgame and then back during a map?

They seem to just stand there now trying to get past but they can't, that is fairly good enough.

SetConVarInt(FindConVar("sb_unstick"), 0);


and after the event

SetConVarInt(FindConVar("sb_unstick"), 1);

******

My idea now instead of setting the cvar on map start is to set it when they enter a field around the container lets say 100 px in front of it.

Anyone knows how to set this cvar via an "area"-switch or something? Like when they get near to the container?
Attached Files
File Type: sp Get Plugin or Get Source (l4d_river01_docks_pimp2.sp - 158 views - 13.2 KB)
__________________

Last edited by finishlast; 10-31-2020 at 12:22.
finishlast is offline