Difference between revisions of "COLMAP"
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
=COLORMAPS= | =COLORMAPS= | ||
+ | {{DeprecatedFunc}} | ||
'''Stored in colmap.ddf or in the DDFCOLM data lump.''' | '''Stored in colmap.ddf or in the DDFCOLM data lump.''' | ||
− | Colmap.ddf allows you to modify how colourmaps are used in the game, and are useful for creating interesting lighting and other special effects such as fog. | + | Colmap.ddf allows you to modify how colourmaps are used in the game, and are useful for creating interesting lighting and other special effects such as fog. Each entry describes a "colourmap" and consists of a unique name, enclosed in square brackets, followed by a series of commands that specify a sequence of "coltables". |
− | <div style="background: #f2e0ce; border: 2px solid #bfb1a3; padding: 0.6em; margin-top: 0.8em;">A coltable is a single 256 byte section of a colourmap lump (such as the "COLORMAP" lump in EDGE.WAD), which maps a set of 256 palette colours to another set of palette colours. The name should be descriptive of the effect it creates and is used in other DDF files to refer to that particular colourmap.</div> | + | <div style="background: #f2e0ce; border: 2px solid #bfb1a3; padding: 0.6em; margin-top: 0.8em; width: 1000px;">A coltable is a single 256 byte section of a colourmap lump (such as the "COLORMAP" lump in EDGE.WAD), which maps a set of 256 palette colours to another set of palette colours. The name should be descriptive of the effect it creates and is used in other DDF files to refer to that particular colourmap.</div> |
− | |||
− | |||
==COMMANDS== | ==COMMANDS== | ||
Line 52: | Line 51: | ||
==SPECIALS== | ==SPECIALS== | ||
These allow some control over the ways the colourmap is used. | These allow some control over the ways the colourmap is used. | ||
− | {| BORDER=1 CELLSPACING=0 CELLPADDING=2 | + | {| BORDER=1 CELLSPACING=0 CELLPADDING=2 BGCOLOR="#C8F4FF" |
! SPECIAL | ! SPECIAL | ||
! EXPLANATION | ! EXPLANATION | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| NO_SKY | | NO_SKY | ||
Line 67: | Line 59: | ||
Using this flag, the sky will be unaffected by the sector's lighting | Using this flag, the sky will be unaffected by the sector's lighting | ||
or colourmap, and drawn using the [SKY] colourmap instead. | or colourmap, and drawn using the [SKY] colourmap instead. | ||
− | - | + | |- { BGCOLOR="#E9967A" } |
+ | | NO_FLASH | ||
+ | | | ||
+ | Usually when the player fires a weapon, there is a brief flash of | ||
+ | light. This flag disabled the gun flash for all sectors marked with | ||
+ | the aforementioned colormap. | ||
|} | |} | ||
==EXAMPLES== | ==EXAMPLES== |
Revision as of 21:35, 29 April 2016
COLORMAPS
Stored in colmap.ddf or in the DDFCOLM data lump. Colmap.ddf allows you to modify how colourmaps are used in the game, and are useful for creating interesting lighting and other special effects such as fog. Each entry describes a "colourmap" and consists of a unique name, enclosed in square brackets, followed by a series of commands that specify a sequence of "coltables".
COMMANDS
The following is a list of the commands that are accepted by each colourmap entry:
COMMAND | TYPE | EXPLANATION |
---|---|---|
LUMP | [string] |
The lump name which contains this colourmap. |
START | [integer] |
The offset into the lump where this colourmap begins, in terms of whole coltables (0, 1, 2, etc). |
LENGTH | [integer] |
The number of coltables in this colourmap. Defaults to 1 if omitted. |
GL_COLOUR | [hex] |
Specify a color directly without needing any lumps. Example: GL_COLOUR = #FF9030; //Orange |
SPECIAL | [special] |
A comma separated list of special flags. See below. |
PRIORITY | [integer] |
When multiple "special effects" that use colourmaps (e.g. invulnerability & night vision) are active, then the one with the highest priority value gets used (default 0). |
SPECIALS
These allow some control over the ways the colourmap is used.
SPECIAL | EXPLANATION |
---|---|
NO_SKY |
Using this flag, the sky will be unaffected by the sector's lighting or colourmap, and drawn using the [SKY] colourmap instead. |
NO_FLASH |
Usually when the player fires a weapon, there is a brief flash of light. This flag disabled the gun flash for all sectors marked with the aforementioned colormap. |
EXAMPLES
The following is an example of a complete colourmap entry:
[WATER] |