From b7dc33358f99724fa86895a64b8380224460b2e8 Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Thu, 2 Jan 2025 17:26:51 +0100 Subject: [PATCH] Remove comments --- Fika.Core/Coop/Players/ObservedCoopPlayer.cs | 21 -------------------- 1 file changed, 21 deletions(-) diff --git a/Fika.Core/Coop/Players/ObservedCoopPlayer.cs b/Fika.Core/Coop/Players/ObservedCoopPlayer.cs index fbf31fa9..891d99ec 100644 --- a/Fika.Core/Coop/Players/ObservedCoopPlayer.cs +++ b/Fika.Core/Coop/Players/ObservedCoopPlayer.cs @@ -968,8 +968,6 @@ public override void ExternalInteraction() // Do nothing } - // TODO: This code needs refactoring and hopefully removing - // The reason it was added was due to a lot of bots inventories desyncing because of their unnatural inventory operations public void SetInventory(GClass1686 inventoryDescriptor) { if (HandsController != null) @@ -997,16 +995,6 @@ public void SetInventory(GClass1686 inventoryDescriptor) Slot slot = Inventory.Equipment.GetSlot(equipmentSlot); ObservedSlotViewHandler handler = new(slot, this, equipmentSlot); observedSlotViewHandlers.Add(handler); - /*Transform slotBone = PlayerBody.GetSlotBone(equipmentSlot); - Transform alternativeHolsterBone = PlayerBody.GetAlternativeHolsterBone(equipmentSlot); - PlayerBody.GClass2112 slotView = new(PlayerBody, Inventory.Equipment.GetSlot(equipmentSlot), slotBone, equipmentSlot, - Inventory.Equipment.GetSlot(EquipmentSlot.Backpack), alternativeHolsterBone); - PlayerBody.GClass2112 oldSlotView = PlayerBody.SlotViews.AddOrReplace(equipmentSlot, slotView); - if (oldSlotView != null) - { - oldSlotView.Dispose(); - } - PlayerBody.ValidateHoodedDress(equipmentSlot);*/ } if (PlayerBody.HaveHolster && PlayerBody.SlotViews.ContainsKey(EquipmentSlot.Holster)) @@ -1014,15 +1002,6 @@ public void SetInventory(GClass1686 inventoryDescriptor) Slot slot = Inventory.Equipment.GetSlot(EquipmentSlot.Holster); ObservedSlotViewHandler handler = new(slot, this, EquipmentSlot.Holster); observedSlotViewHandlers.Add(handler); - /*Transform slotBone = PlayerBody.GetSlotBone(EquipmentSlot.Holster); - Transform alternativeHolsterBone = PlayerBody.GetAlternativeHolsterBone(EquipmentSlot.Holster); - PlayerBody.GClass2112 slotView = new(PlayerBody, Inventory.Equipment.GetSlot(EquipmentSlot.Holster), slotBone, EquipmentSlot.Holster, - Inventory.Equipment.GetSlot(EquipmentSlot.Backpack), alternativeHolsterBone); - PlayerBody.GClass2112 oldSlotView = PlayerBody.SlotViews.AddOrReplace(EquipmentSlot.Holster, slotView); - if (oldSlotView != null) - { - oldSlotView.Dispose(); - }*/ } }