]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
now with sound! (#20287)
authorTunguso4ka <71643624+Tunguso4ka@users.noreply.github.com>
Mon, 18 Sep 2023 19:17:59 +0000 (22:17 +0300)
committerGitHub <noreply@github.com>
Mon, 18 Sep 2023 19:17:59 +0000 (13:17 -0600)
Resources/Prototypes/Entities/Structures/Decoration/bonfire.yml
Resources/Textures/Structures/Decoration/bonfire.rsi/bonfire.png [moved from Resources/Textures/Structures/Decoration/bonfire.rsi/bonfire_0.png with 100% similarity]
Resources/Textures/Structures/Decoration/bonfire.rsi/bonfire_extinguished.png [moved from Resources/Textures/Structures/Decoration/bonfire.rsi/bonfire_1.png with 100% similarity]
Resources/Textures/Structures/Decoration/bonfire.rsi/meta.json

index 0fb3614393bf4e9af16266eadb10fe20b5ffe7dc..6934b67c5eb181a97794fb5bff2bd17698fa1808 100644 (file)
@@ -6,7 +6,9 @@
   components:
   - type: Sprite
     sprite: Structures/Decoration/bonfire.rsi
-    state: burning
+    layers:
+      - state: bonfire
+      - state: burning
   - type: PointLight
     radius: 5
     energy: 3
         behaviors:
           - !type:DoActsBehavior
         acts: [ "Destruction" ]
+  - type: AmbientSound
+    volume: -5
+    range: 5
+    sound:
+      path: /Audio/Ambience/Objects/fireplace.ogg
 
 - type: entity
   id: LegionnaireBonfire
@@ -30,6 +37,7 @@
   description: There, in the land of lava and ash, place to to cook marshmallow and potato.
   components:
   - type: Sprite
-    state: legionnaire_bonfire
+    layers:
+      - state: legionnaire_bonfire
   - type: PointLight
     color: "#FF5601"
index bfa6011fdddb7c271b1d858f8d26125974a36f36..a30ea680c5d641e2c89a7359487c7f83ee42710f 100644 (file)
@@ -8,10 +8,10 @@
   },
   "states": [
     {
-      "name": "bonfire_0"
+      "name": "bonfire"
     },
     {
-      "name": "bonfire_1"
+      "name": "bonfire_extinguished"
     },
     {
       "name": "burning",