From 92cc457067cdf7d65a89aee12f9d3b43d265f426 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 19 Nov 2024 02:04:55 -0600 Subject: [PATCH] Add rule Zone:EnableEntityClipping --- common/ruletypes.h | 1 + zone/client_process.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/ruletypes.h b/common/ruletypes.h index 7800c7ff7..08a988bf0 100644 --- a/common/ruletypes.h +++ b/common/ruletypes.h @@ -374,6 +374,7 @@ RULE_BOOL(Zone, AllowCrossZoneSpellsOnMercs, false, "Set to true to allow cross RULE_BOOL(Zone, AllowCrossZoneSpellsOnPets, false, "Set to true to allow cross zone spells (cast/remove) to affect pets") RULE_BOOL(Zone, ZoneShardQuestMenuOnly, false, "Set to true if you only want quests to show the zone shard menu") RULE_BOOL(Zone, AkkadiusTempPerformanceFeatureFlag, true, "Enable or disable the Akkadius Temp Performance Feature Flag") +RULE_BOOL(Zone, EnableEntityClipping, true, "Enable or disable visual entity clipping server side") RULE_CATEGORY_END() RULE_CATEGORY(Map) diff --git a/zone/client_process.cpp b/zone/client_process.cpp index 3a4651077..d39bdaea3 100644 --- a/zone/client_process.cpp +++ b/zone/client_process.cpp @@ -289,7 +289,7 @@ bool Client::Process() { entity_list.ScanCloseMobs(this); } - if (m_see_close_mobs_timer.Check() && RuleB(Zone, AkkadiusTempPerformanceFeatureFlag)) { + if (RuleB(Zone, EnableEntityClipping) && m_see_close_mobs_timer.Check() && RuleB(Zone, AkkadiusTempPerformanceFeatureFlag)) { entity_list.UpdateVisibility(this); }