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
(→‎FGD Code: inherit trigger baseclass)
No edit summary
Line 5: Line 5:
Changes [[env_tonemap_controller|tonemap controllers]] for players touching the trigger.
Changes [[env_tonemap_controller|tonemap controllers]] 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.}}



Revision as of 10:45, 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 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