diff --git a/Fika.Core/Coop/Players/CoopBot.cs b/Fika.Core/Coop/Players/CoopBot.cs index a0b1bb77..85634c6f 100644 --- a/Fika.Core/Coop/Players/CoopBot.cs +++ b/Fika.Core/Coop/Players/CoopBot.cs @@ -180,23 +180,6 @@ public override void OnDead(EDamageType damageType) SetupDogTag(); } - /*DeathPacket packet = new(ProfileId) - { - RagdollPacket = new() - { - BodyPartColliderType = LastDamageInfo.BodyPartColliderType, - Direction = LastDamageInfo.Direction, - Point = LastDamageInfo.HitPoint, - Force = _corpseAppliedForce, - OverallVelocity = Velocity - }, - HasInventory = true, - Equipment = Inventory.Equipment - }; - - PacketSender?.Server?.SendDataToAll(new NetDataWriter(), ref packet, LiteNetLib.DeliveryMethod.ReliableOrdered); - PacketSender?.Server?.NetServer?.TriggerUpdate();*/ - if (FikaPlugin.ShowNotifications.Value) { if (IsBoss(Profile.Info.Settings.Role, out string name) && LastAggressor != null) @@ -241,6 +224,13 @@ public override void OnDead(EDamageType damageType) } } } + + CoopGame coopGame = (CoopGame)Singleton.Instance; + if (coopGame.Bots.ContainsKey(ProfileId)) + { + coopGame.Bots.Remove(ProfileId); + } + base.OnDead(damageType); }