Merge remote-tracking branch 'space-wizards/master'

# Conflicts:
#	Content.Server/GameTicking/Rules/RevolutionaryRuleSystem.cs
#	Content.Server/Zombies/ZombieSystem.Transform.cs
#	Resources/Audio/Effects/attributions.yml
#	Resources/Prototypes/typing_indicator.yml
#	Resources/Textures/Effects/speech.rsi/meta.json
This commit is contained in:
Vigers Ray 2025-04-19 02:37:01 +03:00
commit e45065ed4a
51 changed files with 573 additions and 822 deletions

View file

@ -130,14 +130,14 @@ public sealed partial class MindTests
ActorComponent actor = default!;
Assert.Multiple(() =>
{
Assert.That(player, Is.EqualTo(mind.Session), "Player session does not match mind session");
Assert.That(player.UserId, Is.EqualTo(mind.UserId), "Player UserId does not match mind UserId");
Assert.That(entMan.System<MindSystem>().GetMind(player.UserId), Is.EqualTo(mindId));
Assert.That(player.AttachedEntity, Is.EqualTo(mind.CurrentEntity), "Player is not attached to the mind's current entity.");
Assert.That(entMan.EntityExists(mind.OwnedEntity), "The mind's current entity does not exist");
Assert.That(mind.VisitingEntity == null || entMan.EntityExists(mind.VisitingEntity), "The minds visited entity does not exist.");
Assert.That(entMan.TryGetComponent(mind.CurrentEntity, out actor));
});
Assert.That(actor.PlayerSession, Is.EqualTo(mind.Session));
Assert.That(actor.PlayerSession.UserId, Is.EqualTo(mind.UserId));
return (mindId, mind);
}
@ -161,7 +161,6 @@ public sealed partial class MindTests
{
Assert.That(player.Status, Is.EqualTo(SessionStatus.Disconnected));
Assert.That(mind.UserId, Is.Not.Null);
Assert.That(mind.Session, Is.Null);
});
}

View file

@ -67,7 +67,7 @@ public sealed partial class MindTests
Assert.Multiple(() =>
{
Assert.That(entMan.Deleted(entity));
Assert.That(mind.Comp.OwnedEntity, Is.Null);
Assert.That(mind.Comp.OwnedEntity, Is.Not.EqualTo(entity));
});
// Reconnect

View file

@ -8,6 +8,7 @@ using Content.Shared.Mind;
using Robust.Server.GameObjects;
using Robust.Server.Player;
using Robust.Shared.Console;
using Robust.Shared.Player;
namespace Content.Server.Administration.Commands;
@ -15,7 +16,7 @@ namespace Content.Server.Administration.Commands;
public sealed class AGhostCommand : LocalizedCommands
{
[Dependency] private readonly IEntityManager _entities = default!;
[Dependency] private readonly IPlayerManager _playerManager = default!;
[Dependency] private readonly ISharedPlayerManager _playerManager = default!;
public override string Command => "aghost";
public override string Help => "aghost";
@ -104,8 +105,8 @@ public sealed class AGhostCommand : LocalizedCommands
// TODO: Remove duplication between all this and "GamePreset.OnGhostAttempt()"...
if (!string.IsNullOrWhiteSpace(mind.CharacterName))
metaDataSystem.SetEntityName(ghost, mind.CharacterName);
else if (!string.IsNullOrWhiteSpace(mind.Session?.Name))
metaDataSystem.SetEntityName(ghost, mind.Session.Name);
else if (!string.IsNullOrWhiteSpace(player.Name))
metaDataSystem.SetEntityName(ghost, player.Name);
mindSystem.Visit(mindId, ghost, mind);
}

View file

@ -158,9 +158,7 @@ public sealed class AdminSystem : EntitySystem
private void OnRoleEvent(RoleEvent ev)
{
var session = _minds.GetSession(ev.Mind);
if (!ev.RoleTypeUpdate || session == null)
if (!ev.RoleTypeUpdate || !_playerManager.TryGetSessionById(ev.Mind.UserId, out var session))
return;
UpdatePlayerList(session);

View file

@ -15,6 +15,7 @@ using Content.Shared.Popups;
using Content.Shared.Whitelist;
using Robust.Shared.Audio.Systems;
using Robust.Shared.Physics.Events;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;
namespace Content.Server.Anomaly.Effects;
@ -26,6 +27,7 @@ public sealed class InnerBodyAnomalySystem : SharedInnerBodyAnomalySystem
[Dependency] private readonly SharedAudioSystem _audio = default!;
[Dependency] private readonly BodySystem _body = default!;
[Dependency] private readonly IChatManager _chat = default!;
[Dependency] private readonly ISharedPlayerManager _player = default!;
[Dependency] private readonly EntityWhitelistSystem _whitelist = default!;
[Dependency] private readonly JitteringSystem _jitter = default!;
[Dependency] private readonly MindSystem _mind = default!;
@ -102,7 +104,7 @@ public sealed class InnerBodyAnomalySystem : SharedInnerBodyAnomalySystem
if (ent.Comp.StartMessage is not null &&
_mind.TryGetMind(ent, out _, out var mindComponent) &&
mindComponent.Session != null)
_player.TryGetSessionById(mindComponent.UserId, out var session))
{
var message = Loc.GetString(ent.Comp.StartMessage);
var wrappedMessage = Loc.GetString("chat-manager-server-wrap-message", ("message", message));
@ -111,7 +113,7 @@ public sealed class InnerBodyAnomalySystem : SharedInnerBodyAnomalySystem
wrappedMessage,
default,
false,
mindComponent.Session.Channel,
session.Channel,
_messageColor);
_popup.PopupEntity(message, ent, ent, PopupType.MediumCaution);
@ -137,7 +139,8 @@ public sealed class InnerBodyAnomalySystem : SharedInnerBodyAnomalySystem
private void OnSeverityChanged(Entity<InnerBodyAnomalyComponent> ent, ref AnomalySeverityChangedEvent args)
{
if (!_mind.TryGetMind(ent, out _, out var mindComponent) || mindComponent.Session == null)
if (!_mind.TryGetMind(ent, out _, out var mindComponent) ||
!_player.TryGetSessionById(mindComponent.UserId, out var session))
return;
var message = string.Empty;
@ -172,7 +175,7 @@ public sealed class InnerBodyAnomalySystem : SharedInnerBodyAnomalySystem
wrappedMessage,
default,
false,
mindComponent.Session.Channel,
session.Channel,
_messageColor);
_popup.PopupEntity(message, ent, ent, PopupType.MediumCaution);
@ -214,7 +217,7 @@ public sealed class InnerBodyAnomalySystem : SharedInnerBodyAnomalySystem
if (ent.Comp.EndMessage is not null &&
_mind.TryGetMind(ent, out _, out var mindComponent) &&
mindComponent.Session != null)
_player.TryGetSessionById(mindComponent.UserId, out var session))
{
var message = Loc.GetString(ent.Comp.EndMessage);
var wrappedMessage = Loc.GetString("chat-manager-server-wrap-message", ("message", message));
@ -223,7 +226,7 @@ public sealed class InnerBodyAnomalySystem : SharedInnerBodyAnomalySystem
wrappedMessage,
default,
false,
mindComponent.Session.Channel,
session.Channel,
_messageColor);

View file

@ -264,10 +264,10 @@ public sealed partial class AntagSelectionSystem
if (!_mind.TryGetMind(entity, out _, out var mindComponent))
return;
if (mindComponent.Session == null)
if (!_playerManager.TryGetSessionById(mindComponent.UserId, out var session))
return;
SendBriefing(mindComponent.Session, briefing, briefingColor, briefingSound);
SendBriefing(session, briefing, briefingColor, briefingSound);
}
/// <summary>

View file

@ -56,11 +56,15 @@ namespace Content.Server.Atmos.EntitySystems
_physics.SetBodyStatus(uid, body, BodyStatus.OnGround);
}
if (TryComp<FixturesComponent>(uid, out var fixtures))
if (TryComp<FixturesComponent>(uid, out var fixtures)
&& TryComp<MovedByPressureComponent>(uid, out var component))
{
foreach (var (id, fixture) in fixtures.Fixtures)
{
_physics.AddCollisionMask(uid, id, fixture, (int) CollisionGroup.TableLayer, manager: fixtures);
if (component.TableLayerRemoved.Contains(id))
{
_physics.AddCollisionMask(uid, id, fixture, (int)CollisionGroup.TableLayer, manager: fixtures);
}
}
}
}
@ -80,9 +84,13 @@ namespace Content.Server.Atmos.EntitySystems
foreach (var (id, fixture) in fixtures.Fixtures)
{
_physics.RemoveCollisionMask(uid, id, fixture, (int) CollisionGroup.TableLayer, manager: fixtures);
// Mark fixtures that have TableLayer removed
if ((fixture.CollisionMask & (int)CollisionGroup.TableLayer) != 0)
{
component.TableLayerRemoved.Add(id);
_physics.RemoveCollisionMask(uid, id, fixture, (int)CollisionGroup.TableLayer, manager: fixtures);
}
}
// TODO: Make them dynamic type? Ehh but they still want movement so uhh make it non-predicted like weightless?
// idk it's hard.

View file

@ -46,6 +46,7 @@ internal sealed partial class ChatManager : IChatManager
[Dependency] private readonly INetConfigurationManager _netConfigManager = default!;
[Dependency] private readonly IEntityManager _entityManager = default!;
[Dependency] private readonly PlayerRateLimitManager _rateLimitManager = default!;
[Dependency] private readonly ISharedPlayerManager _player = default!;
private ISharedSponsorsManager? _sponsorsManager; // Sunrise-Sponsors
@ -185,7 +186,12 @@ internal sealed partial class ChatManager : IChatManager
var adminSystem = _entityManager.System<AdminSystem>();
var antag = mind.UserId != null && (adminSystem.GetCachedPlayerInfo(mind.UserId.Value)?.Antag ?? false);
SendAdminAlert($"{mind.Session?.Name}{(antag ? " (ANTAG)" : "")} {message}");
// We shouldn't be repeating this but I don't want to touch any more chat code than necessary
var playerName = mind.UserId is { } userId && _player.TryGetSessionById(userId, out var session)
? session.Name
: "Unknown";
SendAdminAlert($"{playerName}{(antag ? " (ANTAG)" : "")} {message}");
}
public void SendHookOOC(string sender, string message)

View file

@ -165,7 +165,7 @@ namespace Content.Server.Cloning
if (!_mindSystem.TryGetMind(body.Value, out var mindId, out var mind))
return;
if (mind.UserId.HasValue == false || mind.Session == null)
if (mind.UserId.HasValue == false || !_playerManager.ValidSessionId(mind.UserId.Value))
return;
if (_cloningPodSystem.TryCloning(cloningPodUid, body.Value, (mindId, mind), cloningPod, scannerComp.CloningFailChanceMultiplier))

View file

@ -37,11 +37,8 @@ namespace Content.Server.GameTicking
{
if (args.NewStatus != SessionStatus.Disconnected)
{
mind.Session = session;
_pvsOverride.AddSessionOverride(mindId.Value, session);
}
DebugTools.Assert(mind.Session == session);
}
DebugTools.Assert(session.GetMind() == mindId);
@ -153,10 +150,9 @@ namespace Content.Server.GameTicking
case SessionStatus.Disconnected:
{
_chatManager.SendAdminAnnouncement(Loc.GetString("player-leave-message", ("name", args.Session.Name)));
if (mind != null)
if (mindId != null)
{
_pvsOverride.ClearOverride(GetNetEntity(mindId!.Value));
mind.Session = null;
_pvsOverride.RemoveSessionOverride(mindId.Value, session);
}
if (_playerGameStatuses.ContainsKey(args.Session.UserId)) // Sunrise-Queue: Delete data only if player was in game

View file

@ -30,6 +30,7 @@ using Content.Shared.Zombies;
using Robust.Shared.Prototypes;
using Robust.Shared.Timing;
using Content.Shared.Cuffs.Components;
using Robust.Shared.Player;
using Content.Server.Administration.Managers;
using Content.Server.Administration.Systems;
using Content.Shared.Popups;
@ -41,19 +42,20 @@ namespace Content.Server.GameTicking.Rules;
/// </summary>
public sealed class RevolutionaryRuleSystem : GameRuleSystem<RevolutionaryRuleComponent>
{
[Dependency] private readonly IAdminLogManager _adminLogManager = default!;
[Dependency] private readonly AntagSelectionSystem _antag = default!;
[Dependency] private readonly EmergencyShuttleSystem _emergencyShuttle = default!;
[Dependency] private readonly EuiManager _euiMan = default!;
[Dependency] private readonly IAdminLogManager _adminLogManager = default!;
[Dependency] private readonly IGameTiming _timing = default!;
[Dependency] private readonly ISharedPlayerManager _player = default!;
[Dependency] private readonly MindSystem _mind = default!;
[Dependency] private readonly MobStateSystem _mobState = default!;
[Dependency] private readonly NpcFactionSystem _npcFaction = default!;
[Dependency] private readonly PopupSystem _popup = default!;
[Dependency] private readonly RoleSystem _role = default!;
[Dependency] private readonly SharedStunSystem _stun = default!;
[Dependency] private readonly RoundEndSystem _roundEnd = default!;
[Dependency] private readonly SharedStunSystem _stun = default!;
[Dependency] private readonly StationSystem _stationSystem = default!;
[Dependency] private readonly IGameTiming _timing = default!;
[Dependency] private readonly AlertLevelSystem _alertLevel = default!; // Sunrise-Edit
[Dependency] private readonly AdminVerbSystem _adminVerbSystem = default!;
[Dependency] private readonly IBanManager _banManager = default!;
@ -208,8 +210,8 @@ public sealed class RevolutionaryRuleSystem : GameRuleSystem<RevolutionaryRuleCo
_role.MindAddRole(mindId, "MindRoleRevolutionary");
}
if (mind?.Session != null)
_antag.SendBriefing(mind.Session, Loc.GetString("rev-role-greeting"), Color.Red, revComp.RevStartSound);
if (mind is { UserId: not null } && _player.TryGetSessionById(mind.UserId, out var session))
_antag.SendBriefing(session, Loc.GetString("rev-role-greeting"), Color.Red, revComp.RevStartSound);
}
//TODO: Enemies of the revolution
@ -271,7 +273,7 @@ public sealed class RevolutionaryRuleSystem : GameRuleSystem<RevolutionaryRuleCo
_popup.PopupEntity(Loc.GetString("rev-break-control", ("name", Identity.Entity(uid, EntityManager))), uid);
_adminLogManager.Add(LogType.Mind, LogImpact.Medium, $"{ToPrettyString(uid)} was deconverted due to all Head Revolutionaries dying.");
if (!_mind.TryGetMind(uid, out var mindId, out _, mc))
if (!_mind.TryGetMind(uid, out var mindId, out var mind, mc))
continue;
// remove their antag role
@ -279,7 +281,7 @@ public sealed class RevolutionaryRuleSystem : GameRuleSystem<RevolutionaryRuleCo
// make it very obvious to the rev they've been deconverted since
// they may not see the popup due to antag and/or new player tunnel vision
if (_mind.TryGetSession(mindId, out var session))
if (_player.TryGetSessionById(mind.UserId, out var session))
_euiMan.OpenEui(new DeconvertedEui(), session);
}
return true;

View file

