first windoor commit

This commit is contained in:
Kara Dinyes
2021-07-17 21:21:36 -07:00
parent 84616743e9
commit 74b61438c4
35 changed files with 46 additions and 1 deletions

View File

@@ -169,7 +169,7 @@ namespace Content.Server.Doors.Components
{ {
if (IsBolted()) if (IsBolted())
{ {
Owner.PopupMessage(eventArgs.User, Loc.GetString("airlock-component-cannot-pry-is-bolted-message ")); Owner.PopupMessage(eventArgs.User, Loc.GetString("airlock-component-cannot-pry-is-bolted-message"));
return false; return false;
} }
if (IsPowered()) if (IsPowered())

View File

@@ -0,0 +1,44 @@
- type: entity
id: Windoor
parent: BaseStructure
name: windoor
description: It's a window and a sliding door. Wow!
placement:
mode: SnapgridCenter
components:
- type: InteractionOutline
- type: Sprite
netsync: false
drawdepth: Mobs
sprite: Structures/Doors/windoor.rsi
state: left
- type: Physics
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.5, -0.5, -0.3, 0.5" # i don't understand why these bounds work but they do
mass: 100
mask:
- MobImpassable
layer:
- Opaque
- Impassable
- MobImpassable
- VaultImpassable
- SmallImpassable
- type: ApcPowerReceiver
- type: Damageable
resistances: glassResistances
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
ShardGlass:
min: 1
max: 2
- !type:DoActsBehavior
acts: [ "Destruction" ]

Binary file not shown.

After

Width:  |  Height:  |  Size: 843 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 907 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1 @@
{"name":1,"size":{"x":32,"y":32},"states":[{"name":"left_assembly2","directions":4,"delays":[[3,3],[3,3],[3,3],[3,3]]},{"name":"left_assembly1","directions":4},{"name":"left","directions":4},{"name":"left_closing","directions":4,"delays":[[2,1,1,1,1,1,2],[2,1,1,1,1,1,2],[2,1,1,1,1,1,2],[2,1,1,1,1,1,2]]},{"name":"left_open","directions":4},{"name":"left_opening","directions":4,"delays":[[2,1,1,1,1,1,2],[2,1,1,1,1,1,2],[2,1,1,1,1,1,2],[2,1,1,1,1,1,2]]},{"name":"left_deny","directions":4,"delays":[[1,2,1],[1,2,1],[1,2,1],[1,2,1]]},{"name":"left_spark","directions":4,"delays":[[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1]]},{"name":"right_assembly2","directions":4,"delays":[[3,3],[3,3],[3,3],[3,3]]},{"name":"right_assembly1","directions":4},{"name":"right","directions":4},{"name":"right_closing","directions":4,"delays":[[2,1,1,1,1,1,2],[2,1,1,1,1,1,2],[2,1,1,1,1,1,2],[2,1,1,1,1,1,2]]},{"name":"right_open","directions":4},{"name":"right_opening","directions":4,"delays":[[2,1,1,1,1,1,2],[2,1,1,1,1,1,2],[2,1,1,1,1,1,2],[2,1,1,1,1,1,2]]},{"name":"right_deny","directions":4,"delays":[[1,2,1],[1,2,1],[1,2,1],[1,2,1]]},{"name":"right_spark","directions":4,"delays":[[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1]]},{"name":"left_secure_assembly2","directions":4,"delays":[[3,3,3],[3,3,3],[3,3,3],[3,3,3]]},{"name":"left_secure_assembly1","directions":4},{"name":"left_secure","directions":4},{"name":"left_secure_closing","directions":4,"delays":[[2,1,1,1,1,1,2],[2,1,1,1,1,1,2],[2,1,1,1,1,1,2],[2,1,1,1,1,1,2]]},{"name":"left_secure_open","directions":4},{"name":"left_secure_opening","directions":4,"delays":[[2,1,1,1,1,1,2],[2,1,1,1,1,1,2],[2,1,1,1,1,1,2],[2,1,1,1,1,1,2]]},{"name":"leftsecure_deny","directions":4,"delays":[[1,1,1],[1,1,1],[1,1,1],[1,1,1]]},{"name":"left_secure_spark","directions":4,"delays":[[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1]]},{"name":"right_secure_assembly2","directions":4,"delays":[[3,3,3],[3,3,3],[3,3,3],[3,3,3]]},{"name":"right_secure_assembly1","directions":4},{"name":"right_secure","directions":4},{"name":"right_secure_closing","directions":4,"delays":[[2,1,1,1,1,1,2],[2,1,1,1,1,1,2],[2,1,1,1,1,1,2],[2,1,1,1,1,1,2]]},{"name":"right_secure_open","directions":4},{"name":"right_secure_opening","directions":4,"delays":[[2,1,1,1,1,1,2],[2,1,1,1,1,1,2],[2,1,1,1,1,1,2],[2,1,1,1,1,1,2]]},{"name":"right_secure_deny","directions":4,"delays":[[1,1,1],[1,1,1],[1,1,1],[1,1,1]]},{"name":"right_secure_spark","directions":4,"delays":[[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1]]}],"license":"CC BY-SA-3.0","copyright":"https://github.com/tgstation/tgstation/blob/3681006d7102045e334e8eddb23a8685fcdb258a/icons/obj/doors/windoor.dmi"}

Binary file not shown.

After

Width:  |  Height:  |  Size: 884 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 917 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB