Misc. AI fixes for CM test (#1165)
* Dumped ranged behaviors * Fixed some 1-liners (open storage, distancecon todo) Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
@@ -31,6 +31,12 @@ namespace Content.Server.AI.Utility.Considerations.Containers
|
||||
return 0.0f;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// If we're in a container (e.g. held or whatever) then we probably can't get it. Only exception
|
||||
// Is a locker / crate
|
||||
return 0.0f;
|
||||
}
|
||||
}
|
||||
|
||||
return 1.0f;
|
||||
|
||||
@@ -16,10 +16,9 @@ namespace Content.Server.AI.Utility.Considerations.Movement
|
||||
{
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
// TODO: Remove 1 -
|
||||
|
||||
// Kind of just pulled a max distance out of nowhere. Add 0.01 just in case it's reaally far and we have no choice so it'll still be considered at least.
|
||||
return 1 - ((target.Transform.GridPosition.Position - self.Transform.GridPosition.Position).Length / 100 + 0.01f);
|
||||
return (target.Transform.GridPosition.Position - self.Transform.GridPosition.Position).Length / 100 + 0.01f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user