User:Astraltor/References
From Official Barotrauma Wiki
Here we have some reference data, mostly pertaining to submarine building.
Sprite Depth
Sprite Depth | Thing |
---|---|
0.010 | Turrets and periscope |
0.060 | submarine shells |
0.100 | Duct Block, Chairs |
0.180 | Eggs |
0.200 | Mucus Balls, Chitin |
0.500 | Characters, Fire, (and other particle effects?) |
0.509 | Hatches |
0.510 | Ladders, Doors |
0.540 | Crates |
0.550 | Most held weapons/tools, loot items, diving gear, and weapon projectiles |
0.600 | Most other inventory items. |
0.610 | Ladder steps |
0.700 | Hatch background, Pet Food |
0.750 | Planter Boxes |
0.780 | Gravity Sphere Base |
0.800 | Most installations, Ballast Flora, Wiring Components |
0.840 | Cabinets, Gravity Sphere Sphere |
0.850 | Cable Holders, Bunks |
0.855 | Wires |
0.890 | Door background |
0.910 | Vents |
0.970 | Background Wall/decorations |
Additionally, some items have a span of depths. All items with animated parts will have at least 2 layers.
Main Depth | Range | Item | Description |
---|---|---|---|
0.510 | 0.610 | Ladder | Steps |
0.509 | 0.700 | Hatch | Hatch background |
0.780 | 0.840 | Gravity Sphere | Base is closer |
0.800 | 0.840 | Fabricator, Deconstructor | various decorative bits |
0.800 | 0.860 | Oxygen Generator (not shuttle/outpost) | tubes |
0.510 | 0.890 | Doors | Door background |
0.910 | 0.920 | Vent | fan |
0.950 | 0.990 | Mineral, Seeds, and Small, Medium, and Large weapon display shelves | Light, Glass, Contents, Textures at 0.01 intervals |
0.980 | 0.960 | Office windows | Window Border |
Notes
- Characters using installations (beds, ladders, chairs) will go slightly behind the depth of the furniture (Exception: Periscopes?)
- items and installations have a max depth of 0.900 (bug?)
- I tend to use depths around 0.801 - 0.849 for decoration that is to show in front of wires and 0.856 - 0.899 for behind-wires/background items.
- Moving shells behind 0.500 will result in the damage mask not being displayed - i.e., there will be no visual damage to the shells.
- this list isn't necessarily 100% complete
- This list is accurate to the best of my knowledge
Console stuff
Unordered list of questionable Console Commands.
Main command | Parameter 1 | Parameter 2 | Notes |
---|---|---|---|
setentityproperties | Indestructible | true / false | Sets the item as invincible, won't take damage when hit etc. Items have this as a checkbox, but shell pieces still require command to do so. |
setentityproperties | maxhealth | Infinity / -Infinity / NaN | Infinity results in empty health bar
When inside: -Infinity and 0 doesn't take damage, has no collision, no LOS blocking. NaN sets the wall to leak water heavily, has full collision. When outside: -Infinity, 0, NaN have collision 0 may visually very weird (damage mask?) |
Useful Pages
- Walls a page detailing each wall by name + its HP. TL;DR: bow-stern: 400, external shells: 200, shuttle/glass: 50, interior: 75. These are only the default HPs, it can be changed (See "Diving deeper into the sub editor")
- Autofill Tags autofill generates items in containers so you don't have to! Useful for giving ships some minor randomization, as well as for wrecks. And slightly future proofs for new items.
- Undertow discord (link should be on sidebar and main page of wiki)
- The official submarine editor guide