Fix turrets not shooting in space (#12820)

* Fix turrets not shooting in space

* Faster target acquisition
This commit is contained in:
metalgearsloth
2022-12-02 02:02:01 +11:00
committed by GitHub
parent 85cdf4d797
commit cc90f68f0f
2 changed files with 60 additions and 26 deletions

View File

@@ -8,6 +8,8 @@ namespace Content.Server.NPC.HTN.PrimitiveTasks.Operators.Ranged;
[UsedImplicitly]
public sealed class PickRangedTargetOperator : NPCCombatOperator
{
protected override bool IsRanged => true;
protected override float GetRating(NPCBlackboard blackboard, EntityUid uid, EntityUid existingTarget, float distance, bool canMove, EntityQuery<TransformComponent> xformQuery)
{
// Yeah look I just came up with values that seemed okay but they will need a lot of tweaking.