forked from space-wizards/space-station-14
-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1613 from Darkmajia/bonfire-update
bonfire building, lighting, and extinguishing
- Loading branch information
Showing
8 changed files
with
165 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 88 additions & 14 deletions
102
Resources/Prototypes/Entities/Structures/Decoration/bonfire.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,119 @@ | ||
# imp edit - base bonfire so legionnaire bonfire and other static bonfires can parent off this | ||
- type: entity | ||
id: Bonfire | ||
id: BonfireBase | ||
parent: BaseStructure | ||
name: bonfire | ||
description: What can be better than a late evening under the sky with guitar and friends? | ||
abstract: true | ||
components: | ||
- type: Sprite | ||
noRot: true | ||
sprite: Structures/Decoration/bonfire.rsi | ||
layers: | ||
- state: bonfire | ||
- state: burning | ||
- type: PointLight | ||
radius: 5 | ||
energy: 3 | ||
color: "#FFC90C" | ||
- state: bonfire | ||
- state: burning | ||
- type: Damageable | ||
damageContainer: StructuralInorganic | ||
damageModifierSet: Wood | ||
- type: Destructible | ||
thresholds: | ||
- trigger: | ||
!type:DamageTrigger | ||
damage: 50 | ||
behaviors: | ||
- !type:DoActsBehavior | ||
acts: [ "Destruction" ] | ||
- type: AmbientSound | ||
volume: -5 | ||
range: 5 | ||
sound: | ||
path: /Audio/Ambience/Objects/fireplace.ogg | ||
|
||
# imp edit - most of these components are new, with old ones rolled into BaseBonfire. and yet, we are still in an upstream file | ||
- type: entity | ||
id: Bonfire | ||
parent: BonfireBase | ||
name: bonfire | ||
description: What can be better than a late evening under the sky with guitar and friends? | ||
components: | ||
- type: Sprite | ||
layers: | ||
- state: bonfire | ||
- type: Appearance | ||
- type: Fixtures | ||
fixtures: | ||
fix1: | ||
shape: | ||
!type:PhysShapeCircle | ||
radius: 0.35 | ||
density: 130 | ||
mask: | ||
- MachineMask | ||
layer: | ||
- MidImpassable | ||
- LowImpassable | ||
- type: Destructible | ||
thresholds: | ||
- trigger: | ||
!type:DamageTrigger | ||
damage: 100 | ||
behaviors: | ||
- !type:DoActsBehavior | ||
acts: [ "Destruction" ] | ||
- trigger: | ||
!type:DamageTrigger | ||
damage: 50 | ||
behaviors: | ||
- !type:DoActsBehavior | ||
acts: [ "Destruction" ] | ||
- type: AmbientSound | ||
volume: -5 | ||
range: 5 | ||
sound: | ||
path: /Audio/Ambience/Objects/fireplace.ogg | ||
- type: AlwaysHot | ||
- !type:PlaySoundBehavior | ||
sound: | ||
collection: WoodDestroy | ||
- !type:SpawnEntitiesBehavior | ||
spawn: | ||
MaterialWoodPlank1: | ||
min: 6 | ||
max: 10 | ||
- type: Reactive | ||
groups: | ||
Flammable: [ Touch ] | ||
Extinguish: [ Touch ] | ||
- type: Climbable | ||
- type: Flammable | ||
damage: | ||
types: | ||
Heat: 0 # adding any damage would make it break loudly into pieces, which feels weird | ||
flammableCollisionShape: | ||
!type:PhysShapeCircle | ||
radius: 0.25 | ||
maximumFireStacks: 6 | ||
fireSpread: true | ||
alwaysCombustible: true | ||
firestacksOnIgnite: 2 | ||
firestackFade: 0.05 # gets hotter the longer it's on | ||
toggleAmbientSound: true | ||
- type: FireVisuals | ||
sprite: Structures/Decoration/bonfire.rsi | ||
normalState: burning | ||
maxLightRadius: 8 | ||
maxLightEnergy: 5 | ||
- type: Construction | ||
graph: Bonfire | ||
node: bonfire | ||
|
||
- type: entity | ||
id: LegionnaireBonfire | ||
parent: Bonfire | ||
parent: BonfireBase | ||
name: legionnaire bonfire | ||
description: There, in the land of lava and ash, place to to cook marshmallow and potato. | ||
components: | ||
- type: Sprite | ||
layers: | ||
- state: legionnaire_bonfire | ||
# imp edits | ||
- type: PointLight | ||
radius: 5 | ||
energy: 3 | ||
color: "#FF5601" | ||
- type: AlwaysHot | ||
# end imp edits |
25 changes: 25 additions & 0 deletions
25
Resources/Prototypes/_Impstation/Recipes/Construction/Graphs/structures/bonfire.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
- type: constructionGraph | ||
id: Bonfire | ||
start: start | ||
graph: | ||
- node: start | ||
edges: | ||
- to: bonfire | ||
steps: | ||
- material: WoodPlank | ||
amount: 10 | ||
doAfter: 6 | ||
- node: bonfire | ||
entity: Bonfire | ||
actions: | ||
- !type:SnapToGrid {} | ||
edges: | ||
- to: start | ||
completed: | ||
- !type:SpawnPrototype | ||
prototype: MaterialWoodPlank1 | ||
amount: 10 | ||
- !type:DeleteEntity {} | ||
steps: | ||
- tool: Prying | ||
doAfter: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+3.49 KB
(450%)
Resources/Textures/Structures/Decoration/bonfire.rsi/bonfire_extinguished.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.27 KB
(260%)
Resources/Textures/Structures/Decoration/bonfire.rsi/burning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters