This commit is contained in:
DrSmugleaf
2021-11-22 20:59:30 +01:00
3 changed files with 20 additions and 8 deletions

View File

@@ -42,7 +42,7 @@ namespace Content.Server.GameTicking.Commands
case 1:
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;
}
@@ -52,7 +52,7 @@ namespace Content.Server.GameTicking.Commands
case 2:
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;
}
@@ -66,7 +66,10 @@ namespace Content.Server.GameTicking.Commands
shell.ExecuteCommand($"addmap {mapId} false");
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}");
var newGrid = mapManager.GetAllGrids().OrderByDescending(g => (int) g.Index).First();

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Content.Shared.ActionBlocker;
using Content.Shared.Alert;
using Content.Shared.Buckle.Components;
using Content.Shared.GameTicking;
@@ -14,6 +15,7 @@ using Robust.Shared.Containers;
using Robust.Shared.GameObjects;
using Robust.Shared.Input.Binding;
using Robust.Shared.Map;
using Robust.Shared.IoC;
using Robust.Shared.Maths;
using Robust.Shared.Physics;
using Robust.Shared.Players;
@@ -23,6 +25,8 @@ namespace Content.Shared.Pulling
{
public abstract partial class SharedPullingSystem : EntitySystem
{
[Dependency] private readonly ActionBlockerSystem _blocker = default!;
public bool CanPull(IEntity puller, IEntity pulled)
{
if (!puller.HasComponent<SharedPullerComponent>())
@@ -30,6 +34,11 @@ namespace Content.Shared.Pulling
return false;
}
if (!_blocker.CanInteract(puller.Uid))
{
return false;
}
if (!pulled.TryGetComponent<IPhysBody>(out var _physics))
{
return false;

View File

@@ -1,9 +1,4 @@
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
changes:
- {message: Uplink now has correct mags for clarissa, type: Fix}
@@ -2847,3 +2842,8 @@ Entries:
- {message: Admin logs., type: Add}
id: 632
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'