Create FPS Test minigame with other shit
This commit is contained in:
@@ -13,6 +13,7 @@ public partial class Lucker : Entity
|
||||
/// <summary>
|
||||
/// The entity this Player currently controls
|
||||
/// </summary>
|
||||
[Net]
|
||||
public Entity Pawn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -70,18 +71,20 @@ public partial class Lucker : Entity
|
||||
public override void Simulate( IClient cl )
|
||||
{
|
||||
base.Simulate( cl );
|
||||
|
||||
Pawn?.Simulate(cl);
|
||||
}
|
||||
|
||||
public override void FrameSimulate( IClient cl )
|
||||
{
|
||||
base.FrameSimulate( cl );
|
||||
Camera?.Update();
|
||||
Pawn?.FrameSimulate(cl);
|
||||
}
|
||||
|
||||
public override void BuildInput()
|
||||
{
|
||||
base.BuildInput();
|
||||
Camera?.BuildInput();
|
||||
Pawn?.BuildInput();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,8 @@ public partial class MinigameManager : Entity
|
||||
return;
|
||||
}
|
||||
|
||||
LoadedMinigame = AvailableMinigames.OrderBy( _ => Guid.NewGuid() ).FirstOrDefault();
|
||||
// LoadedMinigame = AvailableMinigames.OrderBy( _ => Guid.NewGuid() ).FirstOrDefault();
|
||||
LoadedMinigame = AvailableMinigames.Find( minigame => minigame.Name == "FPS Test" );
|
||||
ChatBox.AddInformation( To.Everyone, $"Starting {LoadedMinigame.Name}" );
|
||||
LoadedMinigame.Initialize( players );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user