Adds Handheld Radio/Listener system (#1457)
* re-do of old PR that got fuckied upp * simplify foreach as suggested * pass distance to PassSpeechData for a check, remove GetListenRange() * adds RadioQuery instead of subscribing/unsubscribing * change SpreadMessage to accept owner rather than component * change RadioQuery to EntityQuery * remove declared EntityQuery (oops, didn't know what shadowcommander meant) * refactor ListeningSystem & refactor added chat logic into listen sys * IGNORE the oopsie STOP LOOKING
This commit is contained in:
18
Resources/Prototypes/Entities/Objects/radio.yml
Normal file
18
Resources/Prototypes/Entities/Objects/radio.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
- type: entity
|
||||
name: "baseradio"
|
||||
parent: BaseItem
|
||||
id: BaseRadio
|
||||
abstract: true
|
||||
|
||||
- type: entity
|
||||
name: "Handheld Radio"
|
||||
description: A handy handheld radio.
|
||||
parent: BaseRadio
|
||||
id: handrad
|
||||
components:
|
||||
- type: Sprite
|
||||
texture: Objects/Devices/radio.png
|
||||
- type: Icon
|
||||
texture: Objects/Devices/radio.png
|
||||
- type: Listening
|
||||
- type: Radio
|
||||
BIN
Resources/Textures/Objects/Devices/radio.png
Normal file
BIN
Resources/Textures/Objects/Devices/radio.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 536 B |
Reference in New Issue
Block a user