Being able to set the maximum view distance is as useful as being able to set the FOV so I was wondering if it was possible to add getters/setters to modify that value.
Locomotion
When a nextbot is following a path it uses hull traces to detect obstacles, which appear as green boxes (or red when an obstacle is detected) when nb_debug is set to PATH. However, the way they avoid said obstacles sometimes doesn't work and there is no way to know when the nextbot detects one.
Would it be possible to add a nextbot hook that is called when the nextbot detects an obstacle? (an obstacle being the world, a prop, a player, a NPC or another nextbot, anything really)
When a nextbot is following a path it is also checking for climbable ledges. (this was implemented for L4D2)
The ledge detection code actually runs (when nb_debug is set to PATH it sometimes prints something along the lines of "ledge found" in the console), but there is no Lua hook called when a ledge is detected, which defeats the purpose of running that code in the first place since nextbot climbing isn't actually implemented in Garry's Mod.
Adding a function to get/set the ladder the nextbot is currently climbing on ( #1544 ) would also be really useful as that would make implementing climbing that much easier.
Vision
I saw that NextBot.IsAbleToSee was added to the list of nextbot functions so I took a look at that function's source code and noticed this:
Being able to set the maximum view distance is as useful as being able to set the FOV so I was wondering if it was possible to add getters/setters to modify that value.
Locomotion
When a nextbot is following a path it uses hull traces to detect obstacles, which appear as green boxes (or red when an obstacle is detected) when
nb_debug
is set toPATH
. However, the way they avoid said obstacles sometimes doesn't work and there is no way to know when the nextbot detects one. Would it be possible to add a nextbot hook that is called when the nextbot detects an obstacle? (an obstacle being the world, a prop, a player, a NPC or another nextbot, anything really)When a nextbot is following a path it is also checking for climbable ledges. (this was implemented for L4D2) The ledge detection code actually runs (when
nb_debug
is set toPATH
it sometimes prints something along the lines of "ledge found" in the console), but there is no Lua hook called when a ledge is detected, which defeats the purpose of running that code in the first place since nextbot climbing isn't actually implemented in Garry's Mod.Adding a function to get/set the ladder the nextbot is currently climbing on ( #1544 ) would also be really useful as that would make implementing climbing that much easier.