diff --git a/Resources/Prototypes/Entities/Structures/Walls/fence_wood.yml b/Resources/Prototypes/Entities/Structures/Walls/fence_wood.yml index 55b7e40803..2b8dce5f7f 100644 --- a/Resources/Prototypes/Entities/Structures/Walls/fence_wood.yml +++ b/Resources/Prototypes/Entities/Structures/Walls/fence_wood.yml @@ -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? diff --git a/Resources/Prototypes/_CP14/Entities/Structures/Walls/wooden_fence.yml b/Resources/Prototypes/_CP14/Entities/Structures/Walls/wooden_fence.yml new file mode 100644 index 0000000000..1dfd06fd4e --- /dev/null +++ b/Resources/Prototypes/_CP14/Entities/Structures/Walls/wooden_fence.yml @@ -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 \ No newline at end of file diff --git a/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/corner.png b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/corner.png new file mode 100644 index 0000000000..c99b520c4c Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/corner.png differ diff --git a/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/corner_small.png b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/corner_small.png new file mode 100644 index 0000000000..f4920580b8 Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/corner_small.png differ diff --git a/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/door_closed.png b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/door_closed.png new file mode 100644 index 0000000000..17242a8258 Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/door_closed.png differ diff --git a/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/door_closed_small.png b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/door_closed_small.png new file mode 100644 index 0000000000..6afe238fdf Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/door_closed_small.png differ diff --git a/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/door_opened.png b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/door_opened.png new file mode 100644 index 0000000000..a10a6e6ebc Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/door_opened.png differ diff --git a/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/door_opened_small.png b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/door_opened_small.png new file mode 100644 index 0000000000..7f2ea2eed2 Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/door_opened_small.png differ diff --git a/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/meta.json b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/meta.json new file mode 100644 index 0000000000..10eb349e66 --- /dev/null +++ b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/meta.json @@ -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 + } + ] +} diff --git a/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/straight.png b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/straight.png new file mode 100644 index 0000000000..58f5efbcfc Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/straight.png differ diff --git a/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/straight_small.png b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/straight_small.png new file mode 100644 index 0000000000..bf99bb4425 Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/straight_small.png differ diff --git a/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/tjunction.png b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/tjunction.png new file mode 100644 index 0000000000..89933b828a Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/tjunction.png differ diff --git a/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/tjunction_small.png b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/tjunction_small.png new file mode 100644 index 0000000000..38b7fb0a1b Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Walls/wooden_fence.rsi/tjunction_small.png differ