]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Directional Fans (#27772)
authorSlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com>
Sat, 20 Jul 2024 03:18:34 +0000 (05:18 +0200)
committerGitHub <noreply@github.com>
Sat, 20 Jul 2024 03:18:34 +0000 (13:18 +1000)
* Initial commit

* Description update

* Updated texture

Resources/Prototypes/Entities/Structures/Piping/Atmospherics/special.yml
Resources/Textures/Structures/Piping/Atmospherics/directionalfan.rsi/icon.png [new file with mode: 0644]
Resources/Textures/Structures/Piping/Atmospherics/directionalfan.rsi/meta.json [new file with mode: 0644]

index 4eec014f11b3f68ec8ab4f6cdbe835946fc7d2a0..eff831fa9ea1645265169c1b94c3dc82443487cf 100644 (file)
   - type: Tag
     tags:
       - SpreaderIgnore
+
+- type: entity
+  id: AtmosDeviceFanDirectional
+  name: directional fan
+  description: A thin fan, stopping the movement of gases across it.
+  placement:
+    mode: SnapgridCenter
+  components:
+  - type: Transform
+    anchored: true
+  - type: Physics
+    bodyType: Static
+  - type: Sprite
+    sprite: Structures/Piping/Atmospherics/directionalfan.rsi
+    state: icon
+  - type: Fixtures
+    fixtures:
+      fix1:
+        shape:
+          !type:PhysShapeAabb
+            bounds: "-0.48,-0.48,0.48,-0.40"
+  - type: Airtight
+    noAirWhenFullyAirBlocked: false
+    airBlockedDirection:
+      - South
+  - type: Clickable
+  - type: Tag
+    tags:
+      - SpreaderIgnore
diff --git a/Resources/Textures/Structures/Piping/Atmospherics/directionalfan.rsi/icon.png b/Resources/Textures/Structures/Piping/Atmospherics/directionalfan.rsi/icon.png
new file mode 100644 (file)
index 0000000..577175e
Binary files /dev/null and b/Resources/Textures/Structures/Piping/Atmospherics/directionalfan.rsi/icon.png differ
diff --git a/Resources/Textures/Structures/Piping/Atmospherics/directionalfan.rsi/meta.json b/Resources/Textures/Structures/Piping/Atmospherics/directionalfan.rsi/meta.json
new file mode 100644 (file)
index 0000000..217a9f3
--- /dev/null
@@ -0,0 +1,29 @@
+{
+    "version": 1,
+    "license": "CC-BY-NC-SA-3.0",
+    "copyright": "Made by SlamBamActionman",
+    "size": {
+        "x": 32,
+        "y": 32
+    },
+    "states": [
+        {
+            "name": "icon",
+            "directions": 4,
+            "delays":[
+                [
+                    0.01,0.01,0.01,0.01
+                ],
+                [
+                    0.01,0.01,0.01,0.01
+                ],
+                [
+                    0.01,0.01,0.01,0.01
+                ],
+                [
+                    0.01,0.01,0.01,0.01
+                ]
+            ]
+        }
+    ]
+}