Skip to content

Commit

Permalink
destruction, animations and enclave generator / storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Peptide90 committed Dec 29, 2023
1 parent 2e861a1 commit 3ff6143
Show file tree
Hide file tree
Showing 19 changed files with 282 additions and 79 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,70 @@
supplyRate: 1000
supplyRampRate: 250
supplyRampTolerance: 250
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
- !type:ExplodeBehavior
- !type:SpawnEntitiesBehavior
spawn:
N14MachineFrameTallDestroyed:
min: 1
max: 1
- !type:SpawnGasBehavior
gasMixture:
volume: 1000
moles:
- 0 # oxygen
- 0 # nitrogen
- 340.5701689 # carbon dioxide
temperature: 373.15
- type: Explosive
explosionType: Default
maxIntensity: 100
intensitySlope: 2
totalIntensity: 200

- type: entity
parent: N14GeneratorFusionMini
id: N14GeneratorFusionEnclave
description: A generator that uses heavy water for fusion power.
name: enclave fusion generator
components:
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.5,-0.5,0.5,0.8"
density: 190
mask:
- MachineMask
layer:
- MachineLayer
- type: Sprite
sprite: Nuclear14/Structures/Power/enclave.rsi
layers:
- state: generator_enclave_off
- state: generator_enclave_on
shader: unshaded
- type: PowerSupplier
supplyRate: 1000
supplyRampRate: 250
supplyRampTolerance: 250

- type: entity
parent: N14GeneratorFusionMini
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,82 +8,121 @@
placement:
mode: SnapgridCenter
components:
- type: AmbientSound
volume: -7
range: 3
sound:
path: /Audio/Ambience/Objects/periodic_beep.ogg
- type: Sprite
sprite: Nuclear14/Structures/Power/powerstorage.rsi
snapCardinals: true
layers:
- state: smes
- map: ["enum.SmesVisualLayers.Charge"]
state: "smes-og1" # -og0 does not exist
shader: unshaded
visible: false
- map: ["enum.SmesVisualLayers.Input"]
state: "smes-oc0"
shader: unshaded
- map: ["enum.SmesVisualLayers.Output"]
state: "smes-op1"
shader: unshaded
- type: Smes
- type: Appearance
- type: Battery
startingCharge: 0
- type: ExaminableBattery
- type: NodeContainer
examinable: true
nodes:
input:
!type:CableDeviceNode
nodeGroupID: HVPower
output:
!type:CableTerminalPortNode
nodeGroupID: HVPower
- type: BatteryCharger
voltage: High
node: output
- type: BatteryDischarger
voltage: High
node: input
- type: PowerNetworkBattery
maxSupply: 150000
maxChargeRate: 5000
supplyRampTolerance: 5000
supplyRampRate: 1000
- type: PointLight
radius: 1.5
energy: 1.6
color: "#c9c042"
castShadows: false
- type: WiresPanel
- type: Wires
BoardName: "SMES" # N14TODO: change board.
LayoutId: SMES
- type: Machine
board: SMESMachineCircuitboard
- type: StationInfiniteBatteryTarget
- type: Electrified
onHandInteract: false
onInteractUsing: false
onBump: false
requirePower: true
highVoltageNode: input
mediumVoltageNode: output
- type: Damageable
damageContainer: Inorganic
damageModifierSet: StrongMetallic
- type: BatterySensor
- type: DeviceNetwork
deviceNetId: AtmosDevices
receiveFrequencyId: AtmosMonitor
transmitFrequencyId: AtmosMonitor
prefix: device-address-prefix-smes
sendBroadcastAttemptEvent: true
examinableAddress: true
- type: WiredNetworkConnection
- type: AmbientSound
volume: -7
range: 3
sound:
path: /Audio/Ambience/Objects/periodic_beep.ogg
- type: Sprite
sprite: Nuclear14/Structures/Power/powerstorage.rsi
snapCardinals: true
layers:
- state: smes
- map: ["enum.SmesVisualLayers.Charge"]
state: "smes-og1" # -og0 does not exist
shader: unshaded
visible: false
- map: ["enum.SmesVisualLayers.Input"]
state: "smes-oc0"
shader: unshaded
- map: ["enum.SmesVisualLayers.Output"]
state: "smes-op1"
shader: unshaded
- type: Smes
- type: Appearance
- type: Battery
startingCharge: 0
- type: ExaminableBattery
- type: NodeContainer
examinable: true
nodes:
input:
!type:CableDeviceNode
nodeGroupID: HVPower
output:
!type:CableTerminalPortNode
nodeGroupID: HVPower
- type: BatteryCharger
voltage: High
node: output
- type: BatteryDischarger
voltage: High
node: input
- type: PowerNetworkBattery
maxSupply: 150000
maxChargeRate: 5000
supplyRampTolerance: 5000
supplyRampRate: 1000
- type: PointLight
radius: 1.5
energy: 1.6
color: "#c9c042"
castShadows: false
- type: WiresPanel
- type: Wires
BoardName: "SMES" # N14TODO: change board.
LayoutId: SMES
- type: Machine
board: SMESMachineCircuitboard
- type: StationInfiniteBatteryTarget
- type: Electrified
onHandInteract: false
onInteractUsing: false
onBump: false
requirePower: true
highVoltageNode: input
mediumVoltageNode: output
- type: Damageable
damageContainer: Inorganic
damageModifierSet: StrongMetallic
- type: BatterySensor
- type: DeviceNetwork
deviceNetId: AtmosDevices
receiveFrequencyId: AtmosMonitor
transmitFrequencyId: AtmosMonitor
prefix: device-address-prefix-smes
sendBroadcastAttemptEvent: true
examinableAddress: true
- type: WiredNetworkConnection
- type: Damageable
damageContainer: Inorganic
damageModifierSet: StrongMetallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
- !type:ExplodeBehavior
- !type:SpawnEntitiesBehavior
spawn:
N14MachineFrameTallDestroyed:
min: 1
max: 1
- !type:SpawnGasBehavior
gasMixture:
volume: 1000
moles:
- 0 # oxygen
- 0 # nitrogen
- 340.5701689 # carbon dioxide
temperature: 373.15
- type: Explosive
explosionType: Default
maxIntensity: 100
intensitySlope: 2
totalIntensity: 200

