Firefly Emitter
WadTool Slot Number: 1089
				
					TEN.Objects.ObjID.FIREFLY_EMITTER
				
			

Setup Instructions

Add both the nullmesh AND the firefly sprites to your WAD.

OCB Values

  • Positive OCB 1-8 : fireflies with a lighting effect across 1 to 8 blocks
  • Negative OCB 1-8 : swarm of flies with a small dark streamer effect across 1 to 8 blocks
  • The maximum value of the area is 8 (BLOCKS).

ID_FIREFLY_SPRITES:

  • Sprite #0: fireflies
  • Sprite #1: flies

Spawn Amount

  • The hitpoints are the number of fireflies/flies. Change the hitpoints with a “change health of moveable” node.

Effect Customisation

Use itemFlags to customise the effect further. Use a “set item flags” node for this.

For FIREFLY_EMITTER:

  • ItemFlags[1] = 0:  turn on light (default)
  • ItemFlags[1] = 1:  turn off the light effect of the fireflies (those with positive OCB)

For CORPSE:

    • ItemFlags[4] = 0: turn on flies effect (Default)
    • ItemFlags[4] = 1: Remove flies effect.