Barotrauma 潜渊症

Barotrauma 潜渊症

评价数不足
Doorway Stateroom Example
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
2.517 KB
2021 年 12 月 18 日 上午 12:03
1 项改动说明 ( 查看 )

订阅以下载
Doorway Stateroom Example

描述
Windows in Barotrauma are actually two-piece items, consisting of the background and the window frame. You can use them to create virtual rooms behind doorways, with functional furniture, to reduce clutter and improve aesthetics.

I've noticed this method being used on subs like the Iona and the Super Plague Rat, and I really like how you can tuck things like beds, cabinets, medical beds, fabricators, etc., into those rooms, and put things in front of them while still maintaining a clean, uncluttered look. These items can be fully interactable, and when your guy lays on the bed, it looks like he's lying on it inside the room just like it should.

I could find no item assemblies of this, so I'm putting it up here to make it easily available in case anyone wants an example or prefab.

Instructions:

The object depth value you set on windows is actually just the depth of the window's background only. The window frame is projected 0.019 higher than that background. So, if the surrounding walls are at 0.86 depth, you want to set the window depth to 0.879, and you can then tuck the edges of wall underneath the frame. We can now use this "window" as a virtual room.

Objects inside the room should be set to a depth between 0.879 (the back wall) and 0.86 (the front wall), and they'll look like they're sitting nicely in the room behind the doorway. Extra points for placing alternative background wallpaper inside the room, right in front of the back wall, to replace the Tall Office Window's default background

You do have to create separate wall pieces around the window/"door", as you can see in the example, and if you want to have it look nice, you'll have to adjust the texture offsets on them.

Also note, in this example, an actual window with translucent "glass" (really a wall with Alpha transparency) to the right.

To use this as an assembly, select everything init, then save it as an assembly. I would have uploaded this as an actual item assembly, but I couldn't figure out how. Doesn't show up in the list. If someone can clue me in how to do that, I'll re-upload it as an item assembly XML rather than a SUB.

1 条留言
Patriote 2023 年 5 月 19 日 下午 4:19 
Alright so this is rather more of a tutorial than an assembly, right?