]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Acidifier Effect Sprite (#22425)
authorbrainfood1183 <113240905+brainfood1183@users.noreply.github.com>
Fri, 15 Dec 2023 01:56:42 +0000 (01:56 +0000)
committerGitHub <noreply@github.com>
Fri, 15 Dec 2023 01:56:42 +0000 (20:56 -0500)
Resources/Prototypes/Entities/Effects/acidifer.yml [new file with mode: 0644]
Resources/Prototypes/Entities/Objects/Misc/subdermal_implants.yml
Resources/Textures/Effects/acidifier.rsi/acid.png [new file with mode: 0644]
Resources/Textures/Effects/acidifier.rsi/meta.json [new file with mode: 0644]

diff --git a/Resources/Prototypes/Entities/Effects/acidifer.yml b/Resources/Prototypes/Entities/Effects/acidifer.yml
new file mode 100644 (file)
index 0000000..bc2fc3c
--- /dev/null
@@ -0,0 +1,26 @@
+- type: entity
+  id: Acidifier
+  name: acid
+  description: Melts you into a puddle of yuck!
+  components:
+  - type: Transform
+    anchored: True
+  - type: InteractionOutline
+  - type: Physics
+    bodyType: Static
+  - type: Sprite
+    sprite: /Textures/Effects/acidifier.rsi
+    state: acid
+  - type: Fixtures
+    fixtures:
+      portalFixture:
+        shape:
+          !type:PhysShapeAabb
+          bounds: "-0.25,-0.48,0.25,0.48"
+        mask:
+        - FullTileMask
+        layer:
+        - WallLayer
+        hard: false
+  - type: TimedDespawn
+    lifetime: 2.4
index 18edca6c718e63d0d52e7587521b525b6cd281d9..1a1b25ed4e648fbcdaf992fb67d8fbc13e07edff 100644 (file)
   - type: TriggerImplantAction
   - type: GibOnTrigger
     deleteItems: true
+  - type: SpawnOnTrigger
+    proto: Acidifier
   - type: Tag
     tags:
     - SubdermalImplant
diff --git a/Resources/Textures/Effects/acidifier.rsi/acid.png b/Resources/Textures/Effects/acidifier.rsi/acid.png
new file mode 100644 (file)
index 0000000..53f74e3
Binary files /dev/null and b/Resources/Textures/Effects/acidifier.rsi/acid.png differ
diff --git a/Resources/Textures/Effects/acidifier.rsi/meta.json b/Resources/Textures/Effects/acidifier.rsi/meta.json
new file mode 100644 (file)
index 0000000..358e923
--- /dev/null
@@ -0,0 +1,30 @@
+{
+    "version": 1,
+    "size": {
+        "x": 32,
+        "y": 32
+    },
+    "license": "CC-BY-SA-3.0",
+    "copyright": "Made by brainfood1183 (github) for ss14",
+    "states": [
+        {
+            "name": "acid",
+            "delays": [
+                [
+                    0.2,
+                    0.2,
+                    0.2,
+                    0.2,
+                    0.2,
+                    0.2,
+                    0.2,
+                    0.2,
+                    0.2,
+                    0.2,
+                    0.2,
+                    0.2
+                ]
+            ]
+        }
+    ]
+}
\ No newline at end of file