Merge branch 'master' of https://github.com/space-wizards/space-station-14
This commit is contained in:
@@ -42,7 +42,7 @@ namespace Content.Server.GameTicking.Commands
|
|||||||
case 1:
|
case 1:
|
||||||
if (player.AttachedEntity == null)
|
if (player.AttachedEntity == null)
|
||||||
{
|
{
|
||||||
shell.WriteLine("The map name argument cannot be omitted if you have no entity.");
|
shell.WriteError("The map name argument cannot be omitted if you have no entity.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ namespace Content.Server.GameTicking.Commands
|
|||||||
case 2:
|
case 2:
|
||||||
if (!int.TryParse(args[0], out var id))
|
if (!int.TryParse(args[0], out var id))
|
||||||
{
|
{
|
||||||
shell.WriteLine($"{args[0]} is not a valid integer.");
|
shell.WriteError($"{args[0]} is not a valid integer.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,7 +66,10 @@ namespace Content.Server.GameTicking.Commands
|
|||||||
|
|
||||||
shell.ExecuteCommand($"addmap {mapId} false");
|
shell.ExecuteCommand($"addmap {mapId} false");
|
||||||
shell.ExecuteCommand($"loadbp {mapId} \"{CommandParsing.Escape(mapName)}\" true");
|
shell.ExecuteCommand($"loadbp {mapId} \"{CommandParsing.Escape(mapName)}\" true");
|
||||||
shell.ExecuteCommand("aghost");
|
|
||||||
|
if (player.AttachedEntity?.Prototype?.ID != "AdminObserver")
|
||||||
|
shell.ExecuteCommand("aghost");
|
||||||
|
|
||||||
shell.ExecuteCommand($"tp 0 0 {mapId}");
|
shell.ExecuteCommand($"tp 0 0 {mapId}");
|
||||||
|
|
||||||
var newGrid = mapManager.GetAllGrids().OrderByDescending(g => (int) g.Index).First();
|
var newGrid = mapManager.GetAllGrids().OrderByDescending(g => (int) g.Index).First();
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
using Content.Shared.ActionBlocker;
|
||||||
using Content.Shared.Alert;
|
using Content.Shared.Alert;
|
||||||
using Content.Shared.Buckle.Components;
|
using Content.Shared.Buckle.Components;
|
||||||
using Content.Shared.GameTicking;
|
using Content.Shared.GameTicking;
|
||||||
@@ -14,6 +15,7 @@ using Robust.Shared.Containers;
|
|||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
using Robust.Shared.Input.Binding;
|
using Robust.Shared.Input.Binding;
|
||||||
using Robust.Shared.Map;
|
using Robust.Shared.Map;
|
||||||
|
using Robust.Shared.IoC;
|
||||||
using Robust.Shared.Maths;
|
using Robust.Shared.Maths;
|
||||||
using Robust.Shared.Physics;
|
using Robust.Shared.Physics;
|
||||||
using Robust.Shared.Players;
|
using Robust.Shared.Players;
|
||||||
@@ -23,6 +25,8 @@ namespace Content.Shared.Pulling
|
|||||||
{
|
{
|
||||||
public abstract partial class SharedPullingSystem : EntitySystem
|
public abstract partial class SharedPullingSystem : EntitySystem
|
||||||
{
|
{
|
||||||
|
[Dependency] private readonly ActionBlockerSystem _blocker = default!;
|
||||||
|
|
||||||
public bool CanPull(IEntity puller, IEntity pulled)
|
public bool CanPull(IEntity puller, IEntity pulled)
|
||||||
{
|
{
|
||||||
if (!puller.HasComponent<SharedPullerComponent>())
|
if (!puller.HasComponent<SharedPullerComponent>())
|
||||||
@@ -30,6 +34,11 @@ namespace Content.Shared.Pulling
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!_blocker.CanInteract(puller.Uid))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!pulled.TryGetComponent<IPhysBody>(out var _physics))
|
if (!pulled.TryGetComponent<IPhysBody>(out var _physics))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
Entries:
|
Entries:
|
||||||
- author: metalgearsloth
|
|
||||||
changes:
|
|
||||||
- {message: Fix item actions rotating on your bar, type: Fix}
|
|
||||||
id: 131
|
|
||||||
time: '2021-03-31T10:10:56.0000000+00:00'
|
|
||||||
- author: SweptWasTaken
|
- author: SweptWasTaken
|
||||||
changes:
|
changes:
|
||||||
- {message: Uplink now has correct mags for clarissa, type: Fix}
|
- {message: Uplink now has correct mags for clarissa, type: Fix}
|
||||||
@@ -2847,3 +2842,8 @@ Entries:
|
|||||||
- {message: Admin logs., type: Add}
|
- {message: Admin logs., type: Add}
|
||||||
id: 632
|
id: 632
|
||||||
time: '2021-11-22T17:49:26.0000000+00:00'
|
time: '2021-11-22T17:49:26.0000000+00:00'
|
||||||
|
- author: 20kdc
|
||||||
|
changes:
|
||||||
|
- {message: It is no longer possible to start pulling people while in cuffs., type: Fix}
|
||||||
|
id: 633
|
||||||
|
time: '2021-11-22T19:31:12.0000000+00:00'
|
||||||
|
|||||||
Reference in New Issue
Block a user