]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fixed AI Actions (#31823)
authorScarKy0 <106310278+ScarKy0@users.noreply.github.com>
Thu, 5 Sep 2024 12:49:20 +0000 (14:49 +0200)
committerGitHub <noreply@github.com>
Thu, 5 Sep 2024 12:49:20 +0000 (22:49 +1000)
* Updated sprites for AI HUD

* Epic test fail

* Merged AGhost actions and AI actions together again.

* Seperate comms and bugfix. Fixed broadcast.

24 files changed:
Resources/Maps/Shuttles/emergency.yml
Resources/Maps/Shuttles/emergency_box.yml
Resources/Maps/Shuttles/emergency_cluster.yml
Resources/Maps/Shuttles/emergency_courser.yml
Resources/Maps/Shuttles/emergency_delta.yml
Resources/Maps/Shuttles/emergency_lox.yml
Resources/Maps/Shuttles/emergency_meta.yml
Resources/Maps/Shuttles/emergency_omega.yml
Resources/Maps/Shuttles/emergency_raven.yml
Resources/Maps/Shuttles/emergency_rod.yml
Resources/Maps/Shuttles/emergency_wode.yml
Resources/Prototypes/Actions/station_ai.yml [new file with mode: 0644]
Resources/Prototypes/Entities/Mobs/Player/admin_ghost.yml
Resources/Prototypes/Entities/Mobs/Player/silicon.yml
Resources/Prototypes/Entities/Structures/Wallmounts/screen.yml
Resources/Textures/Interface/Actions/actions_ai.rsi/ai_core.png
Resources/Textures/Interface/Actions/actions_ai.rsi/camera_light.png
Resources/Textures/Interface/Actions/actions_ai.rsi/comms_console.png [new file with mode: 0644]
Resources/Textures/Interface/Actions/actions_ai.rsi/crew_monitor.png
Resources/Textures/Interface/Actions/actions_ai.rsi/job_view.png [new file with mode: 0644]
Resources/Textures/Interface/Actions/actions_ai.rsi/mass_scanner.png [new file with mode: 0644]
Resources/Textures/Interface/Actions/actions_ai.rsi/meta.json
Resources/Textures/Interface/Actions/actions_ai.rsi/state_laws.png
Resources/Textures/Interface/Actions/actions_ai.rsi/station_records.png [new file with mode: 0644]

index e285d4a5ae7a592e52e2f4b9e336f663471827d7..49ad5a8a81b52fc599b2def9e285d8933395baba 100644 (file)
@@ -51,6 +51,7 @@ entities:
       configurators: []
       deviceLists: []
       transmitFrequencyId: ShuttleTimer
+      deviceNetId: Wireless
     - type: Gravity
       gravityShakeSound: !type:SoundPathSpecifier
         path: /Audio/Effects/alert.ogg
index 49d082c99524f46e6a8ab3daf31812af391e559a..59eb93dc69f5c95ca4bc1c06d93a2603956a0c9e 100644 (file)
@@ -65,6 +65,7 @@ entities:
       configurators: []
       deviceLists: []
       transmitFrequencyId: ShuttleTimer
+      deviceNetId: Wireless
     - type: DecalGrid
       chunkCollection:
         version: 2
index 82f178aaca66bfca5910ef6dfa497e781c077ad7..66dec4088a349119ed4438e49318300405a41a60 100644 (file)
@@ -67,6 +67,7 @@ entities:
       configurators: []
       deviceLists: []
       transmitFrequencyId: ShuttleTimer
+      deviceNetId: Wireless
     - type: DecalGrid
       chunkCollection:
         version: 2
index 426fe055b4770d6669fa51be031a2b6ad02086ad..738ef3307b0dd707b6e8a752a7298e47e5f4a038 100644 (file)
@@ -64,6 +64,7 @@ entities:
       configurators: []
       deviceLists: []
       transmitFrequencyId: ShuttleTimer
+      deviceNetId: Wireless
     - type: DecalGrid
       chunkCollection:
         version: 2
index 0c092e23631835a1337f66c1e6a95ef718c02a57..c9d41ac74e23df53367dae264605491476d58c7c 100644 (file)
@@ -71,6 +71,7 @@ entities:
       configurators: []
       deviceLists: []
       transmitFrequencyId: ShuttleTimer
+      deviceNetId: Wireless
     - type: DecalGrid
       chunkCollection:
         version: 2
index 53f6c01a41c75709d091b5d257ae548a72f83ebb..9320d26a62ae0842f9833fdb980cba4d216ffbfc 100644 (file)
@@ -70,6 +70,7 @@ entities:
       configurators: []
       deviceLists: []
       transmitFrequencyId: ShuttleTimer
+      deviceNetId: Wireless
     - type: DecalGrid
       chunkCollection:
         version: 2
index ba75195df9e0323a7e4670f3e1d9de3d90c370cd..4d8a9b1f6b261a2c884412cfc187a8f3b77352eb 100644 (file)
@@ -72,6 +72,7 @@ entities:
       configurators: []
       deviceLists: []
       transmitFrequencyId: ShuttleTimer
+      deviceNetId: Wireless
     - type: DecalGrid
       chunkCollection:
         version: 2
index f22e61ce167e1c4dae0b79abefbfc7b674fda26b..7b038effac920c39d1b81301e5fd2b2728d5dab2 100644 (file)
@@ -55,6 +55,7 @@ entities:
       configurators: []
       deviceLists: []
       transmitFrequencyId: ShuttleTimer
+      deviceNetId: Wireless
     - type: DecalGrid
       chunkCollection:
         version: 2
index 0d7948c2349d6217391dec34e3d5d602ca4019ce..19fab35dc55b16e72600a54508c26cc65204f9b6 100644 (file)
@@ -74,6 +74,7 @@ entities:
       configurators: []
       deviceLists: []
       transmitFrequencyId: ShuttleTimer
+      deviceNetId: Wireless
     - type: DecalGrid
       chunkCollection:
         version: 2
index cc9623712d3998a46ff949a3dfc25095c752a550..dcdd9c30455a234e714553a6b300125593ebc461 100644 (file)
@@ -70,6 +70,7 @@ entities:
       configurators: []
       deviceLists: []
       transmitFrequencyId: ShuttleTimer
+      deviceNetId: Wireless
     - type: DecalGrid
       chunkCollection:
         version: 2
index 96c75d012a37e1b1be9581de5515fa1377332577..5d75f7fc4afe31d7dccbfc747378af7faebff56e 100644 (file)
@@ -71,6 +71,7 @@ entities:
       configurators: []
       deviceLists: []
       transmitFrequencyId: ShuttleTimer
+      deviceNetId: Wireless
     - type: DecalGrid
       chunkCollection:
         version: 2
diff --git a/Resources/Prototypes/Actions/station_ai.yml b/Resources/Prototypes/Actions/station_ai.yml
new file mode 100644 (file)
index 0000000..e2ce25d
--- /dev/null
@@ -0,0 +1,64 @@
+# Actions
+- type: entity
+  id: ActionJumpToCore
+  name: Jump to core
+  description: Sends your eye back to the core.
+  components:
+  - type: InstantAction
+    itemIconStyle: BigAction
+    icon:
+      sprite: Interface/Actions/actions_ai.rsi
+      state: ai_core
+    event: !type:JumpToCoreEvent
+
+- type: entity
+  id: ActionShowJobIcons
+  name: Show job icons
+  description: Shows job icons for crew members.
+  components:
+  - type: InstantAction
+    itemIconStyle: BigAction
+    icon:
+      sprite: Interface/Actions/actions_ai.rsi
+      state: job_view
+    event: !type:ActionComponentChangeEvent
+      components:
+      - type: ShowJobIcons
+
+- type: entity
+  id: ActionSurvCameraLights
+  name: Toggle camera lights
+  description: Enable surveillance camera lights near wherever you're viewing.
+  components:
+  - type: InstantAction
+    itemIconStyle: BigAction
+    icon:
+      sprite: Interface/Actions/actions_ai.rsi
+      state: camera_light
+    event: !type:RelayedActionComponentChangeEvent
+      components:
+      - type: LightOnCollideCollider
+      - type: FixturesChange
+        fixtures:
+          lightTrigger:
+            shape:
+              !type:PhysShapeCircle
+              radius: 0.35
+            density: 80
+            hard: false
+            layer:
+            - GhostImpassable
+
+
+- type: entity
+  id: ActionAIViewLaws
+  name: View Laws
+  description: View the laws that you must follow.
+  components:
+  - type: InstantAction
+    itemIconStyle: NoItem
+    icon:
+      sprite: Interface/Actions/actions_ai.rsi
+      state: state_laws
+    event: !type:ToggleLawsScreenEvent
+    useDelay: 0.5
index 0b60ed447fcb1d229a686bbe69d2f728b17191f4..29495a977ef67cd569ce754bdd1506f6129c07e0 100644 (file)
@@ -76,6 +76,7 @@
   - type: DeviceNetwork
     deviceNetId: Wireless
     receiveFrequencyId: CrewMonitor
+    transmitFrequencyId: ShuttleTimer
   - type: WirelessNetworkConnection
     range: 500
   - type: StationLimitedNetwork
   description: View a mass scanner interface.
   components:
   - type: InstantAction
-    icon: { sprite: Structures/Machines/parts.rsi, state: box_0 }
-    iconOn: Structures/Machines/parts.rsi/box_2.png
+    icon: { sprite: Interface/Actions/actions_ai.rsi, state: mass_scanner }
+    iconOn: Interface/Actions/actions_ai.rsi/mass_scanner.png
     keywords: [ "AI", "console", "interface" ]
     priority: -10
     event: !type:ToggleIntrinsicUIEvent { key: enum.RadarConsoleUiKey.Key }
   description: View a crew monitoring interface.
   components:
   - type: InstantAction
-    icon: { sprite: Structures/Machines/parts.rsi, state: box_0 }
-    iconOn: Structures/Machines/parts.rsi/box_2.png
+    icon: { sprite: Interface/Actions/actions_ai.rsi, state: crew_monitor }
+    iconOn: Interface/Actions/actions_ai.rsi/crew_monitor.png
     keywords: [ "AI", "console", "interface" ]
     priority: -10
     event: !type:ToggleIntrinsicUIEvent { key: enum.CrewMonitoringUIKey.Key }
   description: View a station records Interface.
   components:
   - type: InstantAction
-    icon: { sprite: Structures/Machines/parts.rsi, state: box_0 }
-    iconOn: Structures/Machines/parts.rsi/box_2.png
+    icon: { sprite: Interface/Actions/actions_ai.rsi, state: station_records }
+    iconOn: Interface/Actions/actions_ai.rsi/station_records.png
     keywords: [ "AI", "console", "interface" ]
     priority: -10
     event: !type:ToggleIntrinsicUIEvent { key: enum.GeneralStationRecordConsoleKey.Key }
index bccc70c4d1103d0e6fe4820e001b46a1953fc8fb..45c1fef541e8297d557a29eb7e590b8c2c36f912 100644 (file)
@@ -35,7 +35,7 @@
     - ActionJumpToCore
     - ActionShowJobIcons
     - ActionSurvCameraLights
-    - ActionViewLaws
+    - ActionAIViewLaws
   - type: UserInterface
     interfaces:
       enum.RadarConsoleUiKey.Key:
         toggleAction: ActionAGhostShowCrewMonitoring
       enum.GeneralStationRecordConsoleKey.Key:
         toggleAction: ActionAGhostShowStationRecords
+  - type: CrewMonitoringConsole
+  - type: GeneralStationRecordConsole
+  - type: DeviceNetwork
+    deviceNetId: Wireless
+    receiveFrequencyId: CrewMonitor
+  - type: RadarConsole
+    followEntity: false
 
-# Actions
-- type: entity
-  id: ActionJumpToCore
-  name: Jump to core
-  description: Sends your eye back to the core.
-  components:
-  - type: InstantAction
-    itemIconStyle: BigAction
-    icon:
-      sprite: Interface/Actions/actions_ai.rsi
-      state: ai_core
-    event: !type:JumpToCoreEvent
-
-- type: entity
-  id: ActionShowJobIcons
-  name: Show job icons
-  description: Shows job icons for crew members.
-  components:
-  - type: InstantAction
-    itemIconStyle: BigAction
-    icon:
-      sprite: Interface/Misc/job_icons.rsi
-      state: Captain
-    event: !type:ActionComponentChangeEvent
-      components:
-      - type: ShowJobIcons
-
-- type: entity
-  id: ActionSurvCameraLights
-  name: Toggle camera lights
-  description: Enable surveillance camera lights near wherever you're viewing.
-  components:
-  - type: InstantAction
-    itemIconStyle: BigAction
-    icon:
-      sprite: Interface/Actions/actions_ai.rsi
-      state: camera_light
-    event: !type:RelayedActionComponentChangeEvent
-      components:
-      - type: LightOnCollideCollider
-      - type: FixturesChange
-        fixtures:
-          lightTrigger:
-            shape:
-              !type:PhysShapeCircle
-              radius: 0.35
-            density: 80
-            hard: false
-            layer:
-            - GhostImpassable
 
 # Ai
 - type: entity
index f3fcb5062a83f7ce1bc1bd703c4b97dc6d971b48..382900e886c9307bad13bd9c2812f57b6b666823 100644 (file)
@@ -35,6 +35,7 @@
   - type: ExtensionCableReceiver
   - type: Screen
   - type: DeviceNetwork
+    deviceNetId: Wireless
     receiveFrequencyId: ShuttleTimer
 
 - type: entity
index 8dd3031f9fc0b41e613e0f27050665c312010aa9..89cc7aa1654fb532f1193e972a7c2ac68b068981 100644 (file)
Binary files a/Resources/Textures/Interface/Actions/actions_ai.rsi/ai_core.png and b/Resources/Textures/Interface/Actions/actions_ai.rsi/ai_core.png differ
index 041b9b9bf7c8b9cca92a5cb784ab672663a101cf..53ebb32c59fa148cbbc8dfe53367c31b24b835be 100644 (file)
Binary files a/Resources/Textures/Interface/Actions/actions_ai.rsi/camera_light.png and b/Resources/Textures/Interface/Actions/actions_ai.rsi/camera_light.png differ
diff --git a/Resources/Textures/Interface/Actions/actions_ai.rsi/comms_console.png b/Resources/Textures/Interface/Actions/actions_ai.rsi/comms_console.png
new file mode 100644 (file)
index 0000000..1958e5f
Binary files /dev/null and b/Resources/Textures/Interface/Actions/actions_ai.rsi/comms_console.png differ
index 78fad17a76c58ceb3ff7bdc60107aaf01f477511..73abb66ac1fef4180937fb2aeb18867d714c5925 100644 (file)
Binary files a/Resources/Textures/Interface/Actions/actions_ai.rsi/crew_monitor.png and b/Resources/Textures/Interface/Actions/actions_ai.rsi/crew_monitor.png differ
diff --git a/Resources/Textures/Interface/Actions/actions_ai.rsi/job_view.png b/Resources/Textures/Interface/Actions/actions_ai.rsi/job_view.png
new file mode 100644 (file)
index 0000000..b407c47
Binary files /dev/null and b/Resources/Textures/Interface/Actions/actions_ai.rsi/job_view.png differ
diff --git a/Resources/Textures/Interface/Actions/actions_ai.rsi/mass_scanner.png b/Resources/Textures/Interface/Actions/actions_ai.rsi/mass_scanner.png
new file mode 100644 (file)
index 0000000..f754255
Binary files /dev/null and b/Resources/Textures/Interface/Actions/actions_ai.rsi/mass_scanner.png differ
index a7c00f779353b60b95a468ebf73fd704bcaacb53..6b974d8521a5eaf208f379d4af5bbf5e29b121c4 100644 (file)
         },
         {
             "name": "state_laws"
-        }
+        },
+               {
+                       "name": "station_records"
+               },
+               {
+                       "name": "mass_scanner"
+               },
+               {
+                       "name": "job_view"
+               },
+               {
+                       "name": "comms_console"
+               }
     ]
 }
index e30e891745fb526dd73b5f597eec1a457f4b1aaa..ff546e13b1fe9c117f99a23cd8c4491d9a14f3f3 100644 (file)
Binary files a/Resources/Textures/Interface/Actions/actions_ai.rsi/state_laws.png and b/Resources/Textures/Interface/Actions/actions_ai.rsi/state_laws.png differ
diff --git a/Resources/Textures/Interface/Actions/actions_ai.rsi/station_records.png b/Resources/Textures/Interface/Actions/actions_ai.rsi/station_records.png
new file mode 100644 (file)
index 0000000..c1f1420
Binary files /dev/null and b/Resources/Textures/Interface/Actions/actions_ai.rsi/station_records.png differ