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)?
|
/// Is the entity Sprinting (running)?
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
public bool Sprinting { get; set; }
|
public bool Sprinting { get; set; } = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Calculated linear velocity direction of the entity.
|
/// 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, true),
|
||||||
session => HandleDirChange(session, Direction.South, false));
|
session => HandleDirChange(session, Direction.South, false));
|
||||||
var runCmdHandler = InputCmdHandler.FromDelegate(
|
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>();
|
var input = EntitySystemManager.GetEntitySystem<InputSystem>();
|
||||||
|
|
||||||
|
|||||||
@@ -22,9 +22,9 @@ binds:
|
|||||||
- function: MoveDown
|
- function: MoveDown
|
||||||
type: State
|
type: State
|
||||||
key: S
|
key: S
|
||||||
- function: Run
|
#- function: Run
|
||||||
type: State
|
# type: State
|
||||||
key: Shift
|
# key: Shift
|
||||||
- function: ShowEscapeMenu
|
- function: ShowEscapeMenu
|
||||||
type: State
|
type: State
|
||||||
key: Escape
|
key: Escape
|
||||||
|
|||||||
Reference in New Issue
Block a user