Hello, i am working on my own bot and i have a nav system in place but i am trying to figure out how to detect walls, geometry ingame?
i tried traceline quickly failed,
Any advice would be greatly respected.
Hello, i am working on my own bot and i have a nav system in place but i am trying to figure out how to detect walls, geometry ingame?
i tried traceline quickly failed,
Any advice would be greatly respected.
You need to extract that data from game client
https://drewkestell.us/Article/6/Chapter/20
There are two sources of collision enabled objects/geometry to be aware of:
- level / world geometry, including ground, trees, buildings etc
- dynamic objects, e.g. braziers, fireplaces, event-based objects
Usually the way to go is create a navigation system that has the world / level geometry baked in (create a navmesh based on ADTs).
For the second part I haven't investigated much yet but from what I saw those objects do turn up in the object manager and can be processed from there (how else would the game handle them anyway).
The tricky part might be including the dynamic parts into an otherwise static path finding system, haven't completed that part myself.
If someone has more information about reading dynamic object geometry/sizing at runtime, would also be interested.
the way this was previously done was to collect game object data live and save it ( position, matrix etc) and then feed that into your map generation process.
TheNoobBot/GameObjectHelper.cs at ef2151c6cfbb02b261a1e48f02d80f15dd82a68b . mmalka/TheNoobBot . GitHub