Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit f583067

Browse files
ElijahranemagmodiusmetalgearslothPJBotmoonheart08
authored
Merge 06/02 (space-wizards#180)
* Electronics Crate (space-wizards#8183) Co-authored-by: metalgearsloth <[email protected]> * Automatic changelog update * Fix PoweredLightPostSmall visualizer (space-wizards#8271) * Secret! (space-wizards#8276) Co-authored-by: moonheart08 <[email protected]> * Automatic changelog update * Pulls Traitor and Nuclear Operative from rotation in favor of Secret. * Laser nerf attempt (space-wizards#8280) * Automatic changelog update * Fix bug space-wizards#8284 (space-wizards#8286) Cargo telepads should have collision when anchored * Automatic changelog update * Integration tests no longer have artificial SQLite delays. (space-wizards#8289) Should hopefully fix DEBUG tests. * Add files via upload (space-wizards#8282) * Two small bugfixes (space-wizards#8285) * Automatic changelog update * HOTFIX DOWNLOADS BEING BROKEN AGAIN AGAIN * Fix NukeOps rule not checking for enabled before adding text to the roundend screen. (space-wizards#8291) * Include nospawn in tests (space-wizards#8293) * Fix PDA ringtone crash (space-wizards#8299) * Fixed disabling OOC not disabling the discord relay (space-wizards#8275) Co-authored-by: ike709 <[email protected]> * Automatic changelog update * Fix storage interaction (space-wizards#8290) * Update submodule * Fix strippable text var (space-wizards#8302) * Higher quality flip-flap (space-wizards#8303) * Automatic changelog update * adds water and fuel tanks back to cargo (space-wizards#8168) * Saltern Update 3.3 (space-wizards#8273) * Automatic changelog update * Adjusted the medical chem inside the spacemidipen (space-wizards#8192) * Fix github action test output spam (space-wizards#8316) * Immovable rod (space-wizards#8306) * Automatic changelog update * Store what access levels are available on the IDCard console (space-wizards#8259) Might be better as an accessgroup instead? LMK * Automatic changelog update * ECS pilots (space-wizards#8321) * Fix UseDelay crash (space-wizards#8324) * ECS standingstate (space-wizards#8322) * Broadly eliminate underplating tiles in various maps (space-wizards#8268) * Automatic changelog update * Bullet flyby sounds (space-wizards#8317) * Automatic changelog update * fixed pressure pump multiplying transferred moles by 8 (PEMDAS) (space-wizards#8326) * Automatic changelog update * Lobby music bundle number 3? (space-wizards#8328) * Add files via upload * Update licenses.txt * Add files via upload * Update lobby.yml * Delete every light is blinking at once.ogg * Add files via upload * Update lobby.yml * Automatic changelog update * Before equipping, check if item can be dropped, but don't do it (space-wizards#8333) This fixes the issue space-wizards#8179. * Automatic changelog update * Remove sec access from syndie segway (space-wizards#8304) * Fix being able to access wires without opening the panel (space-wizards#8335) Co-authored-by: ike709 <[email protected]> * Automatic changelog update * Fix drop/equip code (space-wizards#8336) * Redial Button II - Now with magic! (space-wizards#8237) * Redial Button II - Now with magic! * 15-second timer before redial is allowed * Automatic changelog update * Add connect sound for gastank internals (space-wizards#8318) * Gun tweaks (space-wizards#8320) * Automatic changelog update * Adds a new lobby song: Spac Stac (space-wizards#8309) Co-authored-by: metalgearsloth <[email protected]> * Automatic changelog update * Don't pathfind on deleted grid (space-wizards#8300) * Allow game presets to have min/max players (space-wizards#8327) Co-authored-by: Vera Aguilera Puerto <[email protected]> * Automatic changelog update * More robust bullet impact sounds (space-wizards#8325) * Automatic changelog update * Merge sugar and glucose, touch up how some drinks metabolize. (space-wizards#7398) * Automatic changelog update * Update submodule * Change doafter damage threshold default (space-wizards#8350) * Automatic changelog update * Nuclear Operative Medic (space-wizards#8274) * Update belts.yml * Add files via upload * Update hypospray.yml * Update hypospray.yml * Update belt.yml * Update belts.yml * Add files via upload * Update misc_startinggear.yml * Update belts.yml * Update misc_startinggear.yml * Update misc_startinggear.yml * Update belt.yml * Update duffelbag.yml * Update duffelbag.yml * Update misc_startinggear.yml * Update belts.yml * Update chemistry-bottles.yml * Update chemistry-bottles.yml * Update belt.yml * Update belt.yml * Unrestrict device net ids (space-wizards#8332) * map update (space-wizards#8355) * Automatic changelog update * Saltern Update 3.4 (space-wizards#8346) * Moose Update 2.2 (space-wizards#8345) * Marathon Update 1.6 (space-wizards#8344) * Bagel 13.4 (space-wizards#8342) * Set the Medical Scanner to Climbable (space-wizards#8270) * Allow the Medical Scanner to be climbed to avoid stuck patients * Set medical scanner and cloning machine collision layers to allow mobs to pass through * Revert "Set medical scanner and cloning machine collision layers to allow mobs to pass through" This reverts commit e15e294. * Automatic changelog update * Make sandbox the local gamemode (space-wizards#8360) * Adds a reoccurrence delay to station events (space-wizards#8359) * Adds a reoccurence delay to station events * typo * total minutes * Update Content.Server/StationEvents/Events/StationEvent.cs * Update Content.Server/StationEvents/Events/StationEvent.cs * reset Co-authored-by: ike709 <[email protected]> * Automatic changelog update * Command Locked and Captain Locked High Sec Doors (space-wizards#8340) * Update access.yml * Update access.yml * Fix airlocks on some maps (space-wizards#8363) * Fix airlocks on some maps * Make MapsLoadableTest say the map that failed * Pirate Shuttle Update 1 (space-wizards#8347) * Add files via upload * Add files via upload * Maid outfit for janidrobe (space-wizards#8071) Co-authored-by: metalgearsloth <[email protected]> * Fix stack overflow on rigged power cell explosion. (space-wizards#8382) Remove the set to cell charge from explosion code. I assume the cell won't see much use since it's about to be deleted anyways. * Microwave was stuck in busy state on some BeingMicrowavedEvents (space-wizards#8381) * Make all animals and pets disease carriers (space-wizards#8376) * Automatic changelog update * Adds a cvar for server rules (space-wizards#8365) Co-authored-by: Veritius <[email protected]> Co-authored-by: ike709 <[email protected]> * Automatic changelog update * Fix negative block game speed values (space-wizards#8389) * Fix flashlight item status not updating on insert/eject of cell. (space-wizards#8388) * Wires patches (space-wizards#8385) * Port vomit from Nyano (space-wizards#8349) * Automatic changelog update * Fixes some high speed item issues (space-wizards#8361) * Automatic changelog update * Fix issue where empty power cells would still explode in the microwave (space-wizards#8393) * Automatic changelog update * Barratry Hotfix (space-wizards#8391) * unbork * fIXES * Markings tweaks (space-wizards#8394) * fixes issue with indexing into colors on multi-sprite markings * should rebuild the dummy upon character profile switch in client * markings, when selected, should now default to the current character's skin color * whoops, missed one * adds a type serializer into marking points * that has to be a list serializer, oops * Update submodule * Muting lobby music now mutes round-end music (space-wizards#8418) Co-authored-by: ike709 <[email protected]> * Automatic changelog update * Adds brig access to hop (space-wizards#8379) * Adds brig access to hop * removed security access in favor of brig * Automatic changelog update * Add completions for ForceMap and ForcePreset * Make adminwho require admin perms (space-wizards#8421) * Add VVAccess to SignalTransmitterComponent (space-wizards#8400) * Make asteroid rocks smooth with walls (space-wizards#8358) * Prevent dead mobs from healing in beds (space-wizards#8419) Co-authored-by: metalgearsloth <[email protected]> * Automatic changelog update * Fix cursor popups (space-wizards#8401) * Fix cursor popups * RemoveSwap * adds shot glasses to vendor (space-wizards#8411) * Inflatable wall fix (space-wizards#8409) * adds a check for canreach in SpawnAfterInteract * adds a check for the new field * Automatic changelog update * mouse crate (space-wizards#8377) * Automatic changelog update * Clarify that the repo contains non-commercial assets (space-wizards#8438) * Clarify that the repo contains non-commercial assets * Update README.md * Mime cleanup (space-wizards#8433) * Bagel Update 13.5 (space-wizards#8410) * Pillar update 090522 (space-wizards#8386) * Automatic changelog update * Give nukies a medic (space-wizards#8353) Co-authored-by: metalgearsloth <[email protected]> * Automatic changelog update * Update bucket.yml (space-wizards#8443) * Automatic changelog update * Mousetraps (space-wizards#8440) Co-authored-by: Kara <[email protected]> * Automatic changelog update * Turn off gravity on remove (space-wizards#8446) * Kill unarmed combat comp (space-wizards#8420) * New parallax, again (space-wizards#8395) * weh Multiplies the amount of power used by the battery guns, triple-ish for the laser cannon and a fuckton more for the xray * Parallax again * Automatic changelog update * Verb icon tiling (space-wizards#8457) * webedit fix moment. Fixes right click menu separation. * Update submodule * Emergency lights fixes (space-wizards#8454) * Automatic changelog update * Corrects the fact the dim layers were fixed in place due to an indentation error. (space-wizards#8461) * fix cargo fuel tank order (space-wizards#8460) * Automatic changelog update * Fix action icons (space-wizards#8436) * Automatic changelog update * Fix emitter crash on non-exact power float (space-wizards#8459) * Update submodule * Completions for the warp command (space-wizards#8470) * Give station events command completions, cleanup (space-wizards#8464) * Singulo eats unpowered containment gens (space-wizards#8343) * Add static "IsPowered" method (space-wizards#8434) * Add static "IsPowered" method * Use IsPowered in more places Co-authored-by: wrexbe <[email protected]> * Automatic changelog update * Allows people to resist out of crates (space-wizards#8471) * Automatic changelog update * OnTriggerCollide Bug fix (space-wizards#8467) * ez gg dubskis * meteor * Update meteors.yml * Automatic changelog update * Fixes the singularity bouncing off the station. (space-wizards#8452) * Fixes the singularity bouncing off the station. * Update Content.Shared/Singularity/SharedSingularitySystem.cs Co-authored-by: wrexbe <[email protected]> Co-authored-by: wrexbe <[email protected]> * Automatic changelog update * Fix inaccessible ready button in lobby (space-wizards#8465) * Fix inaccesible ready button in lobby * a * vote popups * splitz * Automatic changelog update * Mini Gravity Generator (space-wizards#8449) * meenee * Update Resources/Prototypes/Entities/Structures/Machines/gravity_generator.yml Co-authored-by: metalgearsloth <[email protected]> Co-authored-by: metalgearsloth <[email protected]> * Automatic changelog update * Nukes the arrivals shuttle thrusters on Delta. (space-wizards#8473) * Automatic changelog update * Engine UI FrameUpdate compat, Speech bubble first frame fix (space-wizards#8472) * Compat fix for engine UI FrameUpdate order change. Engine is getting FrameUpdate changed to run BEFORE style & layout. This is needed to avoid exploding. * Fix speech bubble layout on first frame. * Extended access system (space-wizards#8469) * Extended access system Allows jobs to specify "extended" access levels, which will be granted if the round-start crew count is below a certain threshold. * Extended accesses for jobs * Spook * Automatic changelog update * Atmos sign (space-wizards#8462) * Add files via upload * Update meta.json * Update meta.json * Update signs.yml * Update meta.json * Adds twenty-one new smites, moves the explosion smite to the verb category. (space-wizards#8456) * Adds seven new smites, moves the explosion smite to the verb category. * adds even more smites. * Even more smites, some messages for specific smites. * Adds even more smites. * Removes some junk, adds a smite that angers the pointing arrows. * get rid of dumb component. * Remove mistake from verb menu presentation. * How did that happen? * whoops * c * e * fuck * Loading... * removes the BoM go away * adds the funny kill sign. Fixes ghost smite. * Move systems around. * Adjust organ vomit. * Adds a smite that turns people into an instrument, and one that removes their gravity. * oops * typo Co-authored-by: Veritius <[email protected]> * Automatic changelog update * pillar minor update (space-wizards#8466) * Automatic changelog update * Spationaut Resprite (space-wizards#8458) * resprite * inhand fix * small engi fix * losing my mind aaaa fuck me * what the hell is wrong with me * Update Resources/Textures/Clothing/Head/Hardsuits/spatiohelm.rsi/meta.json Co-authored-by: wrexbe <[email protected]> * Update Resources/Textures/Clothing/OuterClothing/Hardsuits/spatio.rsi/meta.json Co-authored-by: wrexbe <[email protected]> Co-authored-by: wrexbe <[email protected]> * Automatic changelog update * Fix rules popup (space-wizards#8485) * CVar to show rules popup for localhost. For testing purposes. * Fix rules popup being broken and throwing. 😐 * Hotfix weightless riding (space-wizards#8477) * Hotfix weightless riding * a * Finally fixes file templates (space-wizards#8476) * Add entitysystem and component templates. * Adds doc comments to templates and also a prototype template. * Add an inheriting prototype template. * add inheritdocs where appropriate. * rebalance pressure, airloss, cold (space-wizards#8482) * Automatic changelog update * Play sound and request window on cloning (space-wizards#8323) ECS TBD. Fish did a pr but it was doing a lot at once. * Allow ghosts to ignore obstructions (space-wizards#8397) * Automatic changelog update * Mousetrap fixes/tweaks (space-wizards#8484) * fixes issues with mousetraps, adds activation popup * sure * me when i scroll up a bit in discord * Fix StepTrigger error (space-wizards#8480) * Fix StepTrigger error * Changed it * Update Content.Shared/StepTrigger/StepTriggerSystem.cs Co-authored-by: metalgearsloth <[email protected]> * Update Content.Shared/StepTrigger/StepTriggerSystem.cs Co-authored-by: metalgearsloth <[email protected]> * Update StepTriggerSystem.cs * Update StepTriggerSystem.cs Co-authored-by: metalgearsloth <[email protected]> * Attempt to reduce audio helper resolves (space-wizards#8493) * Bump engine to 0.19.0.0 (space-wizards#8417) * Remove IgnoreComponents on the client (space-wizards#8308) * Fix GasThermoMachine upgrading (space-wizards#8313) * Automatic changelog update * fix hardhat shading (space-wizards#8508) * step trigger fix + optimization (space-wizards#8503) * Underplating Must Die (The Movie) (The Video Game) (space-wizards#8498) * Add a BRB Sign (space-wizards#8437) * Automatic changelog update * Set alert level command (space-wizards#8507) * Add force mode for setting alert level * Add console command for changing alert level * Filename typo * Return delta disableSelection property * Make locked a component property * Not lock green level after nuke disarm * Add completions to the damage command (space-wizards#8510) * Fix map rendering (space-wizards#8514) * Fix negative grids * Map renderer: skip, and warn on empty grids. * Fix local transform * Improve the templates, add networked entity system templates. (space-wizards#8518) * Update submodule * Simple Magic Spellbook System (space-wizards#7823) Co-authored-by: metalgearsloth <[email protected]> * Automatic changelog update * Make AdminLogsSystem an IoC manager (space-wizards#8492) * Make log not entity system * Fixes * Remove extra ; * Gamma & Epsilon alerts levels (space-wizards#8517) * Add Gamma & Epsilon alert levels * Add license for epsilon sound * Remove mention about gamma armory * Add missing license sources * Delete unused sound * Automatic changelog update * Waystation: The Station That Will Succeed Packed's Legacy (space-wizards#8398) * Waystation: The Station That Will Succeed Packed's Legacy * Hopefully fixes YAML errors * Fixes missing HV wires * Security door * Addresses review * Add station component to waystation * Fix minor stuff * BecomeStation Casing Weh Co-authored-by: wrexbe <[email protected]> * Automatic changelog update * Decouples starting gear from UtilityAI (space-wizards#8512) * Interrupt uncuff on target movement (space-wizards#8511) * Fix mapping actions for engine PR (space-wizards#8296) * Adds TimedDespawn component to Invisible Walls, nukes DeleteAfterTime (space-wizards#8528) * Adds TimedDelete component to Invisible Walls * Removes Delete After Time * Dirty Command (space-wizards#8533) Dirty Command Co-authored-by: metalgearsloth <[email protected]> * Dirty command fix (space-wizards#8534) * Fix server update restarts when server paused. (space-wizards#8509) * Examinable Anchors (space-wizards#8407) * Automatic changelog update * Update Changelog.yml * More github action tests (space-wizards#7301) * Update submodule * Surveillance cameras (space-wizards#8246) * cameras but i didn't feel like git stashing them * Adds more functionality server-side for surveillance cameras * rider moment * Adds skeleton for SurveillanceCameraMonitorBoundUi on client * whoops * makes surveillance camera monitor UI more defined * removes tree from SurveillanceCameraMonitorWindow * surveillance camera active flag, other routing things * actually sets how SurveillanceCameraMonitorSystem sends camera info to clients * adds entity yaml, changes field * adds the camera/monitor entities, makes the UI open * SurveillanceCameraRouters (not implemented fully) * subnets for cameras, server-side * it works! * fixes rotation in cameras * whoops restores surveillance cameras to ignored components makes it so that switching cameras now lerps the other camera * makes the UI work * makes it so that cameras actually refresh now * cleanup * adds camera.rsi * cleans up prototypes a bit * adds camera subnet frequencies, cameras in subnets * adds surveillance camera router subnets * might fix testing errors * adds the circuit board to the surveillance camera monitor * fixes up the camera monitor (the detective will get his tv soon) * adds heartbeat, ensures subnet data is passed into cameras to send * fixes up a few things * whoops * changes to UI internals * fixes subnet selection issue * localized strings for UI * changes 'test' id to 'camera' for cameras * whoops * missing s * camera static! * adds a delay to camera switching * adjusts a few things in camera timing * adds setup for cameras/routers, localization for frequency names * adds setup ui for routers, makes subnet names in monitor window follow frequency name in prototype * localization, some cleanup * ui adjustments * adds surveillance camera visuals * fixes a bug when closing the UI for monitors * adds disconnect message to UI * adds construction graph to cameras * adds the camera to the construction menu * fixes network selection for setup, tweak to assembly * adds surveillance camera router construction, fixes up surveillance camera wire cutting * adds disconnect button to monitor UI * switches around the status text * tweaks monitor UI * makes the address actually show * might make tests pass * UI adjustments, hard name limit * ok, that didn't work * adds wireless cameras * makes the television work/look nicer * adds tripod cameras in addition to mobile cameras * makes wireless cameras constructable * fixes up those prototypes * reorganization in C#, small cleanup * ensures that power changes deactivate some devices * adds a component to the television, comments out a function * actually, never mind, i forgot that wireless cameras existed/are creatable for a second * tweaks to router construction, removes SubnetTest from prototypes * removes it from frequencies too * Apply suggestions from code review Co-authored-by: metalgearsloth <[email protected]> * type serializers into components * setup window opens centered, enum is now byte * replaces active monitor list with ActiveSurveillanceCameraMonitorComponent * adds paused/deleted entity checks, changes how verbs are given * removes EntitySystem.Get<T>() references * fixes bug related to selecting network from setup, alphabet-orders network listing in setup * rider moment * adds minwidth to surveillance camera setup window * addresses reviews * should fix the issue with camera visuals not updating properly * addresses some reviews * addresses further review * addresses reviews related to RSIs * never needed a key there anyways * changes a few things with routers to ensure that they're active * whoops * ensurecomp over addcomp * whoops Co-authored-by: metalgearsloth <[email protected]> * Automatic changelog update * Makes camera monitors/the television constructable (space-wizards#8542) * Update emergency light animation. (space-wizards#8531) * Adds health analyzer to 3 first aid kits (space-wizards#8535) * adds healthanalyzer to 3 first aid kits normal, advanced and combat kits only * increase first aid kit sizes * Automatic changelog update * Fix bug where being eaten as a mouse tethers your ghost to who ate you (space-wizards#8338) * Check if the ghost spawn position is in inventory/default/null-space * attach to grid instead of default spawn point * Simply attach to grid first before entity is deleted * Alert level reloads (space-wizards#8530) * adds prototype reload for AlertLevelSystem, reorganizes selectable alerts a bit * makes alert levels not necessarily require localization * oops * sus * does the same for announcements as well * oh, that's not how that works at all * ok, NOW it works * fixes localization, adds event for when alerts are reloaded * addresses review * Automatic changelog update * Modular landmines (space-wizards#8351) * Automatic changelog update * Gun refactor (space-wizards#8301) Co-authored-by: Kara <[email protected]> Co-authored-by: T-Stalker <[email protected]> Co-authored-by: T-Stalker <[email protected]> Co-authored-by: ElectroJr <[email protected]> Co-authored-by: metalgearsloth <[email protected]> * Update submodule * Update submodule * Saltern Update 3.5 (space-wizards#8567) * Bagel Update 13.6 (space-wizards#8563) * Marathon Update 1.7 (space-wizards#8566) * Cleanup gun containers (probably last time) (space-wizards#8575) - snake_case instead of kebab-case - Remove old MagazineBarrel containers - Remove old event * AccessReader IsAllowed use resolve (space-wizards#8527) * Re-implement hitscan sounds (space-wizards#8581) I forgor. Also added RW to ballistic prototype for funsies. * Goon floor pack 1 (space-wizards#8267) * floors boxing, arcadeblue2 and carpet clown * adds gym, metaldiamond and carpetoffice from goon * adds variants for boxing and gym * tile variants updated * Fix access system (space-wizards#8585) * Add an access system proxy(space-wizards#8586) * Gun whitelist fixies (space-wizards#8587) * Gun sound fixes (space-wizards#8592) * Automatic changelog update * Update submodule * Add files via upload (space-wizards#8591) * Adds the ability to not play admin sounds (space-wizards#8242) Co-authored-by: ike709 <[email protected]> Co-authored-by: Vera Aguilera Puerto <[email protected]> * Automatic changelog update * remove bagel for now Co-authored-by: magmodius <[email protected]> Co-authored-by: metalgearsloth <[email protected]> Co-authored-by: PJBot <[email protected]> Co-authored-by: moonheart08 <[email protected]> Co-authored-by: T-Stalker <[email protected]> Co-authored-by: Abregado <[email protected]> Co-authored-by: Vera Aguilera Puerto <[email protected]> Co-authored-by: Emisse <[email protected]> Co-authored-by: Leon Friedrich <[email protected]> Co-authored-by: ike709 <[email protected]> Co-authored-by: ike709 <[email protected]> Co-authored-by: metalgearsloth <[email protected]> Co-authored-by: Morbo <[email protected]> Co-authored-by: 20kdc <[email protected]> Co-authored-by: Peptide90 <[email protected]> Co-authored-by: Ripmorld <[email protected]> Co-authored-by: wrexbe <[email protected]> Co-authored-by: Kara <[email protected]> Co-authored-by: TheIntoxicatedCat <[email protected]> Co-authored-by: Todd <[email protected]> Co-authored-by: rok-povsic <[email protected]> Co-authored-by: Veritius <[email protected]> Co-authored-by: Putnam3145 <[email protected]> Co-authored-by: EmoGarbage404 <[email protected]> Co-authored-by: themias <[email protected]> Co-authored-by: Pieter-Jan Briers <[email protected]> Co-authored-by: Flipp Syder <[email protected]> Co-authored-by: keronshb <[email protected]> Co-authored-by: metalgearsloth <[email protected]> Co-authored-by: wrexbe <[email protected]> Co-authored-by: TimrodDX <[email protected]> Co-authored-by: efzapa <[email protected]> Co-authored-by: ShuttleEnjoyer <[email protected]> Co-authored-by: DrSmugleaf <[email protected]> Co-authored-by: T-Stalker <[email protected]> Co-authored-by: ElectroJr <[email protected]>
1 parent a922dab commit f583067

1,118 files changed

Lines changed: 199664 additions & 472399 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
using Content.Shared.Audio;
2+
using Content.Shared.CCVar;
3+
using Robust.Shared.Audio;
4+
using Robust.Shared.Configuration;
5+
using Robust.Shared.Player;
6+
7+
namespace Content.Client.Audio;
8+
9+
public sealed class ClientAdminSoundSystem : SharedAdminSoundSystem
10+
{
11+
[Dependency] private readonly IConfigurationManager _cfg = default!;
12+
13+
private bool _adminAudioEnabled = true;
14+
private List<IPlayingAudioStream?> _adminAudio = new(1);
15+
16+
public override void Initialize()
17+
{
18+
base.Initialize();
19+
SubscribeNetworkEvent<AdminSoundEvent>(PlayAdminSound);
20+
_cfg.OnValueChanged(CCVars.AdminSoundsEnabled, ToggleAdminSound, true);
21+
}
22+
23+
public override void Shutdown()
24+
{
25+
base.Shutdown();
26+
foreach (var stream in _adminAudio)
27+
{
28+
stream?.Stop();
29+
}
30+
_adminAudio.Clear();
31+
}
32+
33+
private void PlayAdminSound(AdminSoundEvent soundEvent)
34+
{
35+
if(!_adminAudioEnabled) return;
36+
37+
var stream = SoundSystem.Play(Filter.Local(), soundEvent.Filename, soundEvent.AudioParams);
38+
_adminAudio.Add(stream);
39+
}
40+
41+
private void ToggleAdminSound(bool enabled)
42+
{
43+
_adminAudioEnabled = enabled;
44+
if (_adminAudioEnabled) return;
45+
foreach (var stream in _adminAudio)
46+
{
47+
stream?.Stop();
48+
}
49+
_adminAudio.Clear();
50+
}
51+
}

Content.Client/Communications/UI/CommunicationsConsoleMenu.cs

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,20 +95,29 @@ public void UpdateAlertLevels(List<string>? alerts, string currentAlert)
9595

9696
if (alerts == null)
9797
{
98-
AlertLevelButton.AddItem(Loc.GetString($"alert-level-{currentAlert}"));
98+
var name = currentAlert;
99+
if (Loc.TryGetString($"alert-level-{currentAlert}", out var locName))
100+
{
101+
name = locName;
102+
}
103+
AlertLevelButton.AddItem(name);
99104
AlertLevelButton.SetItemMetadata(AlertLevelButton.ItemCount - 1, currentAlert);
100105
}
101106
else
102107
{
103108
foreach (var alert in alerts)
104109
{
105-
AlertLevelButton.AddItem(Loc.GetString($"alert-level-{alert}"));
106-
AlertLevelButton.SetItemMetadata(AlertLevelButton.ItemCount - 1, alert);
107-
108-
if (alert == currentAlert)
109-
{
110-
AlertLevelButton.Select(AlertLevelButton.ItemCount - 1);
111-
}
110+
var name = alert;
111+
if (Loc.TryGetString($"alert-level-{alert}", out var locName))
112+
{
113+
name = locName;
114+
}
115+
AlertLevelButton.AddItem(name);
116+
AlertLevelButton.SetItemMetadata(AlertLevelButton.ItemCount - 1, alert);
117+
if (alert == currentAlert)
118+
{
119+
AlertLevelButton.Select(AlertLevelButton.ItemCount - 1);
120+
}
112121
}
113122
}
114123
}

Content.Client/Content.Client.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
<ProjectReference Include="..\RobustToolbox\Robust.Client\Robust.Client.csproj" />
2424
<ProjectReference Include="..\Content.Shared\Content.Shared.csproj" />
2525
</ItemGroup>
26-
2726
<Import Project="..\RobustToolbox\MSBuild\XamlIL.targets" />
2827
<Import Project="..\RobustToolbox\MSBuild\Robust.Analyzers.targets" />
2928
</Project>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using Robust.Client.Animations;
2+
using Robust.Client.GameObjects;
3+
4+
namespace Content.Client.Effects;
5+
6+
public sealed class EffectVisualizerSystem : EntitySystem
7+
{
8+
public override void Initialize()
9+
{
10+
SubscribeLocalEvent<EffectVisualsComponent, AnimationCompletedEvent>(OnEffectAnimComplete);
11+
}
12+
13+
private void OnEffectAnimComplete(EntityUid uid, EffectVisualsComponent component, AnimationCompletedEvent args)
14+
{
15+
QueueDel(uid);
16+
}
17+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace Content.Client.Effects;
2+
3+
[RegisterComponent]
4+
public sealed class EffectVisualsComponent : Component
5+
{
6+
public float Length;
7+
public float Accumulator = 0f;
8+
}

Content.Client/EscapeMenu/UI/Tabs/AudioTab.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
</BoxContainer>
6464
<Control MinSize="0 8" />
6565
<CheckBox Name="LobbyMusicCheckBox" Text="{Loc 'ui-options-lobby-music'}" />
66+
<CheckBox Name="AdminSoundsCheckBox" Text="{Loc 'ui-options-admin-sounds'}" />
6667
<CheckBox Name="StationAmbienceCheckBox" Text="{Loc 'ui-options-station-ambience'}" />
6768
<CheckBox Name="SpaceAmbienceCheckBox" Text="{Loc 'ui-options-space-ambience'}" />
6869
</BoxContainer>

Content.Client/EscapeMenu/UI/Tabs/AudioTab.xaml.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public AudioTab()
2222
IoCManager.InjectDependencies(this);
2323

2424
LobbyMusicCheckBox.Pressed = _cfg.GetCVar(CCVars.LobbyMusicEnabled);
25+
AdminSoundsCheckBox.Pressed = _cfg.GetCVar(CCVars.AdminSoundsEnabled);
2526
StationAmbienceCheckBox.Pressed = _cfg.GetCVar(CCVars.StationAmbienceEnabled);
2627
SpaceAmbienceCheckBox.Pressed = _cfg.GetCVar(CCVars.SpaceAmbienceEnabled);
2728

@@ -32,6 +33,7 @@ public AudioTab()
3233
AmbienceVolumeSlider.OnValueChanged += OnAmbienceVolumeSliderChanged;
3334
AmbienceSoundsSlider.OnValueChanged += OnAmbienceSoundsSliderChanged;
3435
LobbyMusicCheckBox.OnToggled += OnLobbyMusicCheckToggled;
36+
AdminSoundsCheckBox.OnToggled += OnAdminSoundsCheckToggled;
3537
StationAmbienceCheckBox.OnToggled += OnStationAmbienceCheckToggled;
3638
SpaceAmbienceCheckBox.OnToggled += OnSpaceAmbienceCheckToggled;
3739

@@ -77,6 +79,11 @@ private void OnLobbyMusicCheckToggled(BaseButton.ButtonEventArgs args)
7779
UpdateChanges();
7880
}
7981

82+
private void OnAdminSoundsCheckToggled(BaseButton.ButtonEventArgs args)
83+
{
84+
UpdateChanges();
85+
}
86+
8087
private void OnStationAmbienceCheckToggled(BaseButton.ButtonEventArgs args)
8188
{
8289
UpdateChanges();
@@ -94,6 +101,7 @@ private void OnApplyButtonPressed(BaseButton.ButtonEventArgs args)
94101
_cfg.SetCVar(CCVars.AmbienceVolume, LV100ToDB(AmbienceVolumeSlider.Value));
95102
_cfg.SetCVar(CCVars.MaxAmbientSources, (int)AmbienceSoundsSlider.Value);
96103
_cfg.SetCVar(CCVars.LobbyMusicEnabled, LobbyMusicCheckBox.Pressed);
104+
_cfg.SetCVar(CCVars.AdminSoundsEnabled, AdminSoundsCheckBox.Pressed);
97105
_cfg.SetCVar(CCVars.StationAmbienceEnabled, StationAmbienceCheckBox.Pressed);
98106
_cfg.SetCVar(CCVars.SpaceAmbienceEnabled, SpaceAmbienceCheckBox.Pressed);
99107
_cfg.SaveToFile();
@@ -112,6 +120,7 @@ private void Reset()
112120
AmbienceVolumeSlider.Value = DBToLV100(_cfg.GetCVar(CCVars.AmbienceVolume));
113121
AmbienceSoundsSlider.Value = _cfg.GetCVar(CCVars.MaxAmbientSources);
114122
LobbyMusicCheckBox.Pressed = _cfg.GetCVar(CCVars.LobbyMusicEnabled);
123+
AdminSoundsCheckBox.Pressed = _cfg.GetCVar(CCVars.AdminSoundsEnabled);
115124
StationAmbienceCheckBox.Pressed = _cfg.GetCVar(CCVars.StationAmbienceEnabled);
116125
SpaceAmbienceCheckBox.Pressed = _cfg.GetCVar(CCVars.SpaceAmbienceEnabled);
117126
UpdateChanges();
@@ -140,9 +149,10 @@ private void UpdateChanges()
140149
Math.Abs(AmbienceVolumeSlider.Value - DBToLV100(_cfg.GetCVar(CCVars.AmbienceVolume))) < 0.01f;
141150
var isAmbientSoundsSame = (int)AmbienceSoundsSlider.Value == _cfg.GetCVar(CCVars.MaxAmbientSources);
142151
var isLobbySame = LobbyMusicCheckBox.Pressed == _cfg.GetCVar(CCVars.LobbyMusicEnabled);
152+
var isAdminSoundsSame = AdminSoundsCheckBox.Pressed == _cfg.GetCVar(CCVars.AdminSoundsEnabled);
143153
var isStationAmbienceSame = StationAmbienceCheckBox.Pressed == _cfg.GetCVar(CCVars.StationAmbienceEnabled);
144154
var isSpaceAmbienceSame = SpaceAmbienceCheckBox.Pressed == _cfg.GetCVar(CCVars.SpaceAmbienceEnabled);
145-
var isEverythingSame = isMasterVolumeSame && isMidiVolumeSame && isAmbientVolumeSame && isAmbientSoundsSame && isLobbySame && isStationAmbienceSame && isSpaceAmbienceSame;
155+
var isEverythingSame = isMasterVolumeSame && isMidiVolumeSame && isAmbientVolumeSame && isAmbientSoundsSame && isLobbySame && isAdminSoundsSame && isStationAmbienceSame && isSpaceAmbienceSame;
146156
ApplyButton.Disabled = isEverythingSame;
147157
ResetButton.Disabled = isEverythingSame;
148158
MasterVolumeLabel.Text =

Content.Client/EscapeMenu/UI/Tabs/KeyRebindTab.xaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ void AddCheckBox(string checkBoxName, bool currentState, Action<BaseButton.Butto
114114
AddButton(ContentKeyFunctions.Drop);
115115
AddButton(ContentKeyFunctions.ExamineEntity);
116116
AddButton(ContentKeyFunctions.SwapHands);
117-
AddButton(ContentKeyFunctions.Fart);
118117

119118
AddHeader("ui-options-header-interaction-adv");
120119
AddButton(ContentKeyFunctions.SmartEquipBackpack);

Content.Client/Items/ItemStatusMessages.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using Robust.Client.UserInterface;
4-
using Robust.Shared.GameObjects;
1+
using Robust.Client.UserInterface;
52

63
namespace Content.Client.Items
74
{

Content.Client/Light/EmergencyLightSystem.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ namespace Content.Client.Light
1313
{
1414
public sealed class EmergencyLightSystem : SharedEmergencyLightSystem
1515
{
16+
private const float DegreesPerSecond = 270;
1617
private static Animation Animation =>
1718
new()
1819
{
19-
Length = TimeSpan.FromSeconds(4),
20+
Length = TimeSpan.FromSeconds(360f/ DegreesPerSecond),
2021
AnimationTracks =
2122
{
2223
new AnimationTrackComponentProperty
@@ -27,7 +28,9 @@ public sealed class EmergencyLightSystem : SharedEmergencyLightSystem
2728
KeyFrames =
2829
{
2930
new AnimationTrackProperty.KeyFrame(Angle.Zero, 0),
30-
new AnimationTrackProperty.KeyFrame(Angle.FromDegrees(1080), 4)
31+
new AnimationTrackProperty.KeyFrame(Angle.FromDegrees(120), 120f/DegreesPerSecond),
32+
new AnimationTrackProperty.KeyFrame(Angle.FromDegrees(240), 120f/DegreesPerSecond),
33+
new AnimationTrackProperty.KeyFrame(Angle.FromDegrees(360), 120f/DegreesPerSecond)
3134
}
3235
}
3336
}

0 commit comments

Comments
 (0)