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)
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 3: Line 3:
{{this is a|brush entity|name=trigger_tonemap|since=Left 4 Dead}} {{also|{{gmod}}}}
{{this is a|brush entity|name=trigger_tonemap|since=Left 4 Dead}} {{also|{{gmod}}}}


Changes [[env_tonemap_controller|tonemap controllers]] for players touching the trigger.
Changes {{ent|env_tonemap_controller}} for players touching the trigger.


{{note|This entity is only in the [[FGD|FGDs]] of the Left 4 Dead series. However, it still exists in the engine.}}
{{note|This entity is only in the [[FGD|FGDs]] of the Left 4 Dead series. However, it still exists in subsequent games.}}
{{note|This entity has keyvalues, inputs, and outputs available to usual trigger_* entities, but only has <code>Targetname</code> listed as a base, so they're not listed in the [[FGD]], but can still be added via turning off SmartEdit.}}
{{note|This entity has keyvalues, inputs, and outputs available to usual trigger_* entities, but only has <code>Targetname</code> listed as a base, so they're not listed in the [[FGD]], but can still be added via turning off SmartEdit.}}


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."
]</pre>
]</pre>


== See Also ==
== See also ==
* {{ent|env_tonemap_controller}}
* {{ent|env_tonemap_controller}}


[[Category:Lighting]]
[[Category:Lighting]]

Latest revision as of 10:55, 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 env_tonemap_controller 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 subsequent games.
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