Server: add note for finishing NavMesh hotswap implementation

this has to be done in the future to finalize this, for the time being, a workaround in scripts can be implemented using CodeCallback_OnNavMeshHotSwapBegin and CodeCallback_OnNavMeshHotSwapEnd (destroyingon begin, restoring on end).
This commit is contained in:
Kawe Mazidjatari 2024-07-05 15:00:03 +02:00
parent 4503543314
commit 089dddf2c4

View File

@ -127,6 +127,10 @@ bool Detour_IsLoaded()
//-----------------------------------------------------------------------------
// Purpose: hot swaps the NavMesh with the current files on the disk
// (All hulls will be reloaded! If NavMesh for hull no longer exist, it will be kept empty!!!)
//
// TODO: Currently when hotswapping, the game crashes if there's AI in the world.
// Loop over all CAI_BaseNPC instances, and call m_pPathfinder->m_navQuery.init()
// to clear NavMesh cache !!!
//-----------------------------------------------------------------------------
void Detour_HotSwap()
{