Refresh arena when travelling from one map to another

This commit is contained in:
Roxanne 2023-12-01 11:13:28 +01:00
parent cfe7446732
commit bc30afcbaf

View File

@ -112,7 +112,8 @@ namespace Components
if (Utils::IO::FileExists(arena))
{
data.append(Utils::IO::ReadFile(arena));
// Replace all arenas with just this one
data = Utils::IO::ReadFile(arena);
}
}
@ -850,6 +851,9 @@ namespace Components
// Load usermap arena file
Utils::Hook(0x630A88, Maps::LoadArenaFileStub, HOOK_CALL).install()->quick();
// Always refresh arena when loading or unloading a zone
Utils::Hook::Nop(0x485017, 2);
// Allow hiding specific smodels
Utils::Hook(0x50E67C, Maps::HideModelStub, HOOK_CALL).install()->quick();