v1.5.7.0 (Summer Update)

This commit is contained in:
Regalis11
2024-06-18 16:49:51 +03:00
parent 4a63dacbce
commit 230d1b6e78
263 changed files with 7792 additions and 2845 deletions
@@ -66,6 +66,8 @@ namespace Barotrauma
public Vector2 ShakePosition { get; private set; }
private float shakeTimer;
public float MovementLockTimer;
private float globalZoomScale = 1.0f;
//used to smooth out the movement when in freecam
@@ -257,13 +259,15 @@ namespace Barotrauma
float moveSpeed = 20.0f / zoom;
MovementLockTimer -= deltaTime;
Vector2 moveCam = Vector2.Zero;
if (TargetPos == Vector2.Zero)
{
Vector2 moveInput = Vector2.Zero;
if (allowMove && !Freeze)
{
if (GUI.KeyboardDispatcher.Subscriber == null && allowInput)
if (GUI.KeyboardDispatcher.Subscriber == null && allowInput && MovementLockTimer <= 0.0f)
{
if (PlayerInput.KeyDown(Keys.LeftShift)) { moveSpeed *= 2.0f; }
if (PlayerInput.KeyDown(Keys.LeftControl)) { moveSpeed *= 0.5f; }