using QSB.Messaging; using QSB.Player; namespace QSB.Tools.ProbeLauncherTool.Messages; internal class PlayerEquipLauncherMessage : QSBMessage { public PlayerEquipLauncherMessage(bool equipped) : base(equipped) { } public override void OnReceiveRemote() { var player = QSBPlayerManager.GetPlayer(From); player.LocalProbeLauncherEquipped = Data; player.ProbeLauncherTool?.ChangeEquipState(Data); } public override void OnReceiveLocal() { QSBPlayerManager.LocalPlayer.LocalProbeLauncherEquipped = Data; } }