View Single Post
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 02-23-2024 , 22:46   Re: Calculate NAV distance between entities
Reply With Quote #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.
__________________
Spirit_12 is offline