From c6fdbc83b74a57bac91372f028f2dd9b8b74ffd6 Mon Sep 17 00:00:00 2001 From: BobTheBob Date: Tue, 7 Mar 2023 14:56:12 +0000 Subject: reload turret settings --- NorthstarDLL/mods/modmanager.cpp | 3 +++ NorthstarDLL/mods/modmanager.h | 1 + 2 files changed, 4 insertions(+) (limited to 'NorthstarDLL/mods') diff --git a/NorthstarDLL/mods/modmanager.cpp b/NorthstarDLL/mods/modmanager.cpp index 6d36a975..0af73e04 100644 --- a/NorthstarDLL/mods/modmanager.cpp +++ b/NorthstarDLL/mods/modmanager.cpp @@ -1040,6 +1040,8 @@ void ModManager::ReloadNecessaryModAssets(bool bDeferred, const ModAssetsToReloa DeferredReloadWeaponSprings(); DeferredReloadWeapons(pAssetsToReload->setsWeaponSettings); + + // player/ai/turret settings and aibehaviors automatically reload themselves on level change already, don't need to reload here } else { @@ -1057,6 +1059,7 @@ void ModManager::ReloadNecessaryModAssets(bool bDeferred, const ModAssetsToReloa TryImmediateReloadWeapons(pAssetsToReload->setsWeaponSettings); + // TODO player/ai/turret settings and aibehavior // need to reimplement mat_reloadmaterials for this // if (m_AssetTypesToReload.bMaterials) diff --git a/NorthstarDLL/mods/modmanager.h b/NorthstarDLL/mods/modmanager.h index 9eccffc5..3002a099 100644 --- a/NorthstarDLL/mods/modmanager.h +++ b/NorthstarDLL/mods/modmanager.h @@ -153,6 +153,7 @@ class ModManager bool bMaterials = false; // vmts bool bPlayerSettings = false; bool bAiSettings = false; + bool bTurretSettings = false; bool bDamageDefs = false; // damagedefs bool bWeaponSprings = false; bool bAmmoSuckBehaviours = false; -- cgit v1.2.3