smartfridge semi functional (#22443)

* smartfridge

* leftovers from when it was powered

* real
This commit is contained in:
Emisse
2023-12-13 01:19:40 -07:00
committed by GitHub
parent ad6dc94c60
commit 6419f3d5d9
18 changed files with 124 additions and 97 deletions

View File

@@ -0,0 +1,94 @@
- type: entity
parent: BaseStructureDynamic
id: SmartFridge
name: SmartFridge
description: A refrigerated storage unit for keeping items cold and fresh.
components:
- type: Advertise
pack: SmartFridgeAds
- type: Speech
- type: Appearance
- type: Sprite
sprite: Structures/Machines/smartfridge.rsi
snapCardinals: true
layers:
- state: smartfridge
map: ["enum.StorageVisualLayers.Base"]
- state: smartfridge_door
map: ["enum.StorageVisualLayers.Door"]
shader: unshaded
- type: EntityStorageVisuals
stateBaseClosed: smartfridge
stateDoorOpen: smartfridge_open
stateDoorClosed: smartfridge_door
- type: PointLight
radius: 1.5
energy: 1.6
color: "#9dc5c9"
- type: EntityStorage
isCollidableWhenOpen: true
closeSound:
path: /Audio/Machines/windoor_open.ogg
params:
volume: -3
openSound:
path: /Audio/Machines/windoor_open.ogg
params:
volume: -3
- type: ContainerContainer
containers:
entity_storage: !type:Container
- type: UseDelay
delay: 1
- type: AntiRottingContainer
- type: ResistLocker
- type: Physics
bodyType: Static
- type: Transform
noRot: true
anchored: True
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.45,-0.45,0.45,0.45"
mask:
- MachineMask
layer:
- MachineLayer
density: 200
- type: Anchorable
delay: 2
- type: InteractionOutline
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Breakage"]
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: DamageOnHighSpeedImpact
damage:
types:
Blunt: 5
soundHit:
path: /Audio/Effects/bang.ogg

View File

@@ -891,37 +891,6 @@
- type: AccessReader
access: [["Hydroponics"]]
- type: entity
parent: VendingMachine
id: VendingMachineSmartFridge
name: SmartFridge
description: A refrigerated storage unit for keeping items cold and fresh.
components:
- type: VendingMachine
pack: SmartFridgeInventory
offState: off
brokenState: broken
normalState: normal-unshaded
denyState: deny-unshaded
loopDeny: false
- type: Advertise
pack: SmartFridgeAds
- type: Speech
- type: Sprite
sprite: Structures/Machines/VendingMachines/smartfridge.rsi
layers:
- state: off
map: ["enum.VendingMachineVisualLayers.Base"]
- state: off
map: ["enum.VendingMachineVisualLayers.BaseUnshaded"]
shader: unshaded
- state: panel
map: ["enum.WiresVisualLayers.MaintenancePanel"]
- type: PointLight
radius: 1.5
energy: 1.6
color: "#9dc5c9"
- type: entity
parent: VendingMachine
id: VendingMachineSnack
@@ -2034,4 +2003,4 @@
ejectDelay: 2
- type: AccessReader
access: [["SyndicateAgent"]]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 556 B

View File

@@ -1,65 +0,0 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/1516a728931b4985c1e86f0c5995a5aa1554a1ad and modified by Swept",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "fill-0"
},
{
"name": "fill-1"
},
{
"name": "fill-2"
},
{
"name": "fill-3"
},
{
"name": "broken"
},
{
"name": "deny-unshaded",
"delays": [
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
]
]
},
{
"name": "normal-unshaded",
"delays": [
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
]
]
},
{
"name": "on"
},
{
"name": "off"
},
{
"name": "panel"
}
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1,26 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/1516a728931b4985c1e86f0c5995a5aa1554a1ad and modified by Swept, modified by emisse for ss14",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "smartfridge_open"
},
{
"name": "smartfridge"
},
{
"name": "off"
},
{
"name": "broken"
},
{
"name": "smartfridge_door"
}
]
}

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 863 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 570 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 562 B

View File

@@ -97,3 +97,6 @@ SpawnPointSeniorPhysician: null
# 2023-12-12
#No this is not the CMO hardsuit, their prototype IDs were just confusingly similar
ClothingOuterHardsuitMedic: ClothingOuterHardsuitSyndieMedic
# 2023-12-13
VendingMachineSmartFridge: SmartFridge