Remake Holographic Rollerbed (#4683)
* Remake Holographic Rollerbed * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Remove Hyphen Signed-off-by: Sir Warock <67167466+SirWarock@users.noreply.github.com> --------- Signed-off-by: Sir Warock <67167466+SirWarock@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
|
|
@ -19,6 +19,7 @@ public sealed class FoldableSystem : EntitySystem
|
|||
[Dependency] private readonly SharedContainerSystem _container = default!;
|
||||
[Dependency] private readonly AnchorableSystem _anchorable = default!;
|
||||
[Dependency] private readonly SharedPopupSystem _popup = default!;
|
||||
[Dependency] private readonly SharedPointLightSystem _pointLight = default!; // DeltaV - Holographic Rollerbeds emit light.
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
|
|
@ -137,6 +138,9 @@ public sealed class FoldableSystem : EntitySystem
|
|||
if (!CanToggleFold(uid, comp))
|
||||
return false;
|
||||
|
||||
if (_pointLight.TryGetLight(uid, out var light)) // DeltaV - Holographic Rollerbeds emit light.
|
||||
_pointLight.SetEnabled(uid, !state, light);
|
||||
|
||||
SetFolded(uid, comp, state);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,7 +68,10 @@
|
|||
recipeUnlocks:
|
||||
- ClothingShoesBootsMagSci
|
||||
- ClothingShoesBootsMoon
|
||||
- ClothingShoesBootsSecurityMagboots # DeltaV - Added security magboots.
|
||||
# Begin DeltaV Additions
|
||||
- HoverBedHoloSpawnFolded
|
||||
- ClothingShoesBootsSecurityMagboots
|
||||
# End DeltaV Additions
|
||||
|
||||
- type: technology
|
||||
id: AnomalyCoreHarnessing
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
- type: entity
|
||||
parent: RollerBed
|
||||
id: RollerBedHolo
|
||||
name: holographic rollerbed
|
||||
description: Used to carry patients around without damaging them. This one seems to be holographic.
|
||||
id: HoverBedHolo
|
||||
name: holographic hoverbed
|
||||
description: Used to frictionlessly carry around patients and is easily stored in a compacted form.
|
||||
components:
|
||||
- type: Item
|
||||
size: Small
|
||||
|
|
@ -10,23 +10,81 @@
|
|||
sprite: _DV/Structures/Furniture/rollerbeds.rsi
|
||||
noRot: true
|
||||
layers:
|
||||
- state: holographic_rollerbed
|
||||
- state: holographic_hoverbed_shaded
|
||||
map: ["unfoldedLayer"]
|
||||
- state: holographic_rollerbed_folded
|
||||
- state: holographic_hoverbed_unshaded
|
||||
map: ["unfoldedLayerUnshaded"]
|
||||
shader: unshaded
|
||||
- state: holographic_hoverbed_folded_shaded
|
||||
map: ["foldedLayer"]
|
||||
visible: false
|
||||
- state: holographic_rollerbed_buckled
|
||||
- state: holographic_hoverbed_folded_unshaded
|
||||
map: [ "foldedLayerUnshaded" ]
|
||||
shader: unshaded
|
||||
visible: false
|
||||
- state: holographic_hoverbed_buckled_shaded
|
||||
map: ["buckledLayer"]
|
||||
- state: holographic_hoverbed_buckled_unshaded
|
||||
map: ["buckledLayerUnshaded"]
|
||||
shader: unshaded
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
fix1:
|
||||
shape:
|
||||
!type:PhysShapeCircle
|
||||
radius: 0.35
|
||||
density: 5
|
||||
mask:
|
||||
- MobMask
|
||||
- type: GenericVisualizer
|
||||
visuals:
|
||||
enum.StrapVisuals.State:
|
||||
buckledLayer:
|
||||
True: { visible: true }
|
||||
False: { visible: false }
|
||||
buckledLayerUnshaded:
|
||||
True: { visible: true }
|
||||
False: { visible: false }
|
||||
unfoldedLayer:
|
||||
True: { visible: false }
|
||||
False: { visible: true }
|
||||
unfoldedLayerUnshaded:
|
||||
True: { visible: false }
|
||||
False: { visible: true }
|
||||
enum.FoldedVisuals.State: # Copypasta from BaseFoldable b/c collections don't merge when overriding component prototypes.
|
||||
foldedLayer:
|
||||
True: { visible: true }
|
||||
False: { visible: false }
|
||||
foldedLayerUnshaded:
|
||||
True: { visible: true }
|
||||
False: { visible: false }
|
||||
unfoldedLayer:
|
||||
True: { visible: false }
|
||||
unfoldedLayerUnshaded:
|
||||
True: { visible: false }
|
||||
- type: Strap
|
||||
position: Down
|
||||
rotation: -90
|
||||
buckleOffset: "0,0.075"
|
||||
buckleOnInteractHand: False
|
||||
- type: PointLight
|
||||
enabled: true
|
||||
radius: 1.2
|
||||
energy: 1
|
||||
color: "#58b7b1"
|
||||
netsync: false
|
||||
- type: StaticPrice
|
||||
price: 200
|
||||
|
||||
|
||||
- type: entity
|
||||
parent: RollerBedHolo
|
||||
id: RollerBedHoloSpawnFolded
|
||||
parent: HoverBedHolo
|
||||
id: HoverBedHoloSpawnFolded
|
||||
suffix: folded
|
||||
components:
|
||||
- type: Foldable
|
||||
folded: true
|
||||
- type: Strap
|
||||
enabled: False
|
||||
- type: PointLight
|
||||
enabled: false
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
id: MedicalDeltaV
|
||||
recipes:
|
||||
- HandheldCrewMonitor # RE
|
||||
- HoverBedHoloSpawnFolded
|
||||
|
||||
- type: latheRecipePack
|
||||
id: MedicalBoardsDeltaV
|
||||
|
|
|
|||
|
|
@ -25,3 +25,13 @@
|
|||
Steel: 100
|
||||
Glass: 300
|
||||
Plasma: 200
|
||||
|
||||
- type: latheRecipe
|
||||
id: HoverBedHoloSpawnFolded
|
||||
result: HoverBedHoloSpawnFolded
|
||||
completetime: 4
|
||||
materials:
|
||||
Steel: 500
|
||||
Glass: 300
|
||||
Plastic: 300
|
||||
Silver: 200
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@
|
|||
- BoxBottleMedicineBasic
|
||||
- CrowbarRed
|
||||
- ChemistryBottleEpinephrine
|
||||
- RollerBedHoloSpawnFolded
|
||||
- HoverBedHoloSpawnFolded
|
||||
belt:
|
||||
- DefibrillatorCompact
|
||||
- ChemistryBottleEpinephrine
|
||||
|
|
@ -294,7 +294,7 @@
|
|||
- CrowbarRed
|
||||
- ChemistryBottleEpinephrine
|
||||
- ChemistryBottleEpinephrine
|
||||
- RollerBedHoloSpawnFolded
|
||||
- HoverBedHoloSpawnFolded
|
||||
- FireExtinguisherMini
|
||||
|
||||
# Janitor
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 217 B |
|
After Width: | Height: | Size: 619 B |
|
After Width: | Height: | Size: 227 B |
|
After Width: | Height: | Size: 159 B |
|
After Width: | Height: | Size: 217 B |
|
After Width: | Height: | Size: 447 B |
|
Before Width: | Height: | Size: 378 B |
|
Before Width: | Height: | Size: 378 B |
|
Before Width: | Height: | Size: 201 B |
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Standard rollerbed sprites taken from cev-eris at https://github.com/discordia-space/CEV-Eris/blob/86295657390c25acdab82edca221fe124867aed8/icons/obj/rollerbed.dmi, Baystation 12 at https://github.com/Baystation12/Baystation12/blob/04b76229eb607fcc675c904cf6ca9fed5264a699/icons/obj/rollerbed.dmi,and AuroraStation at https://github.com/Aurorastation/Aurora.3/blob/d5471f20b7ddf1f2d521a2f7a51b528fa3caf367/icons/obj/rollerbed.dmi and modified by AftrLite (Github), Holographic rollerbed sprites taken from Paradise Station at https://github.com/S34NW/Paradise/blob/76a9423a993ed0920e3f969fcbe086bc49c028bc/icons/obj/rollerbed.dmi",
|
||||
"copyright": "Standard rollerbed sprites taken from cev-eris at https://github.com/discordia-space/CEV-Eris/blob/86295657390c25acdab82edca221fe124867aed8/icons/obj/rollerbed.dmi, Baystation 12 at https://github.com/Baystation12/Baystation12/blob/04b76229eb607fcc675c904cf6ca9fed5264a699/icons/obj/rollerbed.dmi,and AuroraStation at https://github.com/Aurorastation/Aurora.3/blob/d5471f20b7ddf1f2d521a2f7a51b528fa3caf367/icons/obj/rollerbed.dmi and modified by AftrLite (Github), Holographic rollerbed sprites taken from Paradise Station at https://github.com/S34NW/Paradise/blob/76a9423a993ed0920e3f969fcbe086bc49c028bc/icons/obj/rollerbed.dmi, Holographic Hoverbed Sprites animated by SirWarock on Github",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
|
|
@ -35,13 +35,40 @@
|
|||
"name": "emergency_rollerbed_folded"
|
||||
},
|
||||
{
|
||||
"name": "holographic_rollerbed"
|
||||
"name": "holographic_hoverbed_shaded"
|
||||
},
|
||||
{
|
||||
"name": "holographic_rollerbed_buckled"
|
||||
"name": "holographic_hoverbed_unshaded",
|
||||
"delays": [
|
||||
[
|
||||
0.15,
|
||||
0.15,
|
||||
0.15,
|
||||
0.15,
|
||||
0.15
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "holographic_rollerbed_folded"
|
||||
"name": "holographic_hoverbed_buckled_shaded"
|
||||
},
|
||||
{
|
||||
"name": "holographic_hoverbed_buckled_unshaded",
|
||||
"delays": [
|
||||
[
|
||||
0.15,
|
||||
0.15,
|
||||
0.15,
|
||||
0.15,
|
||||
0.15
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "holographic_hoverbed_folded_shaded"
|
||||
},
|
||||
{
|
||||
"name": "holographic_hoverbed_folded_unshaded"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||