Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Radio station #674

Merged
merged 11 commits into from
Nov 12, 2024
Prev Previous commit
changed sprite names to reflect states better, attempt at power light…
…s, not working
bryan-hub committed Nov 12, 2024
commit 54101714b99d5c32022f78ed1ec70f2a864b15cc
28 changes: 24 additions & 4 deletions Resources/Prototypes/_Nuclear14/Entities/Structures/Misc/radio.yml
Original file line number Diff line number Diff line change
@@ -28,15 +28,33 @@
components:
- type: Sprite
sprite: _Nuclear14/Structures/Misc/radiostation/microphones.rsi
state: radiomicrophone
layers:
- state: base
- state: on
map: ["enum.PowerDeviceVisualLayers.Powered"]
shader: unshaded
- state: off
map: [ "disabled"]
- type: Appearance
- type: GenericVisualizer
visuals:
enum.PowerDeviceVisuals.Powered:
enum.PowerDeviceVisualLayers.Powered:
True: {visible: true}
False: {visible: false}
- type: ApcPowerReceiver
- type: Electrified
enabled: false
usesApcPower: true
- type: ExtensionCableReceiver
- type: RadioMicrophone
powerRequired: true
broadcastChannel: PBS
toggleOnInteract: true
frequency: 1667
listenRange: 2
- type: Clickable
- type: InteractionOutline
- type: Appearance
- type: WiresVisuals
- type: Transform
noRot: false
@@ -72,6 +90,7 @@
map: [ "base" ]
- state: on
map: [ "enabled" ]
shader: unshaded
- state: off
map: [ "disabled" ]
- type: RadioSpeaker
@@ -101,8 +120,8 @@
id: N14MicrophoneStand
components:
- type: Sprite
sprite: _Nuclear14/Structures/Misc/radiostation/microphones.rsi
state: radiomicrophonestand
sprite: _Nuclear14/Structures/Misc/radiostation/standmicrophones.rsi
state: base
- type: RadioMicrophone
broadcastChannel: PBS
toggleOnInteract: true
@@ -133,6 +152,7 @@
- state: off
- state: on
map: ["enum.PoweredLightLayers.Base"]

- type: WallMount
- type: PointLight
radius: 7
Original file line number Diff line number Diff line change
@@ -8,11 +8,13 @@
},
"states": [
{
"name": "radiomicrophone"
"name": "base"
},
{
"name": "radiomicrophonestand",
"directions": 4
}
"name": "on"
},
{
"name": "off"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": 1,
"license": "CC-BY-NC-SA-3.0",
"copyright": "made by maxxorion for nuclear14",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "base",
"directions": 4
},
{
"name": "on"
},
{
"name": "off"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.