add torch

This commit is contained in:
Ed
2024-04-20 16:54:03 +03:00
parent f271c8cff0
commit 966a54fbc6
6 changed files with 109 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
# Decorations
ent-CP14Bonfire = костёр
.desc = Груда бревен, сложенных вместе, и готовых вспыхнуть от малейшей искры.
ent-CP14WallmountTorch = настенный факел
.desc = Хороший, надеждный источник света. Жаль, недолговечный.
# Doors
ent-CP14BaseWoodDoor = деревянная дверь

View File

@@ -0,0 +1,62 @@
- type: entity
id: CP14WallmountTorch
name: wallmount torch
description: A good, reliable light source. Too bad it doesn't last.
placement:
mode: SnapgridCenter
components:
- type: Transform
anchored: true
- type: Clickable
- type: InteractionOutline
- type: Sprite
noRot: true
sprite: _CP14/Structures/Decoration/wallmount_torch.rsi
offset: 0, 0.25
layers:
- state: base
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Wood
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 80
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTypeTrigger
damageType: Heat
damage: 50
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: CP14FlammableAmbientSound
- type: AmbientSound
enabled: false
volume: -5
range: 5
sound:
path: /Audio/Ambience/Objects/fireplace.ogg
- type: Appearance
- type: Reactive
groups:
Flammable: [ Touch ]
Extinguish: [ Touch ]
- type: Flammable
fireSpread: false
canResistFire: false
alwaysCombustible: true
canExtinguish: true
firestacksOnIgnite: 0.5
firestackFade: 0.3
firestackFadeOnIgnite: 0.3
firestackFadeFade: -0.2
damage:
types:
Heat: 0.01
- type: FireVisuals
sprite: _CP14/Structures/Decoration/wallmount_torch.rsi
normalState: fire

Binary file not shown.

After

Width:  |  Height:  |  Size: 1001 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 693 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@@ -0,0 +1,45 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Created by Agoichi for CrystallPunk14",
"size": {
"x": 32,
"y": 48
},
"states": [
{
"name": "base",
"directions": 4
},
{
"name": "fire",
"directions": 4,
"delays": [
[
0.3,
0.3,
0.3
],
[
0.3,
0.3,
0.3
],
[
0.3,
0.3,
0.3
],
[
0.3,
0.3,
0.3
]
]
},
{
"name": "burned",
"directions": 4
}
]
}