Attempt follow path for 'Back to Old Tricks'

arr-p5
Liza 2024-06-18 22:54:49 +02:00
parent c4d3e198d6
commit 9ad280008b
Signed by: liza
GPG Key ID: 7199F8D727D55F67
2 changed files with 86 additions and 8 deletions

View File

@ -45,7 +45,7 @@
"Z": -269.24548 "Z": -269.24548
}, },
"TerritoryId": 959, "TerritoryId": 959,
"InteractionType": "Instruction", "InteractionType": "Interact",
"Comment": "Follow Urianger" "Comment": "Follow Urianger"
} }
] ]
@ -54,15 +54,93 @@
"Sequence": 3, "Sequence": 3,
"Steps": [ "Steps": [
{ {
"DataId": 2012185,
"Position": { "Position": {
"X": -5.416992, "X": -6.025082,
"Y": -49.05786, "Y": -28.32315,
"Z": -269.24548 "Z": -215.77702
}, },
"TerritoryId": 959, "TerritoryId": 959,
"InteractionType": "Instruction", "InteractionType": "WalkTo",
"Comment": "Follow Urianger" "Mount": false,
"Sprint": false,
"DisableNavmesh": true,
"DelaySecondsAtStart": 2
},
{
"DataId": 1038933,
"Position": {
"X": 15.536669,
"Y": -7.1210613,
"Z": -177.33519
},
"TerritoryId": 959,
"InteractionType": "WaitForNpcAtPosition",
"NpcWaitDistance": 3,
"StopDistance": 100,
"Mount": false,
"Sprint": false
},
{
"Position": {
"X": 10.73667,
"Y": -5.0926046,
"Z": -171.87782
},
"TerritoryId": 959,
"InteractionType": "WalkTo",
"Mount": false,
"Sprint": false
},
{
"DataId": 1038933,
"Position": {
"X": -22.370995,
"Y": 14.627041,
"Z": -132.87657
},
"TerritoryId": 959,
"InteractionType": "WaitForNpcAtPosition",
"NpcWaitDistance": 3,
"StopDistance": 100,
"Mount": false,
"Sprint": false
},
{
"Position": {
"X": -25.210857,
"Y": 26.867788,
"Z": -109.43445
},
"TerritoryId": 959,
"InteractionType": "WalkTo",
"Mount": false,
"Sprint": false
},
{
"DataId": 1038933,
"Position": {
"X": 1.7508065,
"Y": 46.95068,
"Z": -69.89246
},
"TerritoryId": 959,
"InteractionType": "WaitForNpcAtPosition",
"NpcWaitDistance": 3,
"StopDistance": 100,
"Mount": false,
"Sprint": false
},
{
"Position": {
"X": 48.261765,
"Y": 74.98867,
"Z": -32.961533
},
"TerritoryId": 959,
"InteractionType": "WalkTo",
"Mount": false,
"Sprint": true,
"DelaySecondsAtStart": 1
} }
] ]
}, },

View File

@ -53,7 +53,7 @@ internal sealed class DebugOverlay : Window
for (int i = currentQuest.Step; i <= sequence.Steps.Count; ++i) for (int i = currentQuest.Step; i <= sequence.Steps.Count; ++i)
{ {
QuestStep? step = sequence.FindStep(i); QuestStep? step = sequence.FindStep(i);
if (step == null || step.Position == null) if (step == null || step.Position == null || step.Disabled)
continue; continue;
bool visible = _gameGui.WorldToScreen(step.Position.Value, out Vector2 screenPos); bool visible = _gameGui.WorldToScreen(step.Position.Value, out Vector2 screenPos);