Pulls in FPS menu so we can make edits

This commit is contained in:
gamer147
2023-08-03 12:22:24 -04:00
parent 686edc85a3
commit a5a734b31a
13 changed files with 722 additions and 3 deletions

View File

@@ -57,8 +57,16 @@ public partial class MinigameManager : Entity
FindMinigames();
}
private void cleanupPlayerPawns()
/// <summary>
/// Goes through the players included in the loaded minigame and deletes and nulls out any pawns assigned to them
/// </summary>
private void CleanupPlayerPawns()
{
if ( LoadedMinigame is not { IsValid: true } || InvolvedPlayers == null)
{
Log.Warning( "Attempted to clean up players without a minigame loaded!" );
return;
}
InvolvedPlayers.ForEach( player =>
{
player.Pawn.Delete();

View File

@@ -49,7 +49,8 @@ public partial class RoundManager : Entity
private const int MinigamesPerRound = 1;
private int MinigamesLeftInRound { get; set; }
[ConVar.Replicated("lucker_minigames_per_round")]
public static int MinigamesLeftInRound { get; set; }
private List<Lucker> Players { get; set; }
#endregion