added Kocherga fences

This commit is contained in:
Ed
2024-05-03 21:33:24 +03:00
parent dd84d48fed
commit acd8f93b36
13 changed files with 396 additions and 0 deletions

View File

@@ -77,6 +77,7 @@
#High
- type: entity
parent: BaseFenceWood
noSpawn: true
id: FenceWoodHighStraight
suffix: Straight
components:
@@ -104,6 +105,7 @@
- type: entity
parent: BaseFenceWood
noSpawn: true
id: FenceWoodHighEnd
suffix: End
components:
@@ -131,6 +133,7 @@
- type: entity
parent: BaseFenceWood
noSpawn: true
id: FenceWoodHighCorner
suffix: Corner
components:
@@ -167,6 +170,7 @@
- type: entity
parent: BaseFenceWood
noSpawn: true
id: FenceWoodHighTJunction
suffix: T-Junction
components:
@@ -203,6 +207,7 @@
- type: entity
parent: BaseFenceWood
noSpawn: true
id: FenceWoodHighGate
name: wooden fence gate
description: Do you have any idea what awaits you behind these gates? It can be either a toilet or a luxurious mansion. But you continue to love your emo boys.
@@ -250,6 +255,7 @@
#Small
- type: entity
parent: BaseFenceWoodSmall
noSpawn: true
id: FenceWoodSmallStraight
suffix: Straight
components:
@@ -277,6 +283,7 @@
- type: entity
parent: BaseFenceWoodSmall
noSpawn: true
id: FenceWoodSmallEnd
suffix: End
components:
@@ -304,6 +311,7 @@
- type: entity
parent: BaseFenceWoodSmall
noSpawn: true
id: FenceWoodSmallCorner
suffix: Corner
components:
@@ -340,6 +348,7 @@
- type: entity
parent: BaseFenceWoodSmall
noSpawn: true
id: FenceWoodSmallTJunction
suffix: T-Junction
components:
@@ -376,6 +385,7 @@
- type: entity
parent: BaseFenceWoodSmall
noSpawn: true
id: FenceWoodSmallGate
name: wooden fence gate
description: Looking at this gate, a familiar image pops up in your head. Where's my piggy?

View File

