mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 14:46:24 +00:00
feat(Map): Add open world LOS settings (#18816)
* chore. Add open world LOS settings * Name change and conditional deny * modify information in worldserver.conf.dist * Remove pvp from variables and constants
This commit is contained in:
@@ -178,6 +178,7 @@ enum WorldBoolConfigs
|
||||
CONFIG_LEAVE_GROUP_ON_LOGOUT,
|
||||
CONFIG_QUEST_POI_ENABLED,
|
||||
CONFIG_VMAP_BLIZZLIKE_PVP_LOS,
|
||||
CONFIG_VMAP_BLIZZLIKE_LOS_OPEN_WORLD,
|
||||
CONFIG_OBJECT_SPARKLES,
|
||||
CONFIG_LOW_LEVEL_REGEN_BOOST,
|
||||
CONFIG_OBJECT_QUEST_MARKERS,
|
||||
|
||||
@@ -1317,6 +1317,7 @@ void World::LoadConfigSettings(bool reload)
|
||||
bool enableHeight = sConfigMgr->GetOption<bool>("vmap.enableHeight", true);
|
||||
bool enablePetLOS = sConfigMgr->GetOption<bool>("vmap.petLOS", true);
|
||||
_bool_configs[CONFIG_VMAP_BLIZZLIKE_PVP_LOS] = sConfigMgr->GetOption<bool>("vmap.BlizzlikePvPLOS", true);
|
||||
_bool_configs[CONFIG_VMAP_BLIZZLIKE_LOS_OPEN_WORLD] = sConfigMgr->GetOption<bool>("vmap.BlizzlikeLOSInOpenWorld", true);
|
||||
|
||||
if (!enableHeight)
|
||||
LOG_ERROR("server.loading", "VMap height checking disabled! Creatures movements and other various things WILL be broken! Expect no support.");
|
||||
|
||||
Reference in New Issue
Block a user