From 31bd38f79d2465a0baba8dc9c25713d073c67230 Mon Sep 17 00:00:00 2001 From: Andrew Gilewsky Date: Mon, 25 Nov 2024 01:22:25 +0000 Subject: [PATCH] Added yuyuyu customization for hole. --- vnavmesh/Customizations/Z1242Yuweyawata.cs | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 vnavmesh/Customizations/Z1242Yuweyawata.cs diff --git a/vnavmesh/Customizations/Z1242Yuweyawata.cs b/vnavmesh/Customizations/Z1242Yuweyawata.cs new file mode 100644 index 0000000..b3205c9 --- /dev/null +++ b/vnavmesh/Customizations/Z1242Yuweyawata.cs @@ -0,0 +1,23 @@ +using FFXIVClientStructs.FFXIV.Common.Component.BGCollision.Math; +using System.Numerics; + +namespace Navmesh.Customizations; + +[CustomizationTerritory(1242)] +class Z1242Yuweyawata : NavmeshCustomization +{ + public override int Version => 1; + + public override void CustomizeScene(SceneExtractor scene) + { + // avoid the hole in last boss arena + var scale = new Vector3(11, 1, 11); + var transform = Matrix4x3.Identity; + transform.M11 = scale.X; + transform.M22 = scale.Y; + transform.M33 = scale.Z; + transform.Row3 = new(34, -87.9f, -710); + var aabb = new AABB() { Min = transform.Row3 - scale, Max = transform.Row3 + scale }; + scene.Meshes[""].Instances.Add(new(0xbaadf00d00000001ul, transform, aabb, SceneExtractor.PrimitiveFlags.ForceUnwalkable, default)); + } +}