Directional windows (#5195)
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.49,-0.49,0.49,-0.2"
|
||||
bounds: "-0.49,-0.49,0.49,-0.3"
|
||||
mass: 50
|
||||
layer:
|
||||
- Impassable
|
||||
|
||||
@@ -40,3 +40,38 @@
|
||||
trackAllDamage: true
|
||||
damageOverlay:
|
||||
sprite: Structures/Windows/cracks.rsi
|
||||
|
||||
- type: entity
|
||||
id: PlasmaWindowDirectional
|
||||
parent: WindowDirectional
|
||||
name: directional plasma window
|
||||
description: Don't smudge up the glass down there.
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
snap:
|
||||
- Window
|
||||
components:
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
drawdepth: WallTops
|
||||
sprite: Structures/Windows/directional.rsi
|
||||
state: plasma_window
|
||||
- type: Icon
|
||||
sprite: Structures/Windows/directional.rsi
|
||||
state: plasma_window
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 200
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
collection: GlassBreak
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
ShardGlassPlasma:
|
||||
min: 1
|
||||
max: 2
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
|
||||
@@ -40,3 +40,38 @@
|
||||
trackAllDamage: true
|
||||
damageOverlay:
|
||||
sprite: Structures/Windows/cracks.rsi
|
||||
|
||||
- type: entity
|
||||
id: WindowReinforcedDirectional
|
||||
parent: WindowDirectional
|
||||
name: directional reinforced window
|
||||
description: Don't smudge up the glass down there.
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
snap:
|
||||
- Window
|
||||
components:
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
drawdepth: WallTops
|
||||
sprite: Structures/Windows/directional.rsi
|
||||
state: reinforced_window
|
||||
- type: Icon
|
||||
sprite: Structures/Windows/directional.rsi
|
||||
state: reinforced_window
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 150
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
collection: GlassBreak
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
ShardGlassReinforced:
|
||||
min: 1
|
||||
max: 2
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
|
||||
@@ -43,3 +43,41 @@
|
||||
trackAllDamage: true
|
||||
damageOverlay:
|
||||
sprite: Structures/Windows/cracks.rsi
|
||||
|
||||
- type: entity
|
||||
id: PlasmaReinforcedWindowDirectional
|
||||
parent: WindowDirectional
|
||||
name: directional reinforced plasma window
|
||||
description: Don't smudge up the glass down there.
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
snap:
|
||||
- Window
|
||||
components:
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
drawdepth: WallTops
|
||||
sprite: Structures/Windows/directional.rsi
|
||||
state: plasma_reinforced_window
|
||||
- type: Icon
|
||||
sprite: Structures/Windows/directional.rsi
|
||||
state: plasma_reinforced_window
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 600
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
collection: GlassBreak
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
ShardGlassPlasma:
|
||||
min: 1
|
||||
max: 2
|
||||
PartRodMetal:
|
||||
min: 1
|
||||
max: 2
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
|
||||
@@ -65,3 +65,100 @@
|
||||
trackAllDamage: true
|
||||
damageOverlay:
|
||||
sprite: Structures/Windows/cracks.rsi
|
||||
|
||||
- type: entity
|
||||
id: WindowDirectional
|
||||
parent: BaseStructure
|
||||
name: directional window
|
||||
description: Don't smudge up the glass down there.
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
snap:
|
||||
- Window
|
||||
components:
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
drawdepth: WallTops
|
||||
sprite: Structures/Windows/directional.rsi
|
||||
state: window
|
||||
- type: Icon
|
||||
sprite: Structures/Windows/directional.rsi
|
||||
state: window
|
||||
- type: Physics
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.49,-0.49,0.49,-0.3"
|
||||
mass: 50
|
||||
layer:
|
||||
- Impassable
|
||||
- MobImpassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
mask:
|
||||
- VaultImpassable
|
||||
- type: Repairable
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Glass
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 50
|
||||
behaviors:
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
collection: GlassBreak
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
ShardGlass:
|
||||
min: 1
|
||||
max: 2
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Airtight
|
||||
noAirWhenFullyAirBlocked: false
|
||||
airBlockedDirection:
|
||||
- South
|
||||
- type: Window
|
||||
|
||||
- type: entity
|
||||
id: WindowTintedDirectional
|
||||
parent: WindowDirectional
|
||||
name: directional tinted window
|
||||
description: Don't smudge up the glass down there.
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
snap:
|
||||
- Window
|
||||
components:
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
drawdepth: WallTops
|
||||
sprite: Structures/Windows/directional.rsi
|
||||
state: tinted_window
|
||||
- type: Icon
|
||||
sprite: Structures/Windows/directional.rsi
|
||||
state: tinted_window
|
||||
- type: Occluder
|
||||
boundingBox: "-0.5,-0.5,0.5,-0.3"
|
||||
|
||||
- type: entity
|
||||
id: WindowFrostedDirectional
|
||||
parent: WindowDirectional
|
||||
name: directional frosted window
|
||||
description: Don't smudge up the glass down there.
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
snap:
|
||||
- Window
|
||||
components:
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
drawdepth: WallTops
|
||||
sprite: Structures/Windows/directional.rsi
|
||||
state: frosted_window
|
||||
- type: Icon
|
||||
sprite: Structures/Windows/directional.rsi
|
||||
state: frosted_window
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "tgstation at ff1c30ac123dd28c6b5fee11e7f03654f5daa731, plasma windows from paradise at 44c12c6d9d0e42a9d3a582dff7e9a8d72b6ea68a",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"name": "window",
|
||||
"directions": 8
|
||||
},
|
||||
{
|
||||
"name": "reinforced_window",
|
||||
"directions": 8
|
||||
},
|
||||
{
|
||||
"name": "tinted_window",
|
||||
"directions": 8
|
||||
},
|
||||
{
|
||||
"name": "frosted_window",
|
||||
"directions": 8
|
||||
},
|
||||
{
|
||||
"name": "plasma_window",
|
||||
"directions": 8
|
||||
},
|
||||
{
|
||||
"name": "plasma_reinforced_window",
|
||||
"directions": 8
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
BIN
Resources/Textures/Structures/Windows/directional.rsi/window.png
Normal file
BIN
Resources/Textures/Structures/Windows/directional.rsi/window.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
Reference in New Issue
Block a user