-
Notifications
You must be signed in to change notification settings - Fork 0
Fire System
Indigocoder1 edited this page Oct 23, 2024
·
5 revisions
The fire system in Sub Library has been modified and updated from the Cyclops fire system to allow for greater customizability & expandability.
The ModdedSubFire
component is the backbone of the fire system. It controls spawning fires, propagating the smoke value through rooms, and disabling and enabling the smoke impostor renderers.
It requires the sub to be mapped out per-room by SubRoom
components to work effectively
The SubRoom
component is used with the ModdedSubFire
component to deal with fires spreading throughout the sub. It holds a reference to the fire manager, as well as any rooms accessible by it.
Fields:
- subFire - The
ModdedSubFire
that owns this room - linkedRooms - Any other
SubRoom
s accessible via this one (I.e. by a door or ladder).
The object this script is attached to should have a trigger collider on it that defines the bounds of the room.