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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user