Fix airlocks being opened by anything that bumps into them.

- Adds DoorBumpOpener component.
This commit is contained in:
Vera Aguilera Puerto
2021-10-01 13:47:38 +02:00
parent e3139ef41b
commit 883cbf40b2
8 changed files with 29 additions and 5 deletions

View File

@@ -41,7 +41,7 @@
damage:
types:
Blunt: 5
soundHit:
soundHit:
path: /Audio/Effects/hit_kick.ogg
- type: Hunger
damage:
@@ -209,10 +209,10 @@
CarbonDioxide: 0.00015190972
damage:
types:
Asphyxiation: 1
Asphyxiation: 1
damageRecovery:
types:
Asphyxiation: -1
Asphyxiation: -1
- type: Internals
- type: MobState
thresholds:
@@ -273,6 +273,7 @@
attributes:
proper: true
- type: StandingState
- type: DoorBumpOpener
- type: entity
save: false

View File

@@ -93,3 +93,4 @@
- type: Body
template: HumanoidTemplate
preset: SlimePreset
- type: DoorBumpOpener

View File

@@ -92,10 +92,10 @@
CarbonDioxide: 0.00015190972
damage:
types:
Asphyxiation: 1
Asphyxiation: 1
damageRecovery:
types:
Asphyxiation: -1
Asphyxiation: -1
# - type: Appearance
# visuals:
# - type: RotationVisualizer
@@ -114,3 +114,4 @@
categoriesFacialHair: VoxFacialHair
- type: Inventory
speciesId: vox
- type: DoorBumpOpener

View File

@@ -28,6 +28,7 @@
interfaces:
- key: enum.PDAUiKey.Key
type: PDABoundUserInterface
- type: DoorBumpOpener
- type: entity
parent: BasePDA

View File

@@ -14,6 +14,7 @@
HeldPrefix: default
- type: Access
- type: IdCard
- type: DoorBumpOpener
#IDs with layers