Skip to content

Commit

Permalink
Restructure game init
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed May 15, 2024
1 parent ce6ed44 commit 45b61fd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Fika.Core/Coop/GameMode/CoopGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,8 @@ public override async Task<LocalPlayer> vmethod_2(int playerId, Vector3 position

LocalPlayer myPlayer = await CoopPlayer.Create(playerId, spawnPoint.Position, spawnPoint.Rotation, "Player", "Main_", EPointOfView.FirstPerson, profile,
false, UpdateQueue, Player.EUpdateMode.Auto, Player.EUpdateMode.Auto,
GClass549.Config.CharacterController.ClientPlayerMode, () => Singleton<SharedGameSettingsClass>.Instance.Control.Settings.MouseSensitivity,
() => Singleton<SharedGameSettingsClass>.Instance.Control.Settings.MouseAimingSensitivity, new GClass1445(), MatchmakerAcceptPatches.IsServer ? 0 : 1000, questController);
GClass549.Config.CharacterController.ClientPlayerMode, getSensitivity,
getAimingSensitivity, new GClass1445(), MatchmakerAcceptPatches.IsServer ? 0 : 1000, questController);

profile.SetSpawnedInSession(profile.Side == EPlayerSide.Savage);

Expand Down Expand Up @@ -1009,6 +1009,10 @@ public override IEnumerator vmethod_4(float startDelay, BotControllerSettings co
Logger.LogError("CoopGame::vmethod_4: Halloween controller could not be instantiated!");
}
}
if (GClass549.Config.FixedFrameRate > 0f)
{
FixedDeltaTime = 1f / GClass549.Config.FixedFrameRate;
}

bool isWinter = BackEndSession.IsWinter;
Class420 winterEventController = new();
Expand Down

0 comments on commit 45b61fd

Please sign in to comment.