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)? /// 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.

View File

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

View File

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