punish v6.8.18.0
This commit is contained in:
commit
060278c1b7
317 changed files with 554155 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
|||
using System.Numerics;
|
||||
|
||||
namespace Questionable.Controller.NavigationOverrides;
|
||||
|
||||
public sealed record BlacklistedPoint(ushort TerritoryId, Vector3 Original, Vector3 Replacement, float CheckDistance = 0.05f, bool RecalculateNavmesh = false) : IBlacklistedLocation
|
||||
{
|
||||
public AlternateLocation? AdjustPoint(Vector3 point)
|
||||
{
|
||||
if ((point - Original).Length() > CheckDistance)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return new AlternateLocation(Replacement, RecalculateNavmesh);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue