Skip to content

Commit

Permalink
fix party path
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed Jan 31, 2024
1 parent 0ab5f5d commit d93d058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions QSB/EchoesOfTheEye/Ghosts/Messages/PartyPathResetMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ public PartyPathResetMessage(int indexOne, int indexTwo, int proxyIndex) : base(
public override void OnReceiveRemote()
{
var __instance = QSBWorldSync.GetUnityObject<GhostPartyPathDirector>();
var partyPathAction = (QSBPartyPathAction)WorldObject.GetCurrentAction();

WorldObject.AttachedObject.transform.position = __instance._ghostSpawns[Data.indexOne].spawnTransform.position;
WorldObject.AttachedObject.transform.eulerAngles = Vector3.up * __instance._ghostSpawns[Data.indexTwo].spawnTransform.eulerAngles.y;
WorldObject.TabulaRasa();
partyPathAction.ResetPath();

__instance._numEnabledGhostProxies = Data.proxyIndex;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static bool Update(GhostPartyPathDirector __instance)
__instance._waitingGhosts.RemoveAt(0);
__instance._lastDispatchedGhost = ghostBrain2.AttachedObject;
__instance._dispatchedGhosts.Add(ghostBrain2.AttachedObject);
__instance._nextGhostDispatchTime = Time.timeSinceLevelLoad + Random.Range(__instance._minGhostDispatchDelay, __instance._maxGhostDispatchDelay);
__instance._nextGhostDispatchTime = Time.timeSinceLevelLoad + UnityEngine.Random.Range(__instance._minGhostDispatchDelay, __instance._maxGhostDispatchDelay);
}

for (var j = 0; j < __instance._ghostSpawns.Length; j++)
Expand Down

0 comments on commit d93d058

Please sign in to comment.