leaf wall (#900)

This commit is contained in:
Ed
2025-02-14 23:14:27 +03:00
committed by GitHub
parent 6a3ea22543
commit 2c5daec98c
12 changed files with 134 additions and 1 deletions

View File

@@ -26,6 +26,7 @@
- CP14MagicEnergyContainer
itemIconStyle: BigAction
interactOnMiss: false
range: 60
sound: !type:SoundPathSpecifier
path: /Audio/Magic/rumble.ogg
icon:
@@ -33,7 +34,7 @@
state: counter_spell
event: !type:CP14DelayedEntityTargetActionEvent
cooldown: 10
castDelay: 0.75
castDelay: 0.25
breakOnMove: false
- type: entity

View File

@@ -96,6 +96,92 @@
graph: CP14WallDirt
node: WallDirt
- type: entity
id: CP14WallLeaf
parent:
- CP14BaseFlammableSpreading
- CP14BaseWall
name: leaf wall
description: Dense, marginal bushes. You can climb through them, but watch out for thorny branches!
components:
- type: Sprite
sprite: _CP14/Structures/Walls/Natural/leaf.rsi
- type: Icon
sprite: _CP14/Structures/Walls/Natural/leaf.rsi
- type: IconSmooth
key: CP14wallLeaf
base: wall
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Wood
- type: MeleeSound
soundGroups:
Brute:
collection: CP14GrassGathering
params:
variation: 0.05
- type: Fixtures
fixtures:
fix1:
hard: false
shape:
!type:PhysShapeAabb
bounds: "-0.45,-0.45,0.45,0.45"
density: 1000
mask:
- FullTileMask
layer:
- WallLayer
fix2: #For melee or laser
hard: true
shape:
!type:PhysShapeAabb
bounds: "-0.35,-0.35,0.35,0.35"
mask:
- FullTileMask
layer:
- Opaque
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:PlaySoundBehavior
sound:
collection: CP14GrassGathering
params:
volume: 5
variation: 0.05
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior
spawn:
CP14FloraMaterial1:
min: 1
max: 3
- type: SpeedModifierContacts
walkSpeedModifier: 0.25
sprintSpeedModifier: 0.25
- type: EmitSoundOnTrigger
sound:
params:
volume: -8
collection: CP14GrassGathering
- type: TriggerOnCollide
fixtureID: fix1
- type: DamageContacts
damage:
types:
Slash: 0.2
Piercing: 0.2
- type: entity
id: CP14WallSnow
name: snow wall