NPC steering tweaks (#17911)

- Slightly less twitchy in melee.
- Resteer less.
- More aggressive in pursuing running away targets.
This commit is contained in:
metalgearsloth
2023-07-10 05:20:20 +10:00
committed by GitHub
parent e3cef0f86c
commit b4033d557b
3 changed files with 19 additions and 5 deletions

View File

@@ -382,7 +382,7 @@ public sealed partial class NPCSteeringSystem
TransformComponent xform,
float[] danger)
{
var objectRadius = 0.15f;
var objectRadius = 0.10f;
var detectionRadius = MathF.Max(0.35f, agentRadius + objectRadius);
foreach (var ent in _lookup.GetEntitiesInRange(uid, detectionRadius, LookupFlags.Static))