Skip to content

Commit

Permalink
Laying groundwork for machine linking of space artillery
Browse files Browse the repository at this point in the history
  • Loading branch information
Qulibly committed Jul 31, 2023
1 parent 91daa5e commit 35728bb
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Resources/Locale/en-US/machine-linking/receiver_ports.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,8 @@ signal-port-description-logic-input-a = First input of a logic gate.
signal-port-name-logic-input-b = Input B
signal-port-description-logic-input-b = Second input of a logic gate.
signal-port-name-space-artillery-fire = Fire
signal-port-description-space-artillery-fire = Controls Space Artillery's firing mechanism.
signal-port-name-logic-input = Input
signal-port-description-logic-input = Input to the edge detector, cannot be a pulse signal.
3 changes: 3 additions & 0 deletions Resources/Locale/en-US/machine-linking/transmitter_ports.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ signal-port-description-logic-output-high = This port is invoked whenever the in
signal-port-name-logic-output-low = Low Output
signal-port-description-logic-output-low = This port is invoked whenever the input has a falling edge.
signal-port-name-space-artillery-fire = Fire
signal-port-description-space-artillery-fire = Controls Space Artillery's firing mechanism.
5 changes: 5 additions & 0 deletions Resources/Prototypes/DeviceLinking/sink_ports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,8 @@
id: SetParticleZeta
name: signal-port-name-set-particle-zeta
description: signal-port-description-set-particle-zeta

- type: sinkPort
id: SpaceArtilleryFire
name: signal-port-name-space-artillery-fire
description: signal-port-description-space-artillery-fire
5 changes: 5 additions & 0 deletions Resources/Prototypes/DeviceLinking/source_ports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,8 @@
name: signal-port-name-logic-output-low
description: signal-port-description-logic-output-low
defaultLinks: [ Off, Close ]

- type: sourcePort
id: SpaceArtilleryFire
name: signal-port-name-space-artillery-fire
description: signal-port-description-space-artillery-fire
72 changes: 72 additions & 0 deletions Resources/Prototypes/Entities/Structures/space_artillery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
- type: entity
id: Space_Artillery
name: space artillery
parent: ConstructibleMachine
description: It's like from 20th century second planet wars! Old and reliable.
placement:
mode: SnapgridCenter
components:
- type: Clickable
- type: InteractionOutline
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.25,-0.25,0.25,0.25"
density: 600
mask:
- MachineMask
layer:
- MachineLayer
- type: Transform
anchored: true
- type: Sprite
sprite: Structures/space_artillery.rsi
layers:
- state: space_artillery
- type: Anchorable
- type: Pullable
- type: Rotatable
rotateWhilePulling: false
- type: Appearance
- type: Storage
capacity: 120
- type: UserInterface
interfaces:
- key: enum.StorageUiKey.Key
type: StorageBoundUserInterface
- type: ContainerContainer
containers:
storagebase: !type:Container
ents: []
- type: ContainerAmmoProvider
container: storagebase
- type: PneumaticCannon
gasUsage: 0
baseProjectileSpeed: 25
toolModifyPower: Screwing
throwItems: false
- type: DeviceNetwork
deviceNetId: Wireless
receiveFrequencyId: BasicDevice
- type: WirelessNetworkConnection
range: 200
- type: DeviceLinkSink
ports:
- SpaceArtilleryFire
- type: DeviceLinkSource
ports:
- SpaceArtilleryFire
- type: Gun
fireRate: 10
selectedMode: FullAuto
availableModes:
- SemiAuto
- FullAuto
soundGunshot:
path: /Audio/Effects/thunk.ogg
soundEmpty:
path: /Audio/Items/hiss.ogg
15 changes: 15 additions & 0 deletions Resources/Textures/Structures/space_artillery.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/da354ba4e28fcaf73002d25cab0da4815808be60",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "space_artillery",
"directions": 4
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 35728bb

Please sign in to comment.