@@ -0,0 +1,335 @@
- type: entity
parent: BaseStructure
id: CP14BaseFenceWood
name: wooden fence
description: Wooden piece of fencing. I hope there is babushka's garden behind it.
abstract: true
components:
- type: MeleeSound
soundGroups:
Brute:
path:
"/Audio/Weapons/boxingpunch1.ogg"
- type: Sprite
sprite: _CP14/Structures/Walls/wooden_fence.rsi
drawdepth: Mobs
- type: Physics
bodyType: Static
- type: Transform
anchored: true
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Wood
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 125
behaviors:
- !type:PlaySoundBehavior
sound:
collection: WoodDestroy
- !type:SpawnEntitiesBehavior
spawn:
MaterialWoodPlank:
min: 1
max: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Climbable
delay: 5.0
- type: Appearance
- type: entity
parent: CP14BaseFenceWood
id: CP14BaseFenceWoodSmall
name: small wooden fence
description: Wooden piece of small fence. The best protection for the fencing of a private territory!
abstract: true
components:
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 75
behaviors:
- !type:PlaySoundBehavior
sound:
collection: WoodDestroy
- !type:SpawnEntitiesBehavior
spawn:
MaterialWoodPlank:
min: 0
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Climbable
delay: 2.5
# High
- type: entity
parent: CP14BaseFenceWood
id: CP14FenceWoodHighStraight
suffix: Straight
components:
- type: Icon
sprite: _CP14/Structures/Walls/wooden_fence.rsi
state: straight
- type: Sprite
layers:
- state: straight
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.10,-0.5,0.10,0.5"
density: 1000
mask:
- FullTileMask
layer:
- MidImpassable
- LowImpassable
- type: entity
parent: CP14BaseFenceWood
id: CP14FenceWoodHighCorner
suffix: Corner
components:
- type: Icon
sprite: _CP14/Structures/Walls/wooden_fence.rsi
state: corner
- type: Sprite
layers:
- state: corner
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.1,-0.1,0.1,0.5"
density: 1000
mask:
- TableMask
layer:
- TableLayer
fix2:
shape:
!type:PhysShapeAabb
bounds: "-0.5,-0.1,-0.1,0.1"
density: 1000
mask:
- TableMask
layer:
- MidImpassable
- LowImpassable
- type: entity
parent: CP14BaseFenceWood
id: CP14FenceWoodHighTJunction
suffix: T-Junction
components:
- type: Icon
sprite: _CP14/Structures/Walls/wooden_fence.rsi
state: tjunction
- type: Sprite
layers:
- state: tjunction
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.10,-0.5,0.10,0.5"
density: 1000
mask:
- TableMask
layer:
- TableLayer
fix2:
shape:
!type:PhysShapeAabb
bounds: "-0.5,-0.1,-0.1,0.1"
density: 1000
mask:
- TableMask
layer:
- MidImpassable
- LowImpassable
- type: entity
parent: CP14BaseFenceWood
id: CP14FenceWoodHighGate
name: wooden fence gate
description: Do you have any idea what awaits you behind these gates? It can be either a toilet or a luxurious mansion. But you continue to love your emo boys.
components:
- type: Sprite
layers:
- state: end
map: ["enum.DoorVisualLayers.Base"]
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.5,-0.1,0.5,0.1"
density: 1000
mask:
- FullTileMask
layer:
- MidImpassable
- LowImpassable
- type: InteractionOutline
- type: Door
openSpriteState: door_opened
closedSpriteState: door_closed
canPry: false
occludes: false
changeAirtight: false
bumpOpen: false
clickOpen: true
canCrush: false
closeTimeOne: 0
closeTimeTwo: 0
openTimeOne: 0
openTimeTwo: 0
openingAnimationTime: 0
closingAnimationTime: 0
openSound:
path: /Audio/Effects/door_open.ogg
closeSound:
path: /Audio/Effects/door_close.ogg
#Small
- type: entity
parent: CP14BaseFenceWoodSmall
id: CP14FenceWoodSmallStraight
suffix: Straight
components:
- type: Icon
sprite: _CP14/Structures/Walls/wooden_fence.rsi
state: straight_small
- type: Sprite
layers:
- state: straight_small
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.10,-0.5,0.10,0.5"
density: 1000
mask:
- FullTileMask
layer:
- MidImpassable
- LowImpassable
- type: entity
parent: CP14BaseFenceWoodSmall
id: CP14FenceWoodSmallCorner
suffix: Corner
components:
- type: Icon
sprite: _CP14/Structures/Walls/wooden_fence.rsi
state: corner_small
- type: Sprite
layers:
- state: corner_small
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.1,-0.1,0.1,0.5"
density: 1000
mask:
- TableMask
layer:
- TableLayer
fix2:
shape:
!type:PhysShapeAabb
bounds: "-0.5,-0.1,-0.1,0.1"
density: 1000
mask:
- TableMask
layer:
- MidImpassable
- LowImpassable
- type: entity
parent: CP14BaseFenceWoodSmall
id: CP14FenceWoodSmallTJunction
suffix: T-Junction
components:
- type: Icon
sprite: _CP14/Structures/Walls/wooden_fence.rsi
state: tjunction_small
- type: Sprite
layers:
- state: tjunction_small
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.10,-0.5,0.10,0.5"
density: 1000
mask:
- TableMask
layer:
- TableLayer
fix2:
shape:
!type:PhysShapeAabb
bounds: "-0.5,-0.1,-0.1,0.1"
density: 1000
mask:
- TableMask
layer:
- MidImpassable
- LowImpassable
- type: entity
parent: CP14BaseFenceWoodSmall
id: CP14FenceWoodSmallGate
name: wooden fence gate
description: Looking at this gate, a familiar image pops up in your head. Where's my piggy?
components:
- type: Sprite
layers:
- state: end_small
map: ["enum.DoorVisualLayers.Base"]
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.5,-0.1,0.5,0.1"
density: 1000
mask:
- FullTileMask
layer:
- MidImpassable
- LowImpassable
- type: InteractionOutline
- type: Door
openSpriteState: door_opened_small
closedSpriteState: door_closed_small
canPry: false
occludes: false
changeAirtight: false
bumpOpen: false
clickOpen: true
canCrush: false
closeTimeOne: 0
closeTimeTwo: 0
openTimeOne: 0
openTimeTwo: 0
openingAnimationTime: 0
closingAnimationTime: 0
openSound:
path: /Audio/Effects/door_open.ogg
closeSound:
path: /Audio/Effects/door_close.ogg

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 957 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1,51 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "by Ko4erga (discord), edited and recolored by TheShuEd",
"size": {
"x": 32,
"y": 64
},
"states": [
{
"name": "straight",
"directions": 4
},
{
"name": "corner",
"directions": 4
},
{
"name": "door_closed",
"directions": 4
},
{
"name": "door_opened",
"directions": 4
},
{
"name": "tjunction",
"directions": 4
},
{
"name": "straight_small",
"directions": 4
},
{
"name": "corner_small",
"directions": 4
},
{
"name": "door_closed_small",
"directions": 4
},
{
"name": "door_opened_small",
"directions": 4
},
{
"name": "tjunction_small",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 961 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 918 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB