diff --git a/Fika.Core/Coop/BotClasses/BotMovementContext.cs b/Fika.Core/Coop/BotClasses/BotMovementContext.cs deleted file mode 100644 index 5799adeb..00000000 --- a/Fika.Core/Coop/BotClasses/BotMovementContext.cs +++ /dev/null @@ -1,29 +0,0 @@ -using EFT; -using Fika.Core.Coop.Players; -using System; -using UnityEngine; - -namespace Fika.Core.Coop.BotClasses -{ - public sealed class BotMovementContext : MovementContext - { - private CoopBot Bot; - - public override void ApplyGravity(ref Vector3 motion, float deltaTime, bool stickToGround) - { - if (Bot.AIData.BotOwner.BotState == EBotState.NonActive) - { - return; - } - - base.ApplyGravity(ref motion, deltaTime, stickToGround); - } - - public new static BotMovementContext Create(Player player, Func animatorGetter, Func characterControllerGetter, LayerMask groundMask) - { - BotMovementContext movementContext = Create(player, animatorGetter, characterControllerGetter, groundMask); - movementContext.Bot = (CoopBot)player; - return movementContext; - } - } -} diff --git a/Fika.Core/Coop/Players/CoopBot.cs b/Fika.Core/Coop/Players/CoopBot.cs index acabc5c4..373bcc1b 100644 --- a/Fika.Core/Coop/Players/CoopBot.cs +++ b/Fika.Core/Coop/Players/CoopBot.cs @@ -121,12 +121,6 @@ public override void ConnectSkillManager() // Do nothing } - public override void CreateMovementContext() - { - LayerMask movement_MASK = EFTHardSettings.Instance.MOVEMENT_MASK; - MovementContext = BotMovementContext.Create(this, GetBodyAnimatorCommon, GetCharacterControllerCommon, movement_MASK); - } - public override void OnBeenKilledByAggressor(IPlayer aggressor, DamageInfoStruct damageInfo, EBodyPart bodyPart, EDamageType lethalDamageType) { base.OnBeenKilledByAggressor(aggressor, damageInfo, bodyPart, lethalDamageType);