Disable sprinting.

Now you always sprint.
This commit is contained in:
Pieter-Jan Briers
2019-12-07 17:16:56 +01:00
parent 023c76db59
commit 7f188b0f44
3 changed files with 6 additions and 6 deletions

View File

@@ -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.

View File

@@ -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>();

View File

@@ -22,9 +22,9 @@ binds:
- function: MoveDown
type: State
key: S
- function: Run
type: State
key: Shift
#- function: Run
# type: State
# key: Shift
- function: ShowEscapeMenu
type: State
key: Escape