forked from Simple-Station/Einstein-Engines
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cherry picked from commit 1ed459840c2167968042563ff6b6458e37d568c4)
- Loading branch information
1 parent
0fd22da
commit e381c28
Showing
7 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using Robust.Shared.GameStates; | ||
|
||
namespace Content.Shared.Atmos.Components; | ||
|
||
[RegisterComponent, NetworkedComponent] | ||
public sealed partial class GasPipeAnalyzerComponent : Component | ||
{ | ||
|
||
} |
69 changes: 69 additions & 0 deletions
69
Resources/Prototypes/Entities/Structures/Piping/Atmospherics/pipe_analyzer.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
- type: entity | ||
parent: BaseItem | ||
id: GasPipeAnalyzer | ||
name: gas pipe analyzer | ||
description: A device that reports the characteristics of the gas in the attached pipe network. | ||
placement: | ||
mode: SnapgridCenter | ||
suffix: General | ||
components: | ||
- type: Sprite | ||
sprite: Objects/Devices/station_beacon.rsi | ||
drawdepth: BelowFloor | ||
layers: | ||
- state: blink | ||
map: ["base"] | ||
- type: Appearance | ||
- type: GenericVisualizer | ||
visuals: | ||
enum.NavMapBeaconVisuals.Enabled: | ||
base: | ||
True: {state: blink} | ||
False: {state: icon} | ||
# - type: ActivatableUI | ||
# key: enum.GasAnalyzerUiKey.Key | ||
# - type: UserInterface | ||
# interfaces: | ||
# enum.GasAnalyzerUiKey.Key: | ||
# type: GasAnalyzerBoundUserInterface | ||
- type: GasPipeAnalyzer | ||
- type: Item | ||
size: Small | ||
- type: SubFloorHide | ||
- type: Anchorable | ||
- type: CollideOnAnchor | ||
- type: Physics | ||
canCollide: false | ||
bodyType: static | ||
- type: Transform | ||
anchored: true | ||
- type: Damageable | ||
damageContainer: Inorganic | ||
damageModifierSet: Metallic | ||
- type: Destructible | ||
thresholds: | ||
- trigger: | ||
!type:DamageTrigger | ||
damage: 200 | ||
behaviors: | ||
- !type:DoActsBehavior | ||
acts: ["Destruction"] | ||
- trigger: | ||
!type:DamageTrigger | ||
damage: 100 | ||
behaviors: | ||
- !type:PlaySoundBehavior | ||
sound: | ||
collection: MetalBreak | ||
params: | ||
volume: -8 | ||
- !type:SpawnEntitiesBehavior | ||
spawn: | ||
SheetSteel1: | ||
min: 1 | ||
max: 1 | ||
offset: 0 | ||
- !type:DoActsBehavior | ||
acts: ["Breakage"] | ||
- type: StaticPrice | ||
price: 25 |
Binary file added
BIN
+216 Bytes
Resources/Textures/Structures/Specific/Atmospherics/gas_pipe_sensor.rsi/base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+145 Bytes
Resources/Textures/Structures/Specific/Atmospherics/gas_pipe_sensor.rsi/blink.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+231 Bytes
Resources/Textures/Structures/Specific/Atmospherics/gas_pipe_sensor.rsi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+104 Bytes
Resources/Textures/Structures/Specific/Atmospherics/gas_pipe_sensor.rsi/lights.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions
29
Resources/Textures/Structures/Specific/Atmospherics/gas_pipe_sensor.rsi/meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"version": 1, | ||
"license": "CC0-1.0", | ||
"copyright": "Created by chromiumboy (github) for SS14, based on the digital valve from /tg/", | ||
"size": { | ||
"x": 32, | ||
"y": 32 | ||
}, | ||
"states": [ | ||
{ | ||
"name": "icon" | ||
}, | ||
{ | ||
"name": "base" | ||
}, | ||
{ | ||
"name": "lights" | ||
}, | ||
{ | ||
"name": "blink", | ||
"delays": [ | ||
[ | ||
1.0, | ||
0.25 | ||
] | ||
] | ||
} | ||
] | ||
} |