@ -25,13 +25,14 @@ public sealed class ZombieRuleSystem : GameRuleSystem<ZombieRuleComponent>
{
[Dependency] private readonly AntagSelectionSystem _antag = default!;
[Dependency] private readonly ChatSystem _chat = default!;
[Dependency] private readonly SharedMindSystem _mindSystem = default!;
[Dependency] private readonly IGameTiming _timing = default!;
[Dependency] private readonly ISharedPlayerManager _player = default!;
[Dependency] private readonly MobStateSystem _mobState = default!;
[Dependency] private readonly PopupSystem _popup = default!;
[Dependency] private readonly SharedRoleSystem _roles = default!;
[Dependency] private readonly RoundEndSystem _roundEnd = default!;
[Dependency] private readonly SharedMindSystem _mindSystem = default!;
[Dependency] private readonly SharedRoleSystem _roles = default!;
[Dependency] private readonly StationSystem _station = default!;
[Dependency] private readonly IGameTiming _timing = default!;
[Dependency] private readonly ZombieSystem _zombie = default!;
public override void Initialize()
@ -95,9 +96,10 @@ public sealed class ZombieRuleSystem : GameRuleSystem<ZombieRuleComponent>
{
var meta = MetaData(survivor);
var username = string.Empty;
if (_mindSystem.TryGetMind(survivor, out _, out var mind) && mind.Session != null)
if (_mindSystem.TryGetMind(survivor, out _, out var mind) &&
_player.TryGetSessionById(mind.UserId, out var session))
{
username = mind.Session.Name;
username = session.Name;
}
args.AddLine(Loc.GetString("zombie-round-end-user-was-survivor",

View file

@ -56,7 +56,7 @@ namespace Content.Server.Ghost
[Dependency] private readonly MindSystem _minds = default!;
[Dependency] private readonly MobStateSystem _mobState = default!;
[Dependency] private readonly SharedPhysicsSystem _physics = default!;
[Dependency] private readonly IPlayerManager _playerManager = default!;
[Dependency] private readonly ISharedPlayerManager _player = default!;
[Dependency] private readonly TransformSystem _transformSystem = default!;
[Dependency] private readonly VisibilitySystem _visibilitySystem = default!;
[Dependency] private readonly MetaDataSystem _metaData = default!;
@ -401,7 +401,7 @@ namespace Content.Server.Ghost
private IEnumerable<GhostWarp> GetPlayerWarps(EntityUid except)
{
foreach (var player in _playerManager.Sessions)
foreach (var player in _player.Sessions)
{
if (player.AttachedEntity is not {Valid: true} attached)
continue;
@ -521,8 +521,8 @@ namespace Content.Server.Ghost
// However, that should rarely happen.
if (!string.IsNullOrWhiteSpace(mind.Comp.CharacterName))
_metaData.SetEntityName(ghost, mind.Comp.CharacterName);
else if (!string.IsNullOrWhiteSpace(mind.Comp.Session?.Name))
_metaData.SetEntityName(ghost, mind.Comp.Session.Name);
else if (mind.Comp.UserId is { } userId && _player.TryGetSessionById(userId, out var session))
_metaData.SetEntityName(ghost, session.Name);
if (mind.Comp.TimeOfDeath.HasValue)
{
@ -567,9 +567,9 @@ namespace Content.Server.Ghost
if (mind.PreventGhosting && !forced)
{
if (mind.Session != null) // Logging is suppressed to prevent spam from ghost attempts caused by movement attempts
if (_player.TryGetSessionById(mind.UserId, out var session)) // Logging is suppressed to prevent spam from ghost attempts caused by movement attempts
{
_chatManager.DispatchServerMessage(mind.Session, Loc.GetString("comp-mind-ghosting-prevented"),
_chatManager.DispatchServerMessage(session, Loc.GetString("comp-mind-ghosting-prevented"),
true);
}

View file

@ -2,19 +2,22 @@ using Content.Server.EUI;
using Content.Shared.Eui;
using Content.Shared.Ghost;
using Content.Shared.Mind;
using Robust.Shared.Network;
using Robust.Shared.Player;
namespace Content.Server.Ghost;
public sealed class ReturnToBodyEui : BaseEui
{
private readonly SharedMindSystem _mindSystem;
private readonly ISharedPlayerManager _player;
private readonly NetUserId? _userId;
private readonly MindComponent _mind;
public ReturnToBodyEui(MindComponent mind, SharedMindSystem mindSystem)
public ReturnToBodyEui(MindComponent mind, SharedMindSystem mindSystem, ISharedPlayerManager player)
{
_mind = mind;
_mindSystem = mindSystem;
_player = player;
_userId = mind.UserId;
}
public override void HandleMessage(EuiMessageBase msg)
@ -28,7 +31,8 @@ public sealed class ReturnToBodyEui : BaseEui
return;
}
_mindSystem.UnVisit(_mind.Session);
if (_userId is { } userId && _player.TryGetSessionById(userId, out var session))
_mindSystem.UnVisit(session);
Close();
}

View file

@ -36,12 +36,13 @@ public sealed class DefibrillatorSystem : EntitySystem
[Dependency] private readonly DoAfterSystem _doAfter = default!;
[Dependency] private readonly ElectrocutionSystem _electrocution = default!;
[Dependency] private readonly EuiManager _euiManager = default!;
[Dependency] private readonly ISharedPlayerManager _player = default!;
[Dependency] private readonly ItemToggleSystem _toggle = default!;
[Dependency] private readonly RottingSystem _rotting = default!;
[Dependency] private readonly MobStateSystem _mobState = default!;
[Dependency] private readonly MobThresholdSystem _mobThreshold = default!;
[Dependency] private readonly PopupSystem _popup = default!;
[Dependency] private readonly PowerCellSystem _powerCell = default!;
[Dependency] private readonly RottingSystem _rotting = default!;
[Dependency] private readonly SharedAudioSystem _audio = default!;
[Dependency] private readonly SharedMindSystem _mind = default!;
[Dependency] private readonly UseDelaySystem _useDelay = default!;
@ -212,13 +213,13 @@ public sealed class DefibrillatorSystem : EntitySystem
}
if (_mind.TryGetMind(target, out _, out var mind) &&
mind.Session is { } playerSession)
_player.TryGetSessionById(mind.UserId, out var playerSession))
{
session = playerSession;
// notify them they're being revived.
if (mind.CurrentEntity != target)
{
_euiManager.OpenEui(new ReturnToBodyEui(mind, _mind), session);
_euiManager.OpenEui(new ReturnToBodyEui(mind, _mind, _player), session);
}
}
else

View file

@ -69,7 +69,7 @@ public sealed class MindSystem : SharedMindSystem
TransferTo(mindId, null, createGhost: false, mind: mind);
DebugTools.AssertNull(mind.OwnedEntity);
if (!component.GhostOnShutdown || mind.Session == null || _gameTicker.RunLevel == GameRunLevel.PreRoundLobby)
if (!component.GhostOnShutdown || _gameTicker.RunLevel == GameRunLevel.PreRoundLobby)
return;
var ghost = _ghosts.SpawnGhost((mindId, mind), uid);
@ -93,16 +93,6 @@ public sealed class MindSystem : SharedMindSystem
return false;
}
public ICommonSession? GetSession(MindComponent mind)
{
return mind.Session;
}
public bool TryGetSession(MindComponent mind, [NotNullWhen(true)] out ICommonSession? session)
{
return (session = GetSession(mind)) != null;
}
public override void WipeAllMinds()
{
base.WipeAllMinds();
@ -144,10 +134,10 @@ public sealed class MindSystem : SharedMindSystem
// Do this AFTER the entity changes above as this will fire off a player-detached event
// which will run ghosting twice.
if (GetSession(mind) is { } session)
if (_players.TryGetSessionById(mind.UserId, out var session))
_players.SetAttachedEntity(session, entity);
Log.Info($"Session {mind.Session?.Name} visiting entity {entity}.");
Log.Info($"Session {session?.Name} visiting entity {entity}.");
}
public override void UnVisit(EntityUid mindId, MindComponent? mind = null)
@ -162,17 +152,19 @@ public sealed class MindSystem : SharedMindSystem
RemoveVisitingEntity(mindId, mind);
if (mind.Session == null || mind.Session.AttachedEntity == mind.VisitingEntity)
if (mind.UserId == null || !_players.TryGetSessionById(mind.UserId.Value, out var session))
return;
if (session.AttachedEntity == mind.VisitingEntity)
return;
var owned = mind.OwnedEntity;
if (GetSession(mind) is { } session)
_players.SetAttachedEntity(session, owned);
_players.SetAttachedEntity(session, owned);
if (owned.HasValue)
{
_adminLogger.Add(LogType.Mind, LogImpact.Low,
$"{mind.Session.Name} returned to {ToPrettyString(owned.Value)}");
$"{session.Name} returned to {ToPrettyString(owned.Value)}");
}
}
@ -199,7 +191,8 @@ public sealed class MindSystem : SharedMindSystem
if (TryComp<ActorComponent>(entity.Value, out var actor))
{
// Happens when transferring to your currently visited entity.
if (actor.PlayerSession != mind.Session)
if (!_players.TryGetSessionByEntity(entity.Value, out var session) ||
mind.UserId == null || actor.PlayerSession != session )
{
throw new ArgumentException("Visit target already has a session.", nameof(entity));
}
@ -253,12 +246,12 @@ public sealed class MindSystem : SharedMindSystem
}
// Player is CURRENTLY connected.
var session = GetSession(mind);
if (session != null && !alreadyAttached && mind.VisitingEntity == null)
if (mind.UserId != null && _players.TryGetSessionById(mind.UserId.Value, out var userSession)
&& !alreadyAttached && mind.VisitingEntity == null)
{
_players.SetAttachedEntity(session, entity, true);
DebugTools.Assert(session.AttachedEntity == entity, $"Failed to attach entity.");
Log.Info($"Session {session.Name} transferred to entity {entity}.");
_players.SetAttachedEntity(userSession, entity, true);
DebugTools.Assert(userSession.AttachedEntity == entity, "Failed to attach entity.");
Log.Info($"Session {userSession.Name} transferred to entity {entity}.");
}
if (entity != null)
@ -288,18 +281,18 @@ public sealed class MindSystem : SharedMindSystem
return;
Dirty(mindId, mind);
var netMind = GetNetEntity(mindId);
_pvsOverride.ClearOverride(netMind);
if (userId != null && !_players.TryGetPlayerData(userId.Value, out _))
{
Log.Error($"Attempted to set mind user to invalid value {userId}");
return;
}
if (mind.Session != null)
// Clear any existing entity attachment
if (_players.TryGetSessionById(mind.UserId, out var oldSession))
{
_players.SetAttachedEntity(GetSession(mind), null);
mind.Session = null;
_players.SetAttachedEntity(oldSession, null);
_pvsOverride.RemoveSessionOverride(mindId, oldSession);
}
if (mind.UserId != null)
@ -311,10 +304,7 @@ public sealed class MindSystem : SharedMindSystem
}
if (userId == null)
{
DebugTools.AssertNull(mind.Session);
return;
}
if (UserMinds.TryGetValue(userId.Value, out var oldMindId) &&
TryComp(oldMindId, out MindComponent? oldMind))
@ -333,11 +323,10 @@ public sealed class MindSystem : SharedMindSystem
if (_players.GetPlayerData(userId.Value).ContentData() is { } data)
data.Mind = mindId;
if (_players.TryGetSessionById(userId.Value, out var ret))
if (_players.TryGetSessionById(userId.Value, out var session))
{
mind.Session = ret;
_pvsOverride.AddSessionOverride(mindId, ret);
_players.SetAttachedEntity(ret, mind.CurrentEntity);
_pvsOverride.AddSessionOverride(mindId, session);
_players.SetAttachedEntity(session, mind.CurrentEntity);
}
}

View file

@ -15,6 +15,7 @@ using Content.Shared.Nutrition.Components;
using Content.Shared.Smoking;
using Content.Shared.Temperature;
using Robust.Server.GameObjects;
using Robust.Shared.Audio.Systems;
using Robust.Shared.Containers;
using System.Linq;
using Content.Shared.Atmos;
@ -30,6 +31,7 @@ namespace Content.Server.Nutrition.EntitySystems
[Dependency] private readonly TransformSystem _transformSystem = default!;
[Dependency] private readonly InventorySystem _inventorySystem = default!;
[Dependency] private readonly ClothingSystem _clothing = default!;
[Dependency] private readonly SharedAudioSystem _audio = default!;
[Dependency] private readonly SharedItemSystem _items = default!;
[Dependency] private readonly SharedContainerSystem _container = default!;
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
@ -39,11 +41,6 @@ namespace Content.Server.Nutrition.EntitySystems
private float _timer;
/// <summary>
/// We keep a list of active smokables, because iterating all existing smokables would be dumb.
/// </summary>
private readonly HashSet<EntityUid> _active = new();
public override void Initialize()
{
SubscribeLocalEvent<SmokableComponent, IsHotEvent>(OnSmokableIsHotEvent);
@ -65,7 +62,7 @@ namespace Content.Server.Nutrition.EntitySystems
public void SetSmokableState(EntityUid uid, SmokableState state, SmokableComponent? smokable = null,
AppearanceComponent? appearance = null, ClothingComponent? clothing = null)
{
if (!Resolve(uid, ref smokable, ref appearance, ref clothing))
if (!Resolve(uid, ref smokable, ref appearance, ref clothing) || smokable.State == state)
return;
smokable.State = state;
@ -83,17 +80,17 @@ namespace Content.Server.Nutrition.EntitySystems
if (state == SmokableState.Lit)
{
EnsureComp<BurningComponent>(uid);
_audio.PlayPvs(smokable.LightSound, uid);
var igniteEvent = new IgnitedEvent();
RaiseLocalEvent(uid, ref igniteEvent);
_active.Add(uid);
}
else
{
var igniteEvent = new ExtinguishedEvent();
RaiseLocalEvent(uid, ref igniteEvent);
_active.Remove(uid);
RemComp<BurningComponent>(uid);
_audio.PlayPvs(smokable.SnuffSound, uid);
var extinguishEvent = new ExtinguishedEvent();
RaiseLocalEvent(uid, ref extinguishEvent);
}
}
@ -104,7 +101,7 @@ namespace Content.Server.Nutrition.EntitySystems
private void OnSmokableShutdownEvent(Entity<SmokableComponent> entity, ref ComponentShutdown args)
{
_active.Remove(entity);
RemComp<BurningComponent>(entity);
}
private void OnSmokeableEquipEvent(Entity<SmokableComponent> entity, ref GotEquippedEvent args)
@ -122,18 +119,12 @@ namespace Content.Server.Nutrition.EntitySystems
if (_timer < UpdateTimer)
return;
// TODO Use an "active smoke" component instead, EntityQuery over that.
foreach (var uid in _active.ToArray())
var query = EntityQueryEnumerator<BurningComponent, SmokableComponent>();
while (query.MoveNext(out var uid, out _, out var smokable))
{
if (!TryComp(uid, out SmokableComponent? smokable))
{
_active.Remove(uid);
continue;
}
if (!_solutionContainerSystem.TryGetSolution(uid, smokable.Solution, out var soln, out var solution))
{
_active.Remove(uid);
SetSmokableState(uid, SmokableState.Unlit, smokable);
continue;
}

View file

@ -127,7 +127,7 @@ public sealed class PlayTimeTrackingSystem : EntitySystem
private void OnRoleEvent(RoleEvent ev)
{
if (_minds.TryGetSession(ev.Mind, out var session))
if (_playerManager.TryGetSessionById(ev.Mind.UserId, out var session))
_tracking.QueueRefreshTrackers(session);
}

View file

@ -18,6 +18,7 @@ public sealed class JobSystem : SharedJobSystem
{
[Dependency] private readonly IChatManager _chat = default!;
[Dependency] private readonly MindSystem _mind = default!;
[Dependency] private readonly ISharedPlayerManager _player = default!;
[Dependency] private readonly RoleSystem _roles = default!;
[Dependency] private readonly SharedPlayerSystem _playerSystem = default!;
[Dependency] private readonly IComponentFactory _componentFactory = default!;
@ -48,7 +49,7 @@ public sealed class JobSystem : SharedJobSystem
if (args.Silent)
return;
if (!_mind.TryGetSession(mindId, out var session))
if (!_player.TryGetSessionById(component.UserId, out var session))
return;
if (!MindTryGetJob(mindId, out var prototype))

View file

@ -46,7 +46,7 @@ public sealed class RoleSystem : SharedRoleSystem
public void RoleUpdateMessage(MindComponent mind)
{
if (mind.Session is null)
if (!Player.TryGetSessionById(mind.UserId, out var session))
return;
if (!_proto.TryIndex(mind.RoleType, out var proto))
@ -55,8 +55,6 @@ public sealed class RoleSystem : SharedRoleSystem
var roleText = Loc.GetString(proto.Name);
var color = proto.Color;
var session = mind.Session;
//TODO add audio? Would need to be optional so it does not play on role changes that already come with their own audio
// _audio.PlayGlobal(Sound, session);

View file

@ -54,7 +54,7 @@ public sealed partial class BorgSystem : SharedBorgSystem
[Dependency] private readonly UserInterfaceSystem _ui = default!;
[Dependency] private readonly SharedContainerSystem _container = default!;
[Dependency] private readonly EntityWhitelistSystem _whitelistSystem = default!;
[Dependency] private readonly ISharedPlayerManager _player = default!;
[ValidatePrototypeId<JobPrototype>]
public const string BorgJobId = "Borg";
@ -110,9 +110,10 @@ public sealed partial class BorgSystem : SharedBorgSystem
if (component.BrainEntity == null && brain != null &&
_whitelistSystem.IsWhitelistPassOrNull(component.BrainWhitelist, used))
{
if (_mind.TryGetMind(used, out _, out var mind) && mind.Session != null)
if (_mind.TryGetMind(used, out _, out var mind) &&
_player.TryGetSessionById(mind.UserId, out var session))
{
if (!CanPlayerBeBorged(mind.Session))
if (!CanPlayerBeBorged(session))
{
Popup.PopupEntity(Loc.GetString("borg-player-not-allowed"), used, args.User);
return;
@ -245,10 +246,11 @@ public sealed partial class BorgSystem : SharedBorgSystem
container.ID != chassisComponent.BrainContainerId)
return;
if (!_mind.TryGetMind(uid, out var mindId, out var mind) || mind.Session == null)
if (!_mind.TryGetMind(uid, out var mindId, out var mind) ||
!_player.TryGetSessionById(mind.UserId, out var session))
return;
if (!CanPlayerBeBorged(mind.Session))
if (!CanPlayerBeBorged(session))
{
Popup.PopupEntity(Loc.GetString("borg-player-not-allowed-eject"), uid);
Container.RemoveEntity(containerEnt, uid);

View file

@ -1,6 +1,7 @@
using Content.Server.Antag;
using Content.Server.Traitor.Components;
using Content.Shared.Mind.Components;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;
namespace Content.Server.Traitor.Systems;
@ -11,6 +12,7 @@ namespace Content.Server.Traitor.Systems;
public sealed class AutoTraitorSystem : EntitySystem
{
[Dependency] private readonly AntagSelectionSystem _antag = default!;
[Dependency] private readonly ISharedPlayerManager _player = default!;
public override void Initialize()
{
@ -21,6 +23,9 @@ public sealed class AutoTraitorSystem : EntitySystem
private void OnMindAdded(EntityUid uid, AutoTraitorComponent comp, MindAddedMessage args)
{
_antag.ForceMakeAntag<AutoTraitorComponent>(args.Mind.Comp.Session, comp.Profile);
if (!_player.TryGetSessionById(args.Mind.Comp.UserId, out var session))
return;
_antag.ForceMakeAntag<AutoTraitorComponent>(session, comp.Profile);
}
}

View file

@ -40,7 +40,9 @@ using Content.Shared.Prying.Components;
using Content.Shared.Traits.Assorted;
using Robust.Shared.Audio.Systems;
using Content.Shared.Ghost.Roles.Components;
using Content.Shared.Roles;
using Content.Shared.Tag;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;
namespace Content.Server.Zombies;
@ -66,6 +68,8 @@ public sealed partial class ZombieSystem
[Dependency] private readonly NPCSystem _npc = default!;
[Dependency] private readonly TagSystem _tag = default!;
[Dependency] private readonly NameModifierSystem _nameMod = default!;
[Dependency] private readonly SharedRoleSystem _roles = default!;
[Dependency] private readonly ISharedPlayerManager _player = default!;
[Dependency] private readonly GhostSystem _ghostSystem = default!;
[Dependency] private readonly IBanManager _banManager = default!;
@ -255,7 +259,7 @@ public sealed partial class ZombieSystem
//He's gotta have a mind
var hasMind = _mind.TryGetMind(target, out var mindId, out var mind);
if (hasMind && _mind.TryGetSession(mindId, out var session))
if (hasMind && mind != null && _player.TryGetSessionById(mind.UserId, out var session))
{
// Check if the user has a ban on "Zombie"
if (_banManager.IsAntagBanned(session.UserId, zombiecomp.ZombieRoleId))

View file

@ -27,5 +27,11 @@ public sealed partial class MovedByPressureComponent : Component
[ViewVariables(VVAccess.ReadWrite)]
public int LastHighPressureMovementAirCycle { get; set; } = 0;
/// <summary>
/// Used to remember which fixtures we have to remove the table mask from and give it back accordingly
/// </summary>
[DataField]
public HashSet<string> TableLayerRemoved = new();
}

View file

@ -8,6 +8,7 @@ using Content.Shared.Mobs.Systems;
using Robust.Shared.Configuration;
using Robust.Shared.Containers;
using Robust.Shared.Map;
using Robust.Shared.Player;
using Robust.Shared.Timing;
namespace Content.Shared.Bed.Cryostorage;
@ -17,13 +18,14 @@ namespace Content.Shared.Bed.Cryostorage;
/// </summary>
public abstract class SharedCryostorageSystem : EntitySystem
{
[Dependency] protected readonly ISharedAdminLogManager AdminLog = default!;
[Dependency] private readonly IConfigurationManager _configuration = default!;
[Dependency] private readonly IConfigurationManager _configuration = default!;
[Dependency] private readonly IMapManager _mapManager = default!;
[Dependency] private readonly ISharedPlayerManager _player = default!;
[Dependency] private readonly MobStateSystem _mobState = default!;
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
[Dependency] protected readonly IGameTiming Timing = default!;
[Dependency] private readonly IMapManager _mapManager = default!;
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
[Dependency] protected readonly ISharedAdminLogManager AdminLog = default!;
[Dependency] protected readonly SharedMindSystem Mind = default!;
[Dependency] private readonly MobStateSystem _mobState = default!;
protected EntityUid? PausedMap { get; private set; }
@ -123,7 +125,8 @@ public abstract class SharedCryostorageSystem : EntitySystem
if (args.Dragged == args.User)
return;
if (!Mind.TryGetMind(args.Dragged, out _, out var mindComp) || mindComp.Session?.AttachedEntity != args.Dragged)
if (!_player.TryGetSessionByEntity(args.Dragged, out var session) ||
session.AttachedEntity != args.Dragged)
return;
args.CanDrop = false;

View file

@ -3,6 +3,7 @@ using Content.Shared.Cargo.Prototypes;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
using Robust.Shared.Timing;
using Robust.Shared.Utility;
namespace Content.Shared.Cargo;
@ -49,7 +50,8 @@ public abstract class SharedCargoSystem : EntitySystem
foreach (var (account, percentage) in stationBank.Comp.RevenueDistribution)
{
distribution.Add(account, remaining * percentage);
var existing = distribution.GetOrNew(account);
distribution[account] = existing + remaining * percentage;
}
return distribution;
}

View file

@ -95,11 +95,22 @@ namespace Content.Shared.Input
public static readonly BoundKeyFunction Hotbar7 = "Hotbar7";
public static readonly BoundKeyFunction Hotbar8 = "Hotbar8";
public static readonly BoundKeyFunction Hotbar9 = "Hotbar9";
public static readonly BoundKeyFunction HotbarShift0 = "HotbarShift0";
public static readonly BoundKeyFunction HotbarShift1 = "HotbarShift1";
public static readonly BoundKeyFunction HotbarShift2 = "HotbarShift2";
public static readonly BoundKeyFunction HotbarShift3 = "HotbarShift3";
public static readonly BoundKeyFunction HotbarShift4 = "HotbarShift4";
public static readonly BoundKeyFunction HotbarShift5 = "HotbarShift5";
public static readonly BoundKeyFunction HotbarShift6 = "HotbarShift6";
public static readonly BoundKeyFunction HotbarShift7 = "HotbarShift7";
public static readonly BoundKeyFunction HotbarShift8 = "HotbarShift8";
public static readonly BoundKeyFunction HotbarShift9 = "HotbarShift9";
public static BoundKeyFunction[] GetHotbarBoundKeys() =>
new[]
{
Hotbar1, Hotbar2, Hotbar3, Hotbar4, Hotbar5, Hotbar6, Hotbar7, Hotbar8, Hotbar9, Hotbar0
Hotbar1, Hotbar2, Hotbar3, Hotbar4, Hotbar5, Hotbar6, Hotbar7, Hotbar8, Hotbar9, Hotbar0,
HotbarShift1, HotbarShift2, HotbarShift3, HotbarShift4, HotbarShift5, HotbarShift6, HotbarShift7, HotbarShift8, HotbarShift9, HotbarShift0
};
public static readonly BoundKeyFunction Vote0 = "Vote0";

View file

@ -113,12 +113,4 @@ public sealed partial class MindComponent : Component
/// </summary>
[DataField]
public LocId? Subtype;
/// <summary>
/// The session of the player owning this mind.
/// Can be null, in which case the player is currently not logged in.
/// </summary>
[ViewVariables, Access(typeof(SharedMindSystem), typeof(SharedGameTicker))]
// TODO remove this after moving IPlayerManager functions to shared
public ICommonSession? Session { get; set; }
}

View file

@ -26,6 +26,7 @@ public abstract partial class SharedMindSystem : EntitySystem
[Dependency] private readonly MobStateSystem _mobState = default!;
[Dependency] private readonly SharedObjectivesSystem _objectives = default!;
[Dependency] private readonly SharedPlayerSystem _player = default!;
[Dependency] private readonly ISharedPlayerManager _playerManager = default!;
[Dependency] private readonly MetaDataSystem _metadata = default!;
[Dependency] private readonly EntityWhitelistSystem _whitelist = default!;
@ -153,23 +154,31 @@ public abstract partial class SharedMindSystem : EntitySystem
if (!mindContainer.ShowExamineInfo || !args.IsInDetailsRange)
return;
// TODO predict we can't right now because session stuff isnt networked
// TODO: Move this out of the SharedMindSystem into its own comp and predict it
if (_net.IsClient)
return;
var dead = _mobState.IsDead(uid);
var hasUserId = CompOrNull<MindComponent>(mindContainer.Mind)?.UserId;
var hasSession = CompOrNull<MindComponent>(mindContainer.Mind)?.Session;
var mind = CompOrNull<MindComponent>(mindContainer.Mind);
var hasUserId = mind?.UserId;
var hasActiveSession = hasUserId != null && _playerManager.ValidSessionId(hasUserId.Value);
// Scenarios:
// 1. Dead + No User ID: Entity is permanently dead with no player ever attached
// 2. Dead + Has User ID + No Session: Player died and disconnected
// 3. Dead + Has Session: Player is dead but still connected
// 4. Alive + No User ID: Entity was never controlled by a player
// 5. Alive + No Session: Player disconnected while alive (SSD)
if (dead && hasUserId == null)
args.PushMarkup($"[color=mediumpurple]{Loc.GetString("comp-mind-examined-dead-and-irrecoverable", ("ent", uid))}[/color]");
else if (dead && hasSession == null)
else if (dead && !hasActiveSession)
args.PushMarkup($"[color=yellow]{Loc.GetString("comp-mind-examined-dead-and-ssd", ("ent", uid))}[/color]");
else if (dead)
args.PushMarkup($"[color=red]{Loc.GetString("comp-mind-examined-dead", ("ent", uid))}[/color]");
else if (hasUserId == null)
args.PushMarkup($"[color=mediumpurple]{Loc.GetString("comp-mind-examined-catatonic", ("ent", uid))}[/color]");
else if (hasSession == null)
else if (!hasActiveSession)
args.PushMarkup($"[color=yellow]{Loc.GetString("comp-mind-examined-ssd", ("ent", uid))}[/color]");
}
@ -460,12 +469,6 @@ public abstract partial class SharedMindSystem : EntitySystem
return false;
}
public bool TryGetSession(EntityUid? mindId, [NotNullWhen(true)] out ICommonSession? session)
{
session = null;
return TryComp(mindId, out MindComponent? mind) && (session = mind.Session) != null;
}
/// <summary>
/// Gets a mind from uid and/or MindContainerComponent. Used for null checks.
/// </summary>

View file

@ -1,5 +1,6 @@
using Content.Shared.FixedPoint;
using Content.Shared.Smoking;
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
namespace Content.Shared.Nutrition.Components
@ -32,5 +33,17 @@ namespace Content.Shared.Nutrition.Components
public string LitPrefix = "lit";
[DataField("unlitPrefix")]
public string UnlitPrefix = "unlit";
/// <summary>
/// Sound played when lighting this smokable.
/// </summary>
[DataField]
public SoundSpecifier? LightSound = new SoundPathSpecifier("/Audio/Effects/cig_light.ogg");
/// <summary>
/// Sound played when this smokable is extinguished or runs out.
/// </summary>
[DataField]
public SoundSpecifier? SnuffSound = new SoundPathSpecifier("/Audio/Effects/cig_snuff.ogg");
}
}

View file

@ -10,6 +10,7 @@ using Robust.Shared.Audio;
using Robust.Shared.Audio.Systems;
using Robust.Shared.Configuration;
using Robust.Shared.Map;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
using Robust.Shared.Utility;
@ -18,12 +19,13 @@ namespace Content.Shared.Roles;
public abstract class SharedRoleSystem : EntitySystem
{
[Dependency] private readonly ISharedAdminLogManager _adminLogger = default!;
[Dependency] private readonly SharedAudioSystem _audio = default!;
[Dependency] private readonly IConfigurationManager _cfg = default!;
[Dependency] private readonly IEntityManager _entityManager = default!;
[Dependency] private readonly SharedMindSystem _minds = default!;
[Dependency] private readonly IPrototypeManager _prototypes = default!;
[Dependency] private readonly IConfigurationManager _cfg = default!;
[Dependency] private readonly IEntityManager _entityManager = default!;
[Dependency] private readonly IPrototypeManager _prototypes = default!;
[Dependency] private readonly ISharedAdminLogManager _adminLogger = default!;
[Dependency] protected readonly ISharedPlayerManager Player = default!;
[Dependency] private readonly SharedAudioSystem _audio = default!;
[Dependency] private readonly SharedMindSystem _minds = default!;
private JobRequirementOverridePrototype? _requirementOverride;
@ -256,7 +258,7 @@ public abstract class SharedRoleSystem : EntitySystem
Dirty(mind, comp);
// Update player character window
if (_minds.TryGetSession(mind, out var session))
if (Player.TryGetSessionById(comp.UserId, out var session))
RaiseNetworkEvent(new MindRoleTypeChangedEvent(), session.Channel);
else
{
@ -590,8 +592,11 @@ public abstract class SharedRoleSystem : EntitySystem
/// </summary>
public void MindPlaySound(EntityUid mindId, SoundSpecifier? sound, MindComponent? mind = null)
{
if (Resolve(mindId, ref mind) && mind.Session != null)
_audio.PlayGlobal(sound, mind.Session);
if (!Resolve(mindId, ref mind))
return;
if (Player.TryGetSessionById(mind.UserId, out var session))
_audio.PlayGlobal(sound, session);
}
// TODO ROLES Change to readonly.

View file

@ -0,0 +1,12 @@
using Robust.Shared.GameStates;
namespace Content.Shared.Smoking;
/// <summary>
/// Marker component used to track active burning objects.
/// </summary>
/// <remarks>
/// Right now only smoking uses this, but flammable could use it as well in the future.
/// </remarks>
[RegisterComponent, NetworkedComponent]
public sealed partial class BurningComponent : Component;

View file

@ -130,7 +130,7 @@ public partial class SharedGunSystem
return false;
}
for (var i = Math.Min(ev.Ammo.Count - 1, component.Capacity - 1); i >= 0; i--)
for (var i = 0; i < component.Capacity; i++)
{
var index = (component.CurrentIndex + i) % component.Capacity;

View file

@ -242,6 +242,11 @@
license: "CC0-1.0"
source: https://freesound.org/people/Vrymaa/sounds/785128/
- files: ["cig_light.ogg", "cig_snuff.ogg"]
license: "CC-BY-SA-3.0"
copyright: "Created by mattroks101 for Bee Station. cig_snuff converted to mono"
source: "https://github.com/BeeStation/BeeStation-Hornet/pull/29"
- files: [changeling_shriek.ogg]
copyright: whateverusername0
license: CC-BY-SA-3.0

Binary file not shown.

Binary file not shown.

View file

@ -1,33 +1,4 @@
Entries:
- author: Plykiya
changes:
- message: Cargo armor crate now correctly indicates that it contains bulletproof
vests.
type: Fix
id: 7736
time: '2024-12-19T17:21:28.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/33414
- author: Piras314
changes:
- message: Removed the nuke song "Clearly Nuclear" on request of the author.
type: Remove
id: 7737
time: '2024-12-20T14:35:55.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/33971
- author: VlaDOS1408
changes:
- message: The Communication Console UI is now resizable.
type: Fix
id: 7738
time: '2024-12-20T16:17:13.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/33655
- author: RatIRL
changes:
- message: Added All-Hostile ballistic turret.
type: Add
id: 7739
time: '2024-12-20T20:34:53.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/33970
- author: Beck Thompson
changes:
- message: Defibrillator cooldowns are now clearly visible.
@ -3906,3 +3877,38 @@
id: 8236
time: '2025-04-18T19:56:57.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/34627
- author: Ilya246
changes:
- message: The actions hotbar now has up to 10 more hotkeys accessible through the
shift key.
type: Add
id: 8237
time: '2025-04-18T22:45:20.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/33872
- author: lzk228
changes:
- message: Fixed breaking small mobs (e.g. mice) mask after getting into an air
flow.
type: Fix
id: 8238
time: '2025-04-18T22:52:09.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/33888
- author: YoungThugSS14
changes:
- message: The Diona and Gingerbread species now get unique typing indicators
type: Add
id: 8239
time: '2025-04-18T23:19:05.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/36126
- author: Rainbeon
changes:
- message: Fixed Revolvers not correctly reloading from Speedloaders when the Revolver
is partially loaded.
type: Fix
- message: Speedloaders will now prioritize loading the active and upcoming chambers
in a Revolver when the Speedloader is only partially filled, rather than the
ones farthest away.
type: Fix
id: 8240
time: '2025-04-18T23:26:44.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/32396

View file

@ -227,6 +227,16 @@ ui-options-function-hotbar7 = Hotbar slot 7
ui-options-function-hotbar8 = Hotbar slot 8
ui-options-function-hotbar9 = Hotbar slot 9
ui-options-function-hotbar0 = Hotbar slot 0
ui-options-function-hotbarshift1 = Hotbar slot Shift+1
ui-options-function-hotbarshift2 = Hotbar slot Shift+2
ui-options-function-hotbarshift3 = Hotbar slot Shift+3
ui-options-function-hotbarshift4 = Hotbar slot Shift+4
ui-options-function-hotbarshift5 = Hotbar slot Shift+5
ui-options-function-hotbarshift6 = Hotbar slot Shift+6
ui-options-function-hotbarshift7 = Hotbar slot Shift+7
ui-options-function-hotbarshift8 = Hotbar slot Shift+8
ui-options-function-hotbarshift9 = Hotbar slot Shift+9
ui-options-function-hotbarshift0 = Hotbar slot Shift+0
ui-options-function-loadout1 = Hotbar Loadout 1
ui-options-function-loadout2 = Hotbar Loadout 2
ui-options-function-loadout3 = Hotbar Loadout 3
@ -237,6 +247,16 @@ ui-options-function-loadout7 = Hotbar Loadout 7
ui-options-function-loadout8 = Hotbar Loadout 8
ui-options-function-loadout9 = Hotbar Loadout 9
ui-options-function-loadout0 = Hotbar Loadout 0
ui-options-function-loadoutshift1 = Hotbar Loadout Shift+1
ui-options-function-loadoutshift2 = Hotbar Loadout Shift+2
ui-options-function-loadoutshift3 = Hotbar Loadout Shift+3
ui-options-function-loadoutshift4 = Hotbar Loadout Shift+4
ui-options-function-loadoutshift5 = Hotbar Loadout Shift+5
ui-options-function-loadoutshift6 = Hotbar Loadout Shift+6
ui-options-function-loadoutshift7 = Hotbar Loadout Shift+7
ui-options-function-loadoutshift8 = Hotbar Loadout Shift+8
ui-options-function-loadoutshift9 = Hotbar Loadout Shift+9
ui-options-function-loadoutshift0 = Hotbar Loadout Shift+0
ui-options-function-shuttle-strafe-up = Strafe up
ui-options-function-shuttle-strafe-right = Strafe right

View file

@ -97,6 +97,8 @@
Male: UnisexDiona
Female: UnisexDiona
Unsexed: UnisexDiona
- type: TypingIndicator
proto: diona
- type: BodyEmotes
soundsId: DionaBodyEmotes
- type: IgnoreKudzu

View file

@ -43,6 +43,8 @@
- MobMask
layer:
- MobLayer
- type: TypingIndicator
proto: gingerbread
- type: Inventory
femaleDisplacements:
jumpsuit:

View file

@ -49,6 +49,16 @@
typingState: slime0
offset: 0, 0.125
- type: typingIndicator
id: gingerbread
typingState: gingerbread0
offset: 0, 0.125
- type: typingIndicator
id: diona
typingState: diona0
offset: 0, 0.125
# Sunrise-Start
- type: typingIndicator
id: sun

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 450 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

View file

@ -1,73 +1,22 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "https://github.com/tgstation/tgstation/commit/e1d7836b6044a327530082cc43a55cc01a4d04bb | Moth sprites made by PuroSlavKing (Github) | Spider sprites made by PixelTheKermit (Github), resprited by mishutka09 (1152277579206774854) on discord | Slime sprites resprited by netwy (583844759429316618) on discord. | Lizard sprites made by AmalgoMyte (Github)",
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/c6e3401f2e7e1e55c57060cdf956a98ef1fefc24 | Moth sprites made by PuroSlavKing (Github) | Spider sprites made by PixelTheKermit (Github) | Lizard sprites made by AmalgoMyte (Github) | Diona and Gingerbread sprites made by YoungThugSS14 (Github)",
"states": [
{
"name": "default0",
"delays": [
[
0.3,
0.1,
0.1,
0.1,
0.1,
1,
0.1,
0.1
]
]
},
{
"name": "default1"
},
{
"name": "default2"
},
{
"name": "default3",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.05,
0.05,
0.1,
0.1,
0.1,
0.1,
0.1,
1,
0.1,
0.1
]
]
},
{
"name": "alien0",
"delays": [
[
0.1,
0.1,
0.2,
0.1,
0.1,
0.2,
0.1,
0.1,
0.1,
1,
0.1,
0.5
0.2,
0.2,
0.2,
0.4
]
]
},
@ -77,67 +26,17 @@
{
"name": "alien2"
},
{
"name": "alien3",
"delays": [
[
0.1,
0.05,
0.05,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
1,
0.1,
0.1,
0.1,
0.1,
0.6
]
]
},
{
"name": "alienroyal0",
"delays": [
[
0.05,
0.05,
0.1,
0.1,
0.1,
0.075,
0.05,
0.2,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.075,
0.05,
0.2,
0.1,
0.1,
0.1,
0.1,
0.1,
0.05,
0.1,
1,
0.1,
1
0.3,
0.3,
0.3,
0.3,
0.5
]
]
},
@ -148,38 +47,167 @@
"name": "alienroyal2"
},
{
"name": "alienroyal3",
"name": "blob0",
"delays": [
[
0.2,
0.4,
0.4,
0.4,
0.4,
0.4
]
]
},
{
"name": "blob1"
},
{
"name": "blob2"
},
{
"name": "clock0",
"delays": [
[
0.2,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.3
]
]
},
{
"name": "clock1",
"delays": [
[
0.6,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
1,
0.1,
0.1
]
]
},
{
"name": "robot0",
"name": "clock2",
"delays": [
[
0.6,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "default0",
"delays": [
[
0.2,
0.3,
0.3,
0.5
]
]
},
{
"name": "default1"
},
{
"name": "default2"
},
{
"name": "diona0",
"delays": [
[
0.3,
0.3,
0.3,
0.4
]
]
},
{
"name": "diona1"
},
{
"name": "diona2"
},
{
"name": "gingerbread0",
"delays": [
[
0.3,
0.3,
0.3,
0.4
]
]
},
{
"name": "gingerbread1"
},
{
"name": "gingerbread2"
},
{
"name": "guardian0",
"delays": [
[
0.4,
0.4,
0.4,
0.6
]
]
},
{
"name": "guardian1"
},
{
"name": "guardian2"
},
{
"name": "holo0",
"delays": [
[
0.2,
0.1,
0.1,
0.1,
0.1,
0.2
]
]
},
{
"name": "holo1"
},
{
"name": "holo2"
},
{
"name": "lawyer0",
"delays": [
[
0.3,
0.3,
0.3,
0.4
]
]
},
{
"name": "lawyer1",
"delays": [
[
0.1,
@ -187,33 +215,12 @@
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
1
0.1
]
]
},
{
"name": "robot1"
},
{
"name": "robot2"
},
{
"name": "robot3",
"name": "lawyer2",
"delays": [
[
0.1,
@ -242,17 +249,6 @@
{
"name": "lizard2"
},
{
"name": "lizard3",
"delays": [
[
0.3,
0.3,
0.3,
0.4
]
]
},
{
"name": "moth0",
"delays": [
@ -291,13 +287,84 @@
]
},
{
"name": "moth3",
"name": "machine0",
"delays": [
[
0.4,
0.4,
0.4,
0.4
]
]
},
{
"name": "machine1"
},
{
"name": "machine2"
},
{
"name": "robot0",
"delays": [
[
0.4,
0.4,
0.4,
0.4
]
]
},
{
"name": "robot1"
},
{
"name": "robot2"
},
{
"name": "slime0",
"delays": [
[
0.1,
0.1,
0.2,
0.1,
0.1,
0.1,
0.1,
0.5
]
]
},
{
"name": "slime1",
"delays": [
[
0.1,
0.3,
0.1,
0.1,
0.1,
0.6
]
]
},
{
"name": "slime2",
"delays": [
[
0.1,
0.3,
0.1,
0.1,
0.1,
0.6
]
]
},
{
"name": "swarmer0",
"delays": [
[
0.1,
0.1,
0.1,
@ -312,7 +379,7 @@
]
},
{
"name": "machine0",
"name": "swarmer1",
"delays": [
[
0.1,
@ -324,31 +391,18 @@
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
1
0.1
]
]
},
{
"name": "machine1"
},
{
"name": "machine2"
},
{
"name": "machine3",
"name": "swarmer2",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
@ -362,27 +416,10 @@
"name": "syndibot0",
"delays": [
[
0.1,
0.1,
0.05,
0.05,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
1
0.2,
0.2,
0.2,
0.2
]
]
},
@ -392,303 +429,6 @@
{
"name": "syndibot2"
},
{
"name": "syndibot3",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "holo0",
"delays": [
[
0.12,
0.12,
0.12,
0.12,
0.12,
0.12,
0.12,
0.12,
0.12,
0.12,
0.12,
0.12
]
]
},
{
"name": "holo1"
},
{
"name": "holo2"
},
{
"name": "holo3",
"delays": [
[
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15
]
]
},
{
"name": "guardian0",
"delays": [
[
0.12,
0.12,
0.12,
0.12,
0.12,
0.12,
0.12,
0.12,
0.12,
0.12,
0.12,
0.12
]
]
},
{
"name": "guardian1"
},
{
"name": "guardian2"
},
{
"name": "guardian3",
"delays": [
[
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15,
0.15
]
]
},
{
"name": "blob0",
"delays": [
[
0.2,
0.2,
0.05,
0.05
]
]
},
{
"name": "blob1"
},
{
"name": "blob2"
},
{
"name": "blob3",
"delays": [
[
1,
1,
0.1,
1,
0.6,
1
]
]
},
{
"name": "slime0",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "slime1",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "slime2",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "slime3",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "lawyer0",
"delays": [
[
1,
0.05,
0.1,
0.05,
0.5,
0.1,
0.1
]
]
},
{
"name": "lawyer1",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "lawyer2",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "lawyer3",
"delays": [
[
0.15,
0.15,
0.15,
0.15,
0.125,
0.1,
0.125,
0.15
]
]
},
{
"name": "signlang0",
"delays": [
[
0.2,
0.2,
0.2,
0.5
]
]
},
{
"name": "signlang1",
"delays": [
[
0.15,
0.15,
0.5,
0.1
]
]
},
{
"name": "signlang2",
"delays": [
[
0.15,
0.15,
0.5,
0.1
]
]
},
{
"name": "signlang3",
"delays": [
[
0.3,
0.3
]
]
},
{
"name": "spider0",
"delays": [
@ -706,30 +446,6 @@
{
"name": "spider2"
},
{
"name": "spider3",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "vox0",
"delays": [
@ -741,113 +457,6 @@
]
]
},
{
"name": "vox3",
"delays": [
[
0.3,
0.3,
0.3,
0.4
]
]
},
{
"name": "clock0",
"delays": [
[
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3
]
]
},
{
"name": "clock1",
"delays": [
[
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3
]
]
},
{
"name": "clock2",
"delays": [
[
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3
]
]
},
{
"name": "swarmer0",
"delays": [
[
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3
]
]
},
{
"name": "swarmer1",
"delays": [
[
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3
]
]
},
{
"name": "swarmer2",
"delays": [
[
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3
]
]
},
{
"name": "sunrise0",
"delays": [

Binary file not shown.

Before

Width:  |  Height:  |  Size: 359 B

After

Width:  |  Height:  |  Size: 693 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 371 B

After

Width:  |  Height:  |  Size: 701 B

View file

@ -554,6 +554,46 @@ binds:
- function: Hotbar9
type: State
key: Num9
- function: HotbarShift0
type: State
key: Num0
mod1: Shift
- function: HotbarShift1
type: State
key: Num1
mod1: Shift
- function: HotbarShift2
type: State
key: Num2
mod1: Shift
- function: HotbarShift3
type: State
key: Num3
mod1: Shift
- function: HotbarShift4
type: State
key: Num4
mod1: Shift
- function: HotbarShift5
type: State
key: Num5
mod1: Shift
- function: HotbarShift6
type: State
key: Num6
mod1: Shift
- function: HotbarShift7
type: State
key: Num7
mod1: Shift
- function: HotbarShift8
type: State
key: Num8
mod1: Shift
- function: HotbarShift9
type: State
key: Num9
mod1: Shift
- function: MappingUnselect
type: State
key: MouseRight