mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
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:
parent
4503543314
commit
089dddf2c4
@ -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()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user