Pulls in FPS menu so we can make edits
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user