# (G)ZDoom text lumps support

GZDoom Builder will automatically load data from the following lumps if they are present in the map's resources.

## TEXTURES:

You can use "//$GZDB_SKIP" special comment to abort parsing of the current file. Useful if you don't want textures from certain files or parts of files to show up in the Image Browser or want to increase resource loading speed.
GZDoom Builder adds support for the following TEXTURES parameters:

- FlipX, FlipY, Rotate and Blend (both styles) patch parameters.
- "Add", "Modulate", "Subtract", "ReverseSubtract" and "Translucent" patch Translucency Styles.

## (Z)MAPINFO:

Both new and old MAPINFO definition styles are supported.
You can use "//$GZDB_SKIP" special comment to abort parsing of the current file.
DoomEdNum overrides are supported.
SpawnNums overrides are supported. The values are used to update "spawnthing" Game Configuration enum.
In addition, following values from (Z)MAPINFO are supported by Visual mode:

- fade;
- outsidefog;
- fogdensity;
- outsidefogdensity;
- vertwallshade;
- horizwallshade;
- evenlighting;
- smoothlighting.

## REVERBS:

Sound environment definitions are loaded and can be used in the Sound Environment Mode.

## SNDSEQ:

Sound Sequence and Sound Sequence Group definitions are loaded and can be selected in the "Sound sequence" drop-down of the Edit Sector window (UDMF only).

## MODELDEF:

All relevant MODELDEF properties and flags, except sprite translations are supported.

## VOXELDEF:

All relevant VOXELDEF properties and flags are supported.

## GLDEFS:

Only glowing flat and dynamic light definitions are currently supported. Brightmaps support may be added in the future.
You can use "//$GZDB_SKIP" special comment to abort parsing of the current file.
You can reload GLDEFS and MODELDEF by using "Reload GLDEFS" and "Reload MODELDEF" actions.
To enable GZDoom's built-in GLDEFS dynamic light definitions, you need to add "lights.pk3" as a map resource. "lights.pk3" can be found in GZDoom folder.

## Additional info regarding MODELDEF and GLDEFS support:

If you are creating maps for Doom or Doom 2, you probably don't need to read this, since required information is already added for those games.
To load models or dynamic lights defined in GLDEFS for things defined in configuration files:
To display a model instead of a thing sprite, or to attach a light defined in GLDEFS, GZDB needs to know a thing's class name (because that's how overrides are defined in MODELDEF and GLDEFS). Things defined in Doom Builder configuration files don't have this value. So, if you aren't using configs, which came with GZDoom Builder, or you are creating maps for games other than Doom and Doom 2, you'll need to add a new value named "class" to thing definition in game configuration:

    3001
    {
        title = "Imp";
        sprite = "TROOA2A8";
        class = "DoomImp"; // <- you'll need to add this value
    }

You can find all thing class names at http://www.zdoom.org/wiki/Classes.