Light_thunderstorm

Light_thunderstorm

Classname: light_thunderstorm
Purpose: atmospherics
H2 Code: lightning.hc
fields required: origin, targetname, style, light
Runs a thunderstorm with lightning flashes & bolts, & sound-effects. In the game it appears in eidolon.bsp, and doesn't start until eidolon (or his surrogate) awakes, but in my maps I haven't figured out how turn it on - it runs from the beginning.

To make sky-lightning, set up lights with the same style-value (32 or greater) as the thunderstorm. They must not have an angle-field, but they don't need a targetname-field (tho the ones in eidolon.bsp do; I suspect that there have been implementation changes).

Consider enhancing your thunderstorm with rain,

Fields

origin Value is a triple of numbers; where it is, your mapeditor should handle this visually, automatically.
targetname value is a name, doesn't matter what it is, but storm won't work without it. REQUIRED.
light Value is a number, brightness of flash. If undefined, storm is completely dark.
dmg Value is a number; how often lightning strikes ground, default=10.
wait Value is a number, frequency of flashes, default = 33, max = 100.
style Value is a number, >= 32. Lights & other thunderstorms with shared value will flash in unison (sharing lower light-value, it appears). Lightning strikes will however be independent.
lightvalue1 Value is a number, non-flash lightvalue, scale of 1 to 25, default = 11 (remember that 0 will be treated as the default). Only works if light also has a value. Both the light and lightvalue1 light-levels are shown by all lights with the same style-value (but the lights must not have an angle field).
frags Value is a number, radious within lightning strikes, default = 1000.
spawnflags Value 1 causes there to be lightning if dmg is unspecified (the code sets .dmg to 10).

Back to the list.