- Added options to rerandomise map in round 3, including a hard mode shuffle.

- Fixed newspaper and timer overlays not working correctly on disabled cameras.
- Fixed major issues with the occlusion culling.
- Aligned UVs for 10m drywall panels so that the bricks line up correctly.
This commit is contained in:
2026-03-28 05:24:35 -04:00
parent 028550ed3f
commit 3b31f4c38b
10 changed files with 1578 additions and 410 deletions
@@ -100,13 +100,11 @@ public class GameManagerRound3 : GameManagerBase
foreach (CameraOverlay Overlay in _TimerCameraOverlays)
{
Overlay.EnableOverlayElements(false);
Overlay.gameObject.SetActive(false);
}
foreach (CameraOverlay Overlay in _NewspaperCameraOverlays)
{
Overlay.EnableOverlayElements(false);
Overlay.gameObject.SetActive(false);
}
SendCustomNetworkEvent(NetworkEventTarget.All, nameof(EnableAudienceSilencer), false);
@@ -236,7 +234,6 @@ public class GameManagerRound3 : GameManagerBase
_Scoreboard.Enable(true);
foreach (CameraOverlay Overlay in _TimerCameraOverlays)
{
Overlay.gameObject.SetActive(true);
Overlay.EnableOverlayElements(true);
}
@@ -258,7 +255,6 @@ public class GameManagerRound3 : GameManagerBase
foreach (CameraOverlay Overlay in _TimerCameraOverlays)
{
Overlay.gameObject.SetActive(true);
Overlay.EnableOverlayElements(true);
}
@@ -303,6 +299,12 @@ public class GameManagerRound3 : GameManagerBase
RequestSerialization();
}
public void EndTimerEarly()
{
_Timer = 0;
TickTimer();
}
[NetworkCallable]
public void CorrectResponse()
{
@@ -465,7 +467,6 @@ public class GameManagerRound3 : GameManagerBase
foreach (CameraOverlay Overlay in _NewspaperCameraOverlays)
{
Overlay.EnableOverlayElements(true);
Overlay.gameObject.SetActive(true);
}
}
@@ -505,7 +506,6 @@ public class GameManagerRound3 : GameManagerBase
foreach (CameraOverlay Overlay in _NewspaperCameraOverlays)
{
Overlay.EnableOverlayElements(true);
Overlay.gameObject.SetActive(true);
}
}
@@ -525,13 +525,11 @@ public class GameManagerRound3 : GameManagerBase
foreach (CameraOverlay Overlay in _TimerCameraOverlays)
{
Overlay.EnableOverlayElements(false);
Overlay.gameObject.SetActive(false);
}
foreach (CameraOverlay Overlay in _NewspaperCameraOverlays)
{
Overlay.EnableOverlayElements(false);
Overlay.gameObject.SetActive(false);
}
_CameraControllerRound3.DisableAllSwitchers();
@@ -647,6 +645,15 @@ public class GameManagerRound3 : GameManagerBase
}
}
public void RerandomiseMap(bool HardMode = false)
{
FloorMap CurrentMap = GetCurrentMap();
if (CurrentMap)
{
GetCurrentMap().RandomiseCountries(HardMode);
}
}
private string GetRound3PlayerName()
{
string[] CurrentWinner = _CaseManager.GetCurrentWinningPlayers();