diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2024-02-05 17:01:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 18:01:22 +0100 |
commit | 73262ca616f0623a9715ceac90c17b0da4b320d7 (patch) | |
tree | 4624e5eec9329afdee0bfb67ccc64e9a935d4484 /primedev/server/ai_navmesh.cpp | |
parent | edf013952ca2d110f190dc8cd16e5529846656e4 (diff) | |
download | NorthstarLauncher-73262ca616f0623a9715ceac90c17b0da4b320d7.tar.gz NorthstarLauncher-73262ca616f0623a9715ceac90c17b0da4b320d7.zip |
Port navmesh debug renderer from primedev (#626)
Adds support for rendering navmeshes in-game using debug overlay
Cherry-picked from primedev, originally written by F1F7Y
Co-authored-by: F1F7Y <filip.bartos07@proton.me>
Co-authored-by: Maya <11448698+RoyalBlue1@users.noreply.github.com>
Diffstat (limited to 'primedev/server/ai_navmesh.cpp')
-rw-r--r-- | primedev/server/ai_navmesh.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/primedev/server/ai_navmesh.cpp b/primedev/server/ai_navmesh.cpp new file mode 100644 index 00000000..966726b2 --- /dev/null +++ b/primedev/server/ai_navmesh.cpp @@ -0,0 +1,6 @@ +#include "ai_navmesh.h" + +ON_DLL_LOAD("server.dll", ServerAiNavMesh, (CModule module)) +{ + g_pNavMesh = module.Offset(0x105F5D0).RCast<dtNavMesh**>(); +} |