SCP-CBN / cbre

Sledge fork made for SCP - Containment Breach room creation.
15 stars 6 forks source link

How do you add doors? #32

Open johnhamndon opened 2 years ago

johnhamndon commented 2 years ago

Is it just a model... Or do I have to edit some sort of door spawning in main.bb?

This is not really an issue, just, there is no proper documentation so it would be nice to clarify. Thanks.

Saalvage commented 2 years ago

Adding functional doors for <= v1.3.11 is entirely done in code. In v1.4 they will be placeable via CBRE.

johnhamndon commented 2 years ago

Ok. Before I stop bugging you, how might this be possible? I only see conditions for door models and no statements for the room. Are the door in main.bb or some other file I don't see. I'm sorry for wasting your time, as you can tell I'm new to modding and not exactly a master at Blitz3D

juanjp600 commented 2 years ago

Door placement in done in MapSystem.bb, in the FillRoom function. Here's an example: https://github.com/Regalis11/scpcb/blob/edb8fe0840b78f14d1aef3a0bf6174630e7be296/MapSystem.bb#L2205

johnhamndon commented 2 years ago

Thank you.