Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

How do you add doors? #32

Open
johnhamndon opened this issue Apr 22, 2022 · 4 comments
Open

How do you add doors? #32

johnhamndon opened this issue Apr 22, 2022 · 4 comments

Comments

@johnhamndon
Copy link

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
Copy link
Member

Saalvage commented Apr 22, 2022

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

@johnhamndon
Copy link
Author

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
Copy link
Collaborator

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
Copy link
Author

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants