Add buildable plastic flaps (#6583)
Co-authored-by: fishfish458 <fishfish458>
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable #Bullets?!
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
@@ -72,7 +71,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable #Bullets?!
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
@@ -250,7 +248,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable #Bullets?!
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
@@ -298,7 +295,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
@@ -353,7 +349,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable #Bullets!?
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
@@ -462,7 +457,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
@@ -501,7 +495,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable #Bullets?!
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
@@ -618,7 +611,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable #Bullets?!
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
@@ -722,7 +714,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable #Bullets?!
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
@@ -765,7 +756,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable #Bullets?!
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
@@ -809,7 +799,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable #Bullets?!
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
@@ -849,7 +838,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable #Bullets?!
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
@@ -889,7 +877,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable #Bullets?!
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
@@ -934,7 +921,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable #Bullets?!
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable #Bullets?!
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
@@ -200,7 +199,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable #Bullets?!
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
@@ -322,7 +320,6 @@
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable #Bullets?!
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
mass: 150
|
||||
layer:
|
||||
- SmallImpassable
|
||||
mask:
|
||||
- VaultImpassable
|
||||
- type: Nuke
|
||||
diskSlot:
|
||||
name: Disk
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
mass: 5
|
||||
mask:
|
||||
- Impassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
restitution: 0.3 # fite me
|
||||
friction: 0.2
|
||||
- type: Sprite
|
||||
|
||||
@@ -9,6 +9,17 @@
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Metallic
|
||||
- type: PlaceableSurface
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.45,-0.45,0.45,0.45"
|
||||
mass: 50
|
||||
layer:
|
||||
- VaultImpassable
|
||||
mask:
|
||||
- Impassable
|
||||
- SmallImpassable
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
- type: Icon
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
mass: 50
|
||||
mask:
|
||||
- Impassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Metallic
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
radius: 0.2
|
||||
mask:
|
||||
- Impassable
|
||||
- SmallImpassable
|
||||
- VaultImpassable
|
||||
mass: 10
|
||||
- type: Sprite
|
||||
sprite: Structures/Furniture/chairs.rsi
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
mass: 70
|
||||
mask:
|
||||
- Impassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
mass: 25
|
||||
mask:
|
||||
- Impassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
@@ -93,7 +92,6 @@
|
||||
mass: 25
|
||||
mask:
|
||||
- Impassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
|
||||
@@ -624,7 +624,6 @@
|
||||
mass: 75
|
||||
mask:
|
||||
- Impassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
mass: 100
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
bounds: "-0.45,-0.45,0.45,0.45"
|
||||
mass: 50
|
||||
layer:
|
||||
- SmallImpassable
|
||||
- VaultImpassable
|
||||
mask:
|
||||
- Impassable
|
||||
- type: Pullable
|
||||
|
||||
66
Resources/Prototypes/Entities/Structures/plastic_flaps.yml
Normal file
66
Resources/Prototypes/Entities/Structures/plastic_flaps.yml
Normal file
@@ -0,0 +1,66 @@
|
||||
- type: entity
|
||||
id: PlasticFlapsClear
|
||||
parent: BaseStructureDynamic
|
||||
name: plastic flaps
|
||||
suffix: Clear
|
||||
description: Heavy duty, plastic flaps. Definitely can't get past those. No way.
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
components:
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
sprite: Structures/plastic_flaps.rsi
|
||||
state: plasticflaps
|
||||
drawdepth: Mobs
|
||||
- type: Physics
|
||||
- type: Transform
|
||||
anchored: true
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.49,-0.49,0.49,0.49"
|
||||
mass: 100
|
||||
layer:
|
||||
- VaultImpassable
|
||||
mask:
|
||||
- Impassable
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Metallic
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 100
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- type: IconSmooth
|
||||
key: walls
|
||||
mode: NoSprite
|
||||
- type: Construction
|
||||
graph: PlasticFlapsGraph
|
||||
node: plasticFlaps
|
||||
|
||||
- type: entity
|
||||
id: PlasticFlapsOpaque
|
||||
parent: PlasticFlapsClear
|
||||
name: plastic flaps
|
||||
suffix: Opaque
|
||||
description: Heavy duty, plastic flaps. Definitely can't get past those. No way.
|
||||
components:
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.49,-0.49,0.49,0.49"
|
||||
mass: 100
|
||||
layer:
|
||||
- Opaque
|
||||
- VaultImpassable
|
||||
mask:
|
||||
- Impassable
|
||||
- type: Occluder
|
||||
sizeX: 32
|
||||
sizeY: 32
|
||||
@@ -0,0 +1,26 @@
|
||||
- type: constructionGraph
|
||||
id: PlasticFlapsGraph
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
actions:
|
||||
- !type:DestroyEntity {}
|
||||
edges:
|
||||
- to: plasticFlaps
|
||||
completed:
|
||||
- !type:SnapToGrid { }
|
||||
steps:
|
||||
- material: Plastic
|
||||
amount: 5
|
||||
doAfter: 10
|
||||
- node: plasticFlaps
|
||||
entity: PlasticFlapsClear
|
||||
edges:
|
||||
- to: start
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: SheetPlastic
|
||||
amount: 5
|
||||
steps:
|
||||
- tool: Anchoring
|
||||
doAfter: 10
|
||||
@@ -450,7 +450,7 @@
|
||||
conditions:
|
||||
# Same here. - 20kdc
|
||||
- !type:TileNotBlocked
|
||||
|
||||
|
||||
- type: construction
|
||||
name: ground light post
|
||||
id: LightGroundFixture
|
||||
@@ -672,5 +672,20 @@
|
||||
icon:
|
||||
sprite: Structures/Doors/MineralDoors/paper_door.rsi
|
||||
state: closed
|
||||
|
||||
- type: construction
|
||||
name: airtight plastic flaps
|
||||
id: PlasticFlapsClear
|
||||
graph: PlasticFlapsGraph
|
||||
startNode: start
|
||||
targetNode: plasticFlaps
|
||||
category: Structures
|
||||
placementMode: SnapgridCenter
|
||||
description: A plastic flap to let items through and keep people out.
|
||||
objectType: Structure
|
||||
canBuildInImpassable: false
|
||||
icon:
|
||||
sprite: Structures/plastic_flaps.rsi
|
||||
state: plasticflaps
|
||||
conditions:
|
||||
- !type:TileNotBlocked
|
||||
|
||||
Reference in New Issue
Block a user