From: Lei Yunxing Date: Mon, 3 Apr 2023 06:20:15 +0000 (+0800) Subject: Adds holobarrier projector to warden and HOS lockers (#15091) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=edef526a37b447a87d6454703e24d2da7def34d0;p=space-station-14.git Adds holobarrier projector to warden and HOS lockers (#15091) * adds holobarrier projector and adds it to warden&hos locker * a --- diff --git a/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml b/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml index e711f1b3a6..1c90a21593 100644 --- a/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml +++ b/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml @@ -209,3 +209,4 @@ - id: SecurityTechFabCircuitboard - id: JetpackSecurityFilled - id: BoxEncryptionKeySecurity + - id: HoloprojectorSecurity diff --git a/Resources/Prototypes/Catalog/Fills/Lockers/security.yml b/Resources/Prototypes/Catalog/Fills/Lockers/security.yml index 144f6119a7..65f2427cb7 100644 --- a/Resources/Prototypes/Catalog/Fills/Lockers/security.yml +++ b/Resources/Prototypes/Catalog/Fills/Lockers/security.yml @@ -21,6 +21,7 @@ - id: RubberStampWarden - id: DoorRemoteArmory - id: ClothingOuterHardsuitWarden + - id: HoloprojectorSecurity - type: entity id: LockerSecurityFilled diff --git a/Resources/Prototypes/Entities/Objects/Devices/holoprojectors.yml b/Resources/Prototypes/Entities/Objects/Devices/holoprojectors.yml index b1005afbc0..fa2b13638c 100644 --- a/Resources/Prototypes/Entities/Objects/Devices/holoprojectors.yml +++ b/Resources/Prototypes/Entities/Objects/Devices/holoprojectors.yml @@ -44,3 +44,23 @@ - HolofanProjector - type: StaticPrice price: 80 + + +- type: entity + parent: Holoprojector + id: HoloprojectorSecurity + name: holobarrier projector + description: Creates a solid but fragile holographic barrier. + components: + - type: HolosignProjector + signProto: HolosignSecurity + chargeUse: 120 + - type: Sprite + sprite: Objects/Devices/Holoprojectors/security.rsi + state: icon + netsync: false + - type: Tag + tags: + - HolofanProjector + - type: StaticPrice + price: 80 diff --git a/Resources/Prototypes/Entities/Structures/Holographic/projections.yml b/Resources/Prototypes/Entities/Structures/Holographic/projections.yml index b633484c19..2d07cac1b6 100644 --- a/Resources/Prototypes/Entities/Structures/Holographic/projections.yml +++ b/Resources/Prototypes/Entities/Structures/Holographic/projections.yml @@ -36,3 +36,41 @@ lifetime: 180 - type: Airtight noAirWhenFullyAirBlocked: false + +- type: entity + id: HolosignSecurity + parent: HolosignWetFloor + name: holographic barrier + description: A barrier of hard light that blocks movenment, but pretty weak. + components: + - type: Physics + bodyType: Static + canCollide: true + - type: Sprite + sprite: Structures/Holo/security.rsi + state: icon + netsync: false + - type: Fixtures + fixtures: + - shape: + !type:PhysShapeAabb + bounds: "-0.3,-0.3,0.3,0.3" + mask: + - TableMask + layer: + - TableLayer + - type: Damageable + damageContainer: Inorganic + damageModifierSet: Metallic + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 30 + - type: TimedDespawn + lifetime: 60 + - type: PointLight + enabled: true + radius: 3 + color: red + - type: Climbable diff --git a/Resources/Textures/Objects/Devices/Holoprojectors/security.rsi/icon.png b/Resources/Textures/Objects/Devices/Holoprojectors/security.rsi/icon.png new file mode 100644 index 0000000000..857d7799fd Binary files /dev/null and b/Resources/Textures/Objects/Devices/Holoprojectors/security.rsi/icon.png differ diff --git a/Resources/Textures/Objects/Devices/Holoprojectors/security.rsi/meta.json b/Resources/Textures/Objects/Devices/Holoprojectors/security.rsi/meta.json new file mode 100644 index 0000000000..c5d03f56bb --- /dev/null +++ b/Resources/Textures/Objects/Devices/Holoprojectors/security.rsi/meta.json @@ -0,0 +1,22 @@ +{ + "version": 1, + "size": { + "x": 32, + "y": 32 + }, + "license": "CC-BY-SA-3.0", + "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/f4017da82ae4de7bfaf8ebdbba33d0de81c15587", + "states": [ + { + "name": "icon", + "delays": [ + [ + 0.3, + 0.3, + 0.3, + 0.3 + ] + ] + } + ] +} \ No newline at end of file diff --git a/Resources/Textures/Structures/Holo/security.rsi/icon.png b/Resources/Textures/Structures/Holo/security.rsi/icon.png new file mode 100644 index 0000000000..6b45e90cd7 Binary files /dev/null and b/Resources/Textures/Structures/Holo/security.rsi/icon.png differ diff --git a/Resources/Textures/Structures/Holo/security.rsi/meta.json b/Resources/Textures/Structures/Holo/security.rsi/meta.json new file mode 100644 index 0000000000..4a964bda9e --- /dev/null +++ b/Resources/Textures/Structures/Holo/security.rsi/meta.json @@ -0,0 +1,22 @@ +{ + "version": 1, + "size": { + "x": 32, + "y": 32 + }, + "license": "CC-BY-SA-3.0", + "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/f4017da82ae4de7bfaf8ebdbba33d0de81c15587", + "states": [ + { + "name": "icon", + "delays": [ + [ + 0.3, + 0.3, + 0.3, + 0.3 + ] + ] + } + ] +} \ No newline at end of file