NPC utility queries (#15843)

This commit is contained in:
metalgearsloth
2023-05-02 04:57:11 +10:00
committed by GitHub
parent ac5afa794e
commit ca07522c03
50 changed files with 873 additions and 246 deletions

View File

@@ -143,6 +143,9 @@ public sealed partial class NPCCombatSystem
return;
}
// TODO: When I get parallel operators move this as NPC combat shouldn't be handling this.
_steering.Register(uid, new EntityCoordinates(component.Target, Vector2.Zero), steering);
if (distance > weapon.Range)
{
component.Status = CombatStatus.TargetOutOfRange;