Camera Lock On override

This commit is contained in:
SzymonMis
2026-02-19 21:34:50 +01:00
parent e88179d52c
commit 4c0affacc9
5 changed files with 188 additions and 1 deletions

View File

@@ -12,9 +12,20 @@ namespace Beyond
{
if (controller.currentTarget.transform == null) return;
var summoner = controller.gameObject.GetComponent<DemonBoss.Summoner.SummonerAI>();
if (summoner != null && !summoner.ShouldEngageMelee())
{
controller.Stop();
return;
}
if (controller.targetDistance <= controller.attackDistance && !controller.isBlocking)
{
controller.Stop();
if (summoner != null)
{
summoner.NotifyMeleeAttack();
}
controller.Attack();
}
else if (!controller.animatorStateInfos.HasAnyTag("Attack", "LockMovement", "CustomAction"))
@@ -26,4 +37,4 @@ namespace Beyond
else controller.Stop();
}
}
}
}