Classes:ColorSetter

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
  1. This actor is already defined in GZDoom, there's no reason to define it again.
  2. In fact, trying to define an actor with the same name will cause an error (because it already exists).
  3. If you want to make your own version of this actor, use inheritance.
  4. Definitions for existing actors are put on the wiki for reference purpose only.
Color setter
Actor type Map spot Game MiniZDoomLogoIcon.png (ZDoom)
DoomEd Number 9038 Class Name ColorSetter


Classes: ColorSetter

Sets the containing sector's light color using the values specified by its arguments:

Arg1: Red
Arg2: Green
Arg3: Blue
Arg4: Desaturation

This thing changes the light color of the sector it is placed in. By default, sectors have white light (red, green, blue are all 255). You can use the testcolor console command to test a color from within the game.

The 4th argument specifies how much the colors in the sector are desaturated. 0 means no desaturation at all resulting in normal colors. 255 means full desaturation, resulting in a colorized black and white display.

DECORATE definition

ACTOR ColorSetter native
{
  +NOBLOCKMAP
  +NOGRAVITY
  +DONTSPLASH
  RenderStyle None
}