]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix servers ambience sound (#30091)
authorWinkarst <74284083+Winkarst-cpu@users.noreply.github.com>
Sun, 21 Jul 2024 07:22:02 +0000 (10:22 +0300)
committerGitHub <noreply@github.com>
Sun, 21 Jul 2024 07:22:02 +0000 (17:22 +1000)
* Fix servers ambience

* I'm silly

* Clean up

Content.Server/Medical/CrewMonitoring/CrewMonitoringServerSystem.cs
Resources/Prototypes/Entities/Structures/Machines/crew_monitor_server.yml
Resources/Prototypes/Entities/Structures/Machines/research.yml
Resources/Prototypes/Entities/Structures/Machines/surveillance_camera_routers.yml
Resources/Prototypes/Entities/Structures/Machines/telecomms.yml

index 864ce2c55ec825777dbe07f6d9ca1b1063d57add..d7b8cc67a50e00f65bf36fc0147b4e315ff9d060 100644 (file)
@@ -1,4 +1,4 @@
-using Content.Server.DeviceNetwork;
+using Content.Server.DeviceNetwork;
 using Content.Server.DeviceNetwork.Components;
 using Content.Server.DeviceNetwork.Systems;
 using Content.Server.Medical.SuitSensors;
index 8281a6548bd88a159ed77c9f96b9ecdc9c266f38..64ad3a30da05e2b669b793b38ffa275b4d0a21db 100644 (file)
@@ -56,6 +56,7 @@
                 SheetSteel1:
                   min: 1
                   max: 2
+    - type: AmbientOnPowered
     - type: AmbientSound
       volume: -9
       range: 5
index 498759df3c95ed1d90c4c7feb26a384bb1bbba33..81a5988c2c546434044c385127614021745efc63 100644 (file)
@@ -48,6 +48,7 @@
             min: 1
             max: 2
   - type: Appearance
+  - type: AmbientOnPowered
   - type: AmbientSound
     volume: -9
     range: 5
index 904bf46a0b72ade997c296eead3f0070ebd72c7a..24e7e478c9c3c0de0ff61e0dbbf7c3bfc15b418e 100644 (file)
       snapCardinals: true
       layers:
         - state: server
+    - type: AmbientOnPowered
+    - type: AmbientSound
+      volume: -9
+      range: 5
+      sound:
+        path: /Audio/Ambience/Objects/server_fans.ogg
 
 - type: entity
   parent: SurveillanceCameraRouterBase
       subnetFrequency: SurveillanceCameraGeneral
 
 - type: entity
+  abstract: true
   parent: [ BaseMachinePowered, ConstructibleMachine ]
   id: SurveillanceCameraWirelessRouterBase
   name: wireless camera router
       sprite: Structures/Machines/server.rsi
       layers:
         - state: server
+    - type: AmbientOnPowered
+    - type: AmbientSound
+      volume: -9
+      range: 5
+      sound:
+        path: /Audio/Ambience/Objects/server_fans.ogg
 
 - type: entity
   parent: SurveillanceCameraWirelessRouterBase
index 5bdefb8bfc59f3f2eeb24e1092c8ad593479ef36..4a1b5a3560ab0debaf602931eb82a511ca39c96b 100644 (file)
           True: { visible: true }
           False: { visible: false }
   - type: Appearance
+  - type: AmbientOnPowered
+  - type: AmbientSound
+    volume: -9
+    range: 5
+    sound:
+      path: /Audio/Ambience/Objects/server_fans.ogg
   - type: WiresVisuals
   - type: Physics
     bodyType: Static