Core/PacketIO: Updated SMSG_FEATURE_SYSTEM_STATUS to 9.1.5

Port From (https://github.com/TrinityCore/TrinityCore/commit/9630c1b1e5606664ef11a308319db4d21d4c168c)
This commit is contained in:
hondacrx
2021-11-07 17:05:45 -05:00
parent c6dbd790c1
commit bbb4f33e16
2 changed files with 11 additions and 17 deletions
+3 -4
View File
@@ -1112,11 +1112,10 @@ namespace Game
features.WarModeFeatureEnabled = WorldConfig.GetBoolValue(WorldCfg.FeatureSystemWarModeEnabled);
features.IsMuted = !CanSpeak();
SendPacket(features);
FeatureSystemStatus2 features2 = new();
features2.TextToSpeechFeatureEnabled = false;
SendPacket(features2);
features.TextToSpeechFeatureEnabled = false;
SendPacket(features);
}
[WorldPacketHandler(ClientOpcodes.SetFactionAtWar)]
@@ -89,6 +89,10 @@ namespace Game.Networking.Packets
_worldPacket.WriteBit(IsMuted);
_worldPacket.WriteBit(ClubFinderEnabled);
_worldPacket.WriteBit(Unknown901CheckoutRelated);
_worldPacket.WriteBit(TextToSpeechFeatureEnabled);
_worldPacket.WriteBit(ChatDisabledByDefault);
_worldPacket.WriteBit(ChatDisabledByPlayer);
_worldPacket.WriteBit(LFGListCustomRequiresAuthenticator);
_worldPacket.FlushBits();
{
@@ -176,6 +180,10 @@ namespace Game.Networking.Packets
public bool IsMuted;
public bool ClubFinderEnabled;
public bool Unknown901CheckoutRelated;
public bool TextToSpeechFeatureEnabled;
public bool ChatDisabledByDefault;
public bool ChatDisabledByPlayer;
public bool LFGListCustomRequiresAuthenticator;
public SocialQueueConfig QuickJoinConfig;
public SquelchInfo Squelch;
@@ -232,19 +240,6 @@ namespace Game.Networking.Packets
public uint DaysInCycle;
}
}
public class FeatureSystemStatus2 : ServerPacket
{
public FeatureSystemStatus2() : base(ServerOpcodes.None) { }
public override void Write()
{
_worldPacket.WriteBit(TextToSpeechFeatureEnabled);
_worldPacket.FlushBits();
}
public bool TextToSpeechFeatureEnabled;
}
public class FeatureSystemStatusGlueScreen : ServerPacket
{