Electrocution. (#4958)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers@gmail.com>
This commit is contained in:
committed by
GitHub
parent
66a3d5bf29
commit
ed3bf94a3b
@@ -120,3 +120,30 @@
|
||||
- type: Clothing
|
||||
sprite: Clothing/Hands/Gloves/Color/yellow.rsi
|
||||
HeatResistance: 1400
|
||||
- type: Insulated
|
||||
|
||||
- type: entity
|
||||
parent: ClothingHandsGlovesColorYellow
|
||||
id: ClothingHandsGlovesColorYellowCheap
|
||||
name: budget insulated gloves
|
||||
description: These gloves are cheap knockoffs of the coveted ones - no way this can end badly.
|
||||
components:
|
||||
- type: Clothing
|
||||
HeatResistance: 0
|
||||
- type: Insulated
|
||||
- type: RandomInsulation
|
||||
# Why repeated numbers? So some numbers are more common, of course!
|
||||
list:
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
- 0.5
|
||||
- 0.5
|
||||
- 0.5
|
||||
- 0.75
|
||||
- 1.25
|
||||
- 1.25
|
||||
- 1.5
|
||||
- 1.5
|
||||
- 1.5
|
||||
- 1.5
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
- type: Clothing
|
||||
sprite: Clothing/Hands/Gloves/captain.rsi
|
||||
HeatResistance: 1400
|
||||
- type: Insulated
|
||||
|
||||
- type: entity
|
||||
parent: ClothingHandsBase
|
||||
@@ -126,6 +127,8 @@
|
||||
sprite: Clothing/Hands/Gloves/spaceninja.rsi
|
||||
- type: Clothing
|
||||
sprite: Clothing/Hands/Gloves/spaceninja.rsi
|
||||
HeatResistance: 1400
|
||||
- type: Insulated
|
||||
|
||||
- type: entity
|
||||
parent: ClothingHandsBase
|
||||
|
||||
@@ -68,6 +68,7 @@
|
||||
- KnockedDown
|
||||
- SlowedDown
|
||||
- Stutter
|
||||
- Electrocution
|
||||
# Other
|
||||
- type: Inventory
|
||||
- type: Clickable
|
||||
|
||||
@@ -30,6 +30,12 @@
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- type: SubFloorHide
|
||||
- type: Electrified
|
||||
onBump: false
|
||||
requirePower: true
|
||||
highVoltageNode: power
|
||||
mediumVoltageNode: power
|
||||
lowVoltageNode: power
|
||||
- type: CableVis
|
||||
node: power
|
||||
|
||||
|
||||
@@ -23,6 +23,36 @@
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: FlimsyMetallic
|
||||
- type: PowerConsumer
|
||||
- type: Electrified
|
||||
requirePower: true
|
||||
noWindowInTile: true
|
||||
highVoltageNode: high
|
||||
mediumVoltageNode: medium
|
||||
lowVoltageNode: low
|
||||
- type: NodeContainer
|
||||
nodes:
|
||||
high:
|
||||
!type:CableDeviceNode
|
||||
nodeGroupID: HVPower
|
||||
medium:
|
||||
!type:CableDeviceNode
|
||||
nodeGroupID: MVPower
|
||||
low:
|
||||
!type:CableDeviceNode
|
||||
nodeGroupID: Apc
|
||||
- type: Physics
|
||||
bodyType: Static
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.5,-0.5,0.5,0.5"
|
||||
layer:
|
||||
- Opaque
|
||||
- Impassable
|
||||
- MobImpassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
@@ -36,7 +66,7 @@
|
||||
|
||||
- type: entity
|
||||
id: GrilleBroken
|
||||
parent: Grille
|
||||
parent: BaseStructure
|
||||
name: grille
|
||||
description: A flimsy framework of iron rods. It has seen better days.
|
||||
components:
|
||||
@@ -59,12 +89,15 @@
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.45,-0.45,0.45,0.45"
|
||||
bounds: "-0.5,-0.5,0.5,0.5"
|
||||
mass: 50
|
||||
layer:
|
||||
- Passable
|
||||
mask:
|
||||
- Passable
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: FlimsyMetallic
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
|
||||
44
Resources/Prototypes/Entities/Virtual/electrocution.yml
Normal file
44
Resources/Prototypes/Entities/Virtual/electrocution.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
# Special entity used to attach to power networks as load when somebody gets electrocuted.
|
||||
- type: entity
|
||||
id: VirtualElectrocutionLoadHVPower
|
||||
name: ELECTROCUTION ENTITY YOU SHOULD NOT SEE THIS
|
||||
abstract: true
|
||||
components:
|
||||
- type: NodeContainer
|
||||
nodes:
|
||||
electrocution: !type:ElectrocutionNode
|
||||
nodeGroupID: HVPower
|
||||
|
||||
- type: PowerConsumer
|
||||
voltage: High
|
||||
drawRate: 50000
|
||||
- type: Electrocution
|
||||
|
||||
- type: entity
|
||||
id: VirtualElectrocutionLoadMVPower
|
||||
name: ELECTROCUTION ENTITY YOU SHOULD NOT SEE THIS
|
||||
abstract: true
|
||||
components:
|
||||
- type: NodeContainer
|
||||
nodes:
|
||||
electrocution: !type:ElectrocutionNode
|
||||
nodeGroupID: MVPower
|
||||
|
||||
- type: PowerConsumer
|
||||
voltage: Medium
|
||||
drawRate: 50000
|
||||
- type: Electrocution
|
||||
|
||||
- type: entity
|
||||
id: VirtualElectrocutionLoadApc
|
||||
name: ELECTROCUTION ENTITY YOU SHOULD NOT SEE THIS
|
||||
abstract: true
|
||||
components:
|
||||
- type: NodeContainer
|
||||
nodes:
|
||||
electrocution: !type:ElectrocutionNode
|
||||
nodeGroupID: Apc
|
||||
- type: PowerConsumer
|
||||
voltage: Apc
|
||||
drawRate: 50000
|
||||
- type: Electrocution
|
||||
@@ -18,3 +18,6 @@
|
||||
|
||||
- type: statusEffect
|
||||
id: Stutter
|
||||
|
||||
- type: statusEffect
|
||||
id: Electrocution
|
||||
|
||||
Reference in New Issue
Block a user