Tile burning (#228)
* tile burning * add big planks burning, some fix * FIRE!!! more structures can burn * wallmount burn * fuck Jetbrains! * Update CP14FireSpreadSystem.cs
This commit is contained in:
@@ -17,6 +17,17 @@
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Wood
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 25
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
collection: WoodDestroy
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
fix1:
|
||||
@@ -56,6 +67,17 @@
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Wood
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 25
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
collection: WoodDestroy
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
fix1:
|
||||
@@ -94,6 +116,17 @@
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Wood
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 25
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
collection: WoodDestroy
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
fix1:
|
||||
|
||||
@@ -38,3 +38,5 @@
|
||||
whitelist:
|
||||
tags:
|
||||
- CP14FireplaceFuel
|
||||
- type: CP14FireSpread
|
||||
radius: 0.25
|
||||
|
||||
@@ -63,19 +63,19 @@
|
||||
- type: entity
|
||||
id: CP14AlchemyFurnaceDebug
|
||||
parent: CP14AlchemyFurnace
|
||||
suffix: DEBUG
|
||||
categories:
|
||||
- Debug
|
||||
components:
|
||||
- type: CP14Fireplace
|
||||
fuel: 100
|
||||
fuelDrainingPerUpdate: 0
|
||||
- type: CP14AutoIgnite
|
||||
|
||||
- type: entity
|
||||
id: CP14AlchemyFurnace
|
||||
name: alchemy furnace
|
||||
parent: CP14BaseFireplace
|
||||
description: A furnace fueled by wood, coal, or any other burning material. Handy for heating your alchemical potions.
|
||||
categories:
|
||||
- Debug
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: _CP14/Structures/Specific/Alchemy/alchemy_furnace.rsi
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
id: CP14WallStonebrick
|
||||
name: stone brick wall
|
||||
parent: CP14BaseWall
|
||||
description: Bruh
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: _CP14/Structures/Walls/bricks_stone_wall.rsi
|
||||
@@ -37,7 +36,6 @@
|
||||
id: CP14WallWhitebrick
|
||||
name: white brick wall
|
||||
parent: CP14BaseWall
|
||||
description: Bruh
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: _CP14/Structures/Walls/whitebricks_stone_wall.rsi
|
||||
@@ -50,7 +48,6 @@
|
||||
id: CP14WallBrownbrick
|
||||
name: brick wall
|
||||
parent: CP14BaseWall
|
||||
description: Bruh
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: _CP14/Structures/Walls/bricks_wall.rsi
|
||||
@@ -62,8 +59,9 @@
|
||||
- type: entity
|
||||
id: CP14WallWooden
|
||||
name: wooden wall
|
||||
parent: CP14BaseWall
|
||||
description: Bruh
|
||||
parent:
|
||||
- CP14BaseWall
|
||||
- CP14BaseWooden
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: _CP14/Structures/Walls/wooden_wall.rsi
|
||||
@@ -71,6 +69,20 @@
|
||||
sprite: _CP14/Structures/Walls/wooden_wall.rsi
|
||||
- type: IconSmooth
|
||||
base: wood
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Wood
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 100
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
collection: WoodDestroy
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
|
||||
- type: entity
|
||||
id: CP14WallCardboard
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
- type: entity
|
||||
parent: BaseStructure
|
||||
parent:
|
||||
- BaseStructure
|
||||
- CP14BaseWooden
|
||||
id: CP14BaseFenceWood
|
||||
name: wooden fence
|
||||
description: Wooden piece of fencing. I hope there is babushka's garden behind it.
|
||||
|
||||
63
Resources/Prototypes/_CP14/Entities/fire.yml
Normal file
63
Resources/Prototypes/_CP14/Entities/fire.yml
Normal file
@@ -0,0 +1,63 @@
|
||||
- type: entity
|
||||
id: CP14Fire
|
||||
name: fire
|
||||
suffix: cp14
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
components:
|
||||
- type: Sprite
|
||||
drawDepth: Mobs
|
||||
sprite: _CP14/Effects/fire.rsi
|
||||
layers:
|
||||
- state: full
|
||||
- type: FireVisuals
|
||||
sprite: _CP14/Effects/fire.rsi
|
||||
normalState: full
|
||||
alternateState: full2
|
||||
fireStackAlternateState: 5
|
||||
- type: Physics
|
||||
bodyType: Static
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
fix1:
|
||||
shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.5,-0.5,0.5,0.5"
|
||||
layer:
|
||||
- SlipLayer
|
||||
mask:
|
||||
- ItemMask
|
||||
density: 1000
|
||||
hard: false
|
||||
- type: Lava
|
||||
fireStacks: 0.2
|
||||
- type: StepTrigger
|
||||
requiredTriggeredSpeed: 0
|
||||
intersectRatio: 0.1
|
||||
- type: AmbientSound
|
||||
enabled: true
|
||||
volume: -5
|
||||
range: 5
|
||||
sound:
|
||||
path: /Audio/Ambience/Objects/fireplace.ogg #TODO more aggressive sound
|
||||
- type: Appearance
|
||||
- type: Reactive
|
||||
groups:
|
||||
Flammable: [ Touch ]
|
||||
Extinguish: [ Touch ]
|
||||
- type: Flammable
|
||||
fireSpread: false #Lava comp kostыль
|
||||
canResistFire: false
|
||||
alwaysCombustible: true
|
||||
canExtinguish: true
|
||||
firestacksOnIgnite: 0.5
|
||||
damage:
|
||||
types:
|
||||
Heat: 0
|
||||
- type: CP14FlammableEntityHeater
|
||||
- type: CP14FlammableSolutionHeater
|
||||
- type: CP14Fireplace
|
||||
fuel: 15
|
||||
- type: CP14AutoIgnite
|
||||
- type: CP14FireSpread
|
||||
- type: CP14DespawnOnExtinguish
|
||||
@@ -33,6 +33,43 @@
|
||||
collection: FootstepWood
|
||||
heatCapacity: 10000
|
||||
weather: false
|
||||
burnedTile: CP14FloorWoodPlanksBurned
|
||||
|
||||
- type: tile
|
||||
editorHidden: false
|
||||
id: CP14FloorWoodPlanksBroken
|
||||
name: cp14-tiles-woodplanks-broken
|
||||
sprite: /Textures/_CP14/Tiles/woodplanks_broken.png
|
||||
variants: 4
|
||||
placementVariants:
|
||||
- 1.0
|
||||
- 1.0
|
||||
- 1.0
|
||||
- 1.0
|
||||
baseTurf: CP14FloorFoundation
|
||||
isSubfloor: false
|
||||
footstepSounds:
|
||||
collection: FootstepWood
|
||||
heatCapacity: 10000
|
||||
weather: false
|
||||
burnedTile: CP14FloorWoodPlanksBurned
|
||||
|
||||
- type: tile
|
||||
editorHidden: false
|
||||
id: CP14FloorWoodPlanksBurned
|
||||
name: cp14-tiles-woodplanks-burned
|
||||
sprite: /Textures/_CP14/Tiles/woodplanks_burned.png
|
||||
variants: 4
|
||||
placementVariants:
|
||||
- 1.0
|
||||
- 1.0
|
||||
- 1.0
|
||||
- 1.0
|
||||
baseTurf: CP14FloorFoundation
|
||||
isSubfloor: false
|
||||
footstepSounds:
|
||||
collection: FootstepWood
|
||||
heatCapacity: 10000
|
||||
|
||||
- type: tile
|
||||
editorHidden: false
|
||||
@@ -51,6 +88,44 @@
|
||||
collection: FootstepWood
|
||||
heatCapacity: 10000
|
||||
weather: false
|
||||
burnedTile: CP14FloorWoodPlanksBigBurned
|
||||
|
||||
- type: tile
|
||||
editorHidden: false
|
||||
id: CP14FloorWoodPlanksBigBroken
|
||||
name: cp14-tiles-woodplanks-big-broken
|
||||
sprite: /Textures/_CP14/Tiles/woodplanks_big_broken.png
|
||||
variants: 4
|
||||
placementVariants:
|
||||
- 1.0
|
||||
- 1.0
|
||||
- 1.0
|
||||
- 1.0
|
||||
baseTurf: CP14FloorFoundation
|
||||
isSubfloor: false
|
||||
footstepSounds:
|
||||
collection: FootstepWood
|
||||
heatCapacity: 10000
|
||||
weather: false
|
||||
burnedTile: CP14FloorWoodPlanksBigBurned
|
||||
|
||||
- type: tile
|
||||
editorHidden: false
|
||||
id: CP14FloorWoodPlanksBigBurned
|
||||
name: cp14-tiles-woodplanks-big-burned
|
||||
sprite: /Textures/_CP14/Tiles/woodplanks_big_burned.png
|
||||
variants: 4
|
||||
placementVariants:
|
||||
- 1.0
|
||||
- 1.0
|
||||
- 1.0
|
||||
- 1.0
|
||||
baseTurf: CP14FloorFoundation
|
||||
isSubfloor: false
|
||||
footstepSounds:
|
||||
collection: FootstepWood
|
||||
heatCapacity: 10000
|
||||
weather: false
|
||||
|
||||
- type: tile
|
||||
editorHidden: false
|
||||
|
||||
Reference in New Issue
Block a user