Skip to content

Commit

Permalink
Fix freecam on dedi
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Aug 20, 2024
1 parent 78a3ba3 commit 6cf5a0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Fika.Dedicated/Classes/DedicatedRaidController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private void Update()
}

Vector3 currentPosition = targetPlayer.Position;
MainPlayer.Teleport(new(currentPosition.x, currentPosition.y - 50, currentPosition.z));
MainPlayer.Teleport(new(currentPosition.x, currentPosition.y - 75, currentPosition.z));
MainPlayer.MovementContext.SetPitchSmoothly(new(-90, -90));
}
else
Expand All @@ -78,6 +78,7 @@ public void FindNewPlayer()
{
freeCameraController.ToggleCamera();
}
freeCam.SetCurrentPlayer(targetPlayer);
freeCam.AttachDedicated(targetPlayer);
return;
}
Expand Down
3 changes: 3 additions & 0 deletions Fika.Dedicated/FikaDedicatedPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ private void Awake()
FikaPlugin.QuestTypesToShareAndReceive.Value = 0;
FikaPlugin.ConnectionTimeout.Value = 20;

FikaPlugin.Instance.AllowFreeCam = true;
FikaPlugin.Instance.AllowSpectateFreeCam = true;

string[] commandLineArgs = Environment.GetCommandLineArgs();
foreach (string arg in commandLineArgs)
{
Expand Down

0 comments on commit 6cf5a0a

Please # to comment.