Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Jan 2, 2025
1 parent 0fb8fc2 commit b7dc333
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions Fika.Core/Coop/Players/ObservedCoopPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -997,32 +995,13 @@ 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))
{
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();
}*/
}
}

Expand Down

0 comments on commit b7dc333

Please sign in to comment.