Thread
: [Solved]
Calculate NAV distance between entities
View Single Post
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
02-23-2024 , 22:46 Re: Calculate NAV distance between entities
#
3
You can easily do this with vscripts or Left4Dhooks. Here are the rough pointers.
Vscripts
Get map's flow via GetMaxFlowDistance.
Then you need to get GetLastKnownArea from your bot.
Use GetLastKnownArea /GetMaxFlowDistance to see how close is the bot to the checkpoint.
Block them from taking pills.
Left4dhooks
Get map's flow via L4D2Direct_GetMapMaxFlowDistance().
Then you need to get L4D_GetLastKnownArea from your bot.
Use L4D_GetLastKnownArea /L4D2Direct_GetMapMaxFlowDistance to see how close is the bot to the checkpoint.
Block them from taking pills.
__________________
https://github.com/Satanic-Spirit/
Spirit_12
View Public Profile
Send a private message to Spirit_12
Find More Posts by Spirit_12