More russian roulette setup

This commit is contained in:
gamer147
2023-08-02 20:52:13 -04:00
parent 285a130a81
commit 0d6df93904
10 changed files with 93 additions and 17 deletions

View File

@@ -3,8 +3,9 @@ using Sandbox;
namespace LuckerGame.Components.Lucker.Cameras;
public abstract class AbstractCamera : EntityComponent<Entities.Lucker>
public abstract class AbstractCamera : EntityComponent<Entities.Lucker>, ISingletonComponent
{
public virtual bool ShouldShowCursor => false;
protected Vector3 CameraPosition { get; set; }
protected Rotation CameraRotation { get; set; }
protected float FieldOfView { get; set; }

View File

@@ -9,6 +9,7 @@ namespace LuckerGame.Components.Lucker.Cameras;
/// </summary>
public partial class RTSCamera : AbstractCamera, ISingletonComponent
{
public override bool ShouldShowCursor => true;
private const float MaxDistance = 400f;
private const float MinDistance = 200f;
private const float Speed = 4f;