From f0108826d35f38b125c4ac117541ffec28328bf9 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 19 Feb 2025 21:20:22 -0800 Subject: [PATCH] [Client Mod] Adds a hacked fast camp rule for GMs (#4697) Co-authored-by: KimLS --- common/ruletypes.h | 1 + zone/client_packet.cpp | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/common/ruletypes.h b/common/ruletypes.h index d8ffbeae5..77d3f0560 100644 --- a/common/ruletypes.h +++ b/common/ruletypes.h @@ -230,6 +230,7 @@ RULE_BOOL(Character, PlayerTradingLoreFeedback, true, "If enabled, during a play RULE_INT(Character, MendAlwaysSucceedValue, 199, "Value at which mend will always succeed its skill check. Default: 199") RULE_BOOL(Character, SneakAlwaysSucceedOver100, false, "When sneak skill is over 100, always succeed sneak/hide. Default: false") RULE_INT(Character, BandolierSwapDelay, 0, "Bandolier swap delay in milliseconds, default is 0") +RULE_BOOL(Character, EnableHackedFastCampForGM, false, "Enables hacked fast camp for GM clients, if the GM doesn't have a hacked client they'll camp like normal") RULE_CATEGORY_END() RULE_CATEGORY(Mercs) diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index 82f0f7d2a..091a8f9ac 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -4249,7 +4249,14 @@ void Client::Handle_OP_Camp(const EQApplicationPacket *app) if (GetGM()) { - OnDisconnect(true); + if (RuleB(Character, EnableHackedFastCampForGM)) + { + camp_timer.Start(100, true); + } + else { + OnDisconnect(true); + } + return; }