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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@@ -0,0 +1,46 @@
{
"version": 1,
"size": {
"x": 32,
"y": 64
},
"license": "CC-BY-SA-4.0",
"copyright": "Created by omsoyk (Discord)",
"states": [
{
"name": "wall0",
"directions": 4
},
{
"name": "wall1",
"directions": 4
},
{
"name": "wall2",
"directions": 4
},
{
"name": "wall3",
"directions": 4
},
{
"name": "wall4",
"directions": 4
},
{
"name": "wall5",
"directions": 4
},
{
"name": "wall6",
"directions": 4
},
{
"name": "wall7",
"directions": 4
},
{
"name": "full"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB