Add power sinks (#8020)

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Veritius
2022-05-12 23:12:35 +10:00
committed by GitHub
parent 6cb2a01723
commit 656ec38f99
8 changed files with 133 additions and 1 deletions

View File

@@ -255,6 +255,12 @@
itemId: ClothingBackpackDuffelSyndicateFilledMedical
price: 5
- type : uplinkListing
id: UplinkPowerSink
category: Tools
itemId: PowerSink
price: 5
- type: uplinkListing
id: UplinkCarpDehydrated
category: Tools

View File

@@ -0,0 +1,46 @@
- type: entity
id: PowerSink
parent: BaseMachine
name: power sink
description: Drains immense amounts of electricity from the grid.
components:
- type: Item
size: 150
- type: NodeContainer
examinable: true
nodes:
input:
!type:CableDeviceNode
nodeGroupID: HVPower
- type: Transform
anchored: true
- type: Physics
- type: Fixtures
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.40,-0.40,0.40,0.40"
mass: 15
mask:
- MachineMask
layer:
- MachineLayer
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 25
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: PowerSink
- type: Battery
maxCharge: 7500000
- type: ExaminableBattery
- type: PowerConsumer
voltage: High
drawRate: 1000000
- type: Sprite
netsync: false
sprite: Objects/Power/powersink.rsi
state: powersink