Skip to content

Commit

Permalink
Add Runddans controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Dec 31, 2024
1 parent 0f50e6d commit 26ebef0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Fika.Core/Coop/GameMode/CoopGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
using System.Threading;
using System.Threading.Tasks;
using UnityEngine;
using static BackendConfigSettingsClass;
using static Fika.Core.Networking.Packets.SubPacket;

namespace Fika.Core.Coop.GameMode
Expand Down Expand Up @@ -1135,6 +1136,23 @@ public async Task InitPlayer(BotControllerSettings botsSettings, string backendU
TransitControllerAbstractClass.DisableTransitPoints();
}*/

bool runddansActive;
if (instance == null)
{
runddansActive = false;
}
else
{
GClass1505 runddansSettings = instance.runddansSettings;
runddansActive = runddansSettings != null && runddansSettings.active;
}
if (runddansActive)
{
gameWorld.RunddansController = new GClass2045(instance.runddansSettings, Location_0);
}

GClass2043.ToggleEventEnvironment(false);

Logger.LogInfo("Transits are disabled");
TransitControllerAbstractClass.DisableTransitPoints();

Expand Down

0 comments on commit 26ebef0

Please sign in to comment.