This article's documentation is for anything that uses the Source engine. Click here for more information.

Trigger tonemap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added FGD Code from L4D base.fgd for other games that include it)
(→‎FGD Code: inherit trigger baseclass)
Line 13: Line 13:


== FGD Code ==
== FGD Code ==
<pre>@SolidClass base(Targetname) = trigger_tonemap : "Changes tonemap controllers for players touching the trigger."
<pre>@SolidClass base(Trigger) = trigger_tonemap : "Changes tonemap controllers for players touching the trigger."
[
[
TonemapName(target_destination) : "Tonemap Name" : : "The name of the tonemap controller entity associated with this trigger."
TonemapName(target_destination) : "Tonemap Name" : : "The name of the tonemap controller entity associated with this trigger."

Revision as of 10:44, 13 June 2025

Icon-NotInFGD.png
This entity is not in the Alien SwarmPortal 2Counter-Strike: Global Offensive FGD by default.
See below for instructions on making it available.
C++ Class hierarchy
CTonemapTrigger
CBaseTrigger
CBaseToggle
CBaseEntity
C++ env_tonemap_controller.cpp

trigger_tonemap is a brush entity available in all Source Source games since Left 4 Dead Left 4 Dead. (also in Garry's Mod)

Changes tonemap controllers for players touching the trigger.

Note.pngNote:This entity is only in the FGDs of the Left 4 Dead series. However, it still exists in the engine.
Note.pngNote:This entity has keyvalues, inputs, and outputs available to usual trigger_* entities, but only has Targetname listed as a base, so they're not listed in the FGD, but can still be added via turning off SmartEdit.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Tonemap Name (TonemapName) <targetname>
The name of the tonemap controller entity associated with this trigger.

FGD Code

@SolidClass base(Trigger) = trigger_tonemap : "Changes tonemap controllers for players touching the trigger."
[
	TonemapName(target_destination) : "Tonemap Name" : : "The name of the tonemap controller entity associated with this trigger."
]

See Also