]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix security camera sprite when viewed at an angle (#24357)
authorMagnus Larsen <i.am.larsenml@gmail.com>
Sun, 21 Jan 2024 11:13:19 +0000 (11:13 +0000)
committerGitHub <noreply@github.com>
Sun, 21 Jan 2024 11:13:19 +0000 (22:13 +1100)
The 8-directions is a vestige of /tg/station, where the extra
directions were used to place cameras on the left or right half of the
wall.

Setting it to 1 directions (sic) allows the game engine to rotate the
sprite for us, which is fine as the art currently has no perspective.

Resources/Textures/Structures/Wallmounts/camera.rsi/meta.json

index a2a3e76d381420dd5fc578a1959656fcfdaa1dc8..b8cedc6db63954aca8c6d4d17edbb7284d79129c 100644 (file)
@@ -1 +1,73 @@
-{"version": 1, "size": {"x": 32, "y": 32}, "license": "CC-BY-SA-3.0", "copyright": "Taken from /tg/station at https://github.com/tgstation/tgstation/commit/6bfe3b2e4fcbcdac9159dc4f0327a82ddf05ba7bi", "states": [{"name": "camera", "directions": 8, "delays": [[0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3]]}, {"name": "camera_assembly", "directions": 8, "delays": [[1.0], [1.0], [1.0], [1.0], [1.0], [1.0], [1.0], [1.0]]}, {"name": "camera_emp", "directions": 8, "delays": [[0.2, 0.2, 0.1, 0.1], [0.2, 0.2, 0.1, 0.1], [0.2, 0.2, 0.1, 0.1], [0.2, 0.2, 0.1, 0.1], [0.2, 0.2, 0.1, 0.1], [0.2, 0.2, 0.1, 0.1], [0.2, 0.2, 0.1, 0.1], [0.2, 0.2, 0.1, 0.1]]}, {"name": "camera_in_use", "directions": 8, "delays": [[0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3]]}, {"name": "camera_off", "directions": 8, "delays": [[1.0], [1.0], [1.0], [1.0], [1.0], [1.0], [1.0], [1.0]]}, {"name": "cameracase", "directions": 1, "delays": [[1.0]]}, {"name": "xraycamera", "directions": 8, "delays": [[0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3]]}, {"name": "xraycamera_assembly", "directions": 8, "delays": [[1.0], [1.0], [1.0], [1.0], [1.0], [1.0], [1.0], [1.0]]}, {"name": "xraycamera_emp", "directions": 8, "delays": [[0.2, 0.2, 0.1, 0.1], [0.2, 0.2, 0.1, 0.1], [0.2, 0.2, 0.1, 0.1], [0.2, 0.2, 0.1, 0.1], [0.2, 0.2, 0.1, 0.1], [0.2, 0.2, 0.1, 0.1], [0.2, 0.2, 0.1, 0.1], [0.2, 0.2, 0.1, 0.1]]}, {"name": "xraycamera_in_use", "directions": 8, "delays": [[0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3], [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3]]}, {"name": "xraycamera_off", "directions": 8, "delays": [[1.0], [1.0], [1.0], [1.0], [1.0], [1.0], [1.0], [1.0]]}]}
\ No newline at end of file
+{
+    "version": 1,
+    "size": {
+        "x": 32,
+        "y": 32
+    },
+    "license": "CC-BY-SA-3.0",
+    "copyright": "Taken from /tg/station at https://github.com/tgstation/tgstation/commit/6bfe3b2e4fcbcdac9159dc4f0327a82ddf05ba7bi",
+    "states": [
+        {
+            "name": "camera",
+            "directions": 1,
+            "delays": [
+                [ 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3 ]
+            ]
+        },
+        {
+            "name": "camera_assembly",
+            "directions": 1
+        },
+        {
+            "name": "camera_emp",
+            "directions": 1,
+            "delays": [
+                [ 0.2, 0.2, 0.1, 0.1 ]
+            ]
+        },
+        {
+            "name": "camera_in_use",
+            "directions": 1,
+            "delays": [
+                [ 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3 ]
+            ]
+        },
+        {
+            "name": "camera_off",
+            "directions": 1
+        },
+        {
+            "name": "cameracase",
+            "directions": 1
+        },
+        {
+            "name": "xraycamera",
+            "directions": 1,
+            "delays": [
+                [ 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3 ]
+            ]
+        },
+        {
+            "name": "xraycamera_assembly",
+            "directions": 1
+        },
+        {
+            "name": "xraycamera_emp",
+            "directions": 1,
+            "delays": [
+                [ 0.2, 0.2, 0.1, 0.1 ]
+            ]
+        },
+        {
+            "name": "xraycamera_in_use",
+            "directions": 1,
+            "delays": [
+                [ 0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3 ]
+            ]
+        },
+        {
+            "name": "xraycamera_off",
+            "directions": 1
+        }
+    ]
+}
\ No newline at end of file