Skip to content

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.

Fire Manager

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

Sub Rooms

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 SubRooms 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.