Disable sprinting.
Now you always sprint.
This commit is contained in:
@@ -40,7 +40,7 @@ namespace Content.Server.GameObjects.Components.Movement
|
||||
/// Is the entity Sprinting (running)?
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public bool Sprinting { get; set; }
|
||||
public bool Sprinting { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Calculated linear velocity direction of the entity.
|
||||
|
||||
@@ -62,8 +62,8 @@ namespace Content.Server.GameObjects.EntitySystems
|
||||
session => HandleDirChange(session, Direction.South, true),
|
||||
session => HandleDirChange(session, Direction.South, false));
|
||||
var runCmdHandler = InputCmdHandler.FromDelegate(
|
||||
session => HandleRunChange(session, true),
|
||||
session => HandleRunChange(session, false));
|
||||
session => HandleRunChange(session, false),
|
||||
session => HandleRunChange(session, true));
|
||||
|
||||
var input = EntitySystemManager.GetEntitySystem<InputSystem>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user