Skip to content

Commit

Permalink
Plastitanium Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir001 committed Apr 12, 2024
1 parent f47b6ac commit cdb20b3
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 55 deletions.
87 changes: 42 additions & 45 deletions Resources/Prototypes/Entities/Structures/Windows/plastitanium.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,58 @@
- type: entity
id: PlastitaniumWindow
name: plastitanium window
parent: PlastitaniumWindowIndestructible # Frontier - Change to ReinforcedWindow
suffix: "" # Frontier
parent: Window
components:
# - type: Sprite
# drawdepth: WallTops
# sprite: Structures/Windows/plastitanium_window.rsi
# - type: Icon
# sprite: Structures/Windows/plastitanium_window.rsi
- type: Sprite
drawdepth: WallTops
sprite: Structures/Windows/plastitanium_window.rsi
- type: Icon
sprite: Structures/Windows/plastitanium_window.rsi
- type: Repairable
fuelCost: 15
doAfterDelay: 3
- type: Damageable
damageContainer: Inorganic
damageContainer: StructuralInorganic
damageModifierSet: RGlass
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 2000
behaviors: #excess damage, don't spawn entities.
damage: 1000
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 1000
damage: 500
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
collection: WindowShatter
- !type:SpawnEntitiesBehavior
spawn:
ShardGlassReinforced:
min: 1
max: 2
PartRodMetal:
min: 1
max: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]
# - type: IconSmooth
# base: plwindow
# - type: Appearance
- type: IconSmooth
base: ptwindow
- type: Appearance
- type: DamageVisuals
thresholds: [ 4, 8, 12 ]
damageDivisor: 36
thresholds: [4, 8, 12]
damageDivisor: 28
trackAllDamage: true
damageOverlay:
sprite: Structures/Windows/cracks.rsi
# - type: StaticPrice
# price: 65
# - type: StaticPrice
# price: 100
- type: Construction # Frontier
graph: Plastitanium
node: plastitaniumWindow
- type: Repairable
- type: ExaminableDamage
messages: WindowMessages
- type: MeleeSound
soundGroups:
Brute:
collection: MetalGlassBreak


- type: entity
parent: ShuttleWindow
Expand All @@ -78,23 +75,23 @@
sprite: Structures/Windows/plastitanium_window_diagonal.rsi
state: state0
- type: Fixtures
fixtures:
fix1:
shape:
!type:PolygonShape
vertices:
- "-0.5,-0.5"
- "0.5,0.5"
- "0.5,-0.5"
mask:
- FullTileMask
layer:
- GlassLayer
fixtures:
fix1:
shape:
!type:PolygonShape
vertices:
- "-0.5,-0.5"
- "0.5,0.5"
- "0.5,-0.5"
mask:
- FullTileMask
layer:
- GlassLayer
- type: Airtight
noAirWhenFullyAirBlocked: false
airBlockedDirection:
- South
- East
noAirWhenFullyAirBlocked: false
airBlockedDirection:
- South
- East
- type: DamageVisuals
damageOverlay:
sprite: Structures/Windows/cracks_diagonal.rsi
damageOverlay:
sprite: Structures/Windows/cracks_diagonal.rsi
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,22 @@
snap:
- Window
components:
- type: WallMount
arc: 360 # interact despite grilles
- type: Tag
tags:
- ForceFixRotations
- Window
- type: Sprite
drawdepth: WallTops
sprite: Structures/Windows/plastitanium_window.rsi
- type: Icon
sprite: Structures/Windows/plastitanium_window.rsi
state: full
- type: MeleeSound
soundGroups:
Brute:
collection: GlassSmack
- type: WallMount
arc: 360 # interact despite grilles
- type: Tag
tags:
- ForceFixRotations
- Window
- type: Physics
bodyType: Static
- type: Fixtures
Expand All @@ -33,13 +37,14 @@
- GlassLayer
- type: Airtight
- type: IconSmooth
key: walls
base: plwindow
key: windows
base: ptwindow
- type: InteractionPopup
interactSuccessString: comp-window-knock
messagePerceivedByOthers: comp-window-knock
interactSuccessSound:
path: /Audio/Effects/glass_knock.ogg
- type: Appearance
- type: StaticPrice
price: 65
# - type: StaticPrice
# price: 100
- type: BlockWeather

0 comments on commit cdb20b3

Please sign in to comment.