# Storage in use:

Expand All @@ -103,3 +142,28 @@
components:
- type: Battery
startingCharge: 0

# Enclave
- type: entity
parent: N14PowerStorageBase
id: N14PowerStorageEnclaveBasic
suffix: Basic, 8MW
components:
- type: Battery
maxCharge: 8000000
startingCharge: 8000000
- type: Sprite
sprite: Nuclear14/Structures/Power/enclave.rsi
snapCardinals: true
layers:
- state: smes
- map: ["enum.SmesVisualLayers.Charge"]
state: "smes-og1" # -og0 does not exist
shader: unshaded
visible: false
- map: ["enum.SmesVisualLayers.Input"]
state: "smes-oc0"
shader: unshaded
- map: ["enum.SmesVisualLayers.Output"]
state: "smes-op1"
shader: unshaded
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@
},
"states": [
{
"name": "display-charging"
"name": "display-charging",
"delays": [
[
0.1,
0.1
]
]
},
{
"name": "frame"
Expand All @@ -26,11 +32,16 @@
"name": "base"
},
{
"name": "display-lack"
"name": "display-lack",
"delays": [
[
1,
2
]
]
},
{
"name": "display-full"
}

]
}
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,64 @@
{
"version": 1,
"license": "CC-BY-NC-SA-3.0",
"copyright": "By Peptide90 for Nuclear14",
"size": {
"x": 32,
"y": 64
},
"states": [
{
"name": "smes-op2"
},
{
"name": "generator_enclave_off"
},
{
"name": "generator_enclave_on",
"delays": [
[
0.5,
0.3,
0.2,
0.5
]
]
},
{
"name": "powerstorage_enclave"
},
{
"name": "smes"
},
{
"name": "smes-oc0"
},
{
"name": "smes-oc1"
},
{
"name": "smes-oc2"
},
{
"name": "smes-og1"
},
{
"name": "smes-og2"
},
{
"name": "smes-og3"
},
{
"name": "smes-og4"
},
{
"name": "smes-og5"
},
{
"name": "smes-op0"
},
{
"name": "smes-op1"
}
]
}
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.
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.
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.
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.
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.
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.
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 3ff6143

Please sign in to comment.