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

Trigger cdaudio (Source): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{tabs|trigger cdaudio|goldsrc = 1|source = 1|main = goldsrc}} {{CD|CTriggerCDAudio|file1=triggers.cpp}} {{obsolete}} {{this is a|point entity|name=trigger_cdaudio|engine=source}} A leftover from {{GoldSrc|2}}, it calls a nonexistent {{code|cd}} console command. Use a {{ent|trigger_once}}{{confirm}} to call a {{ent|ambient_generic}} instead. == Keyvalues == {{KV|Track|intn=health|integer choices}}")
 
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
{{CD|CTriggerCDAudio|file1=triggers.cpp}}
{{CD|CTriggerCDAudio|file1=triggers.cpp}}
{{obsolete}}
{{obsolete}}
{{this is a|point entity|name=trigger_cdaudio|engine=source}} A leftover from {{GoldSrc|2}}, it calls a nonexistent {{code|cd}} [[console command]]. Use a {{ent|trigger_once}}{{confirm}} to call a {{ent|ambient_generic}} instead.
{{this is a|brush entity|name=trigger_cdaudio|engine=source}} A leftover from {{GoldSrc|2}}, it calls a nonexistent {{code|cd}} [[console command]] and as such is effectively '''nonfunctional''' for its intended purpose (but still works as a generic trigger). Use a {{ent|trigger_once}} to call an {{ent|ambient_generic}} instead.


{{otherKIO|trigger}}
== Keyvalues ==
== Keyvalues ==
{{KV|Track|intn=health|integer choices}}
{{KV|CD track to play|intn=health|integer choices|Range -1 to 30. Setting to -1 would stop the current CD track.}}
 
== Inputs ==
{{I|Use|Would play the specified CD track from {{code|health}} when fired.<br>[[Kill]]s the entity after being fired.}}
 
== See also ==
* {{ent|target_cdaudio|engine=source}}

Latest revision as of 09:44, 29 April 2025

C++ Class hierarchy
CTriggerCDAudio
CBaseTrigger
CBaseToggle
CBaseEntity
C++ triggers.cpp
Obsolete-notext.png
This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.

trigger_cdaudio is a brush entity available in all Source Source games. A leftover from GoldSrc GoldSrc, it calls a nonexistent cd console command and as such is effectively nonfunctional for its intended purpose (but still works as a generic trigger). Use a trigger_once to call an ambient_generic instead.

Note.pngNote:Other Keyvalues / Inputs / Outputs are same as trigger.

Keyvalues

CD track to play (health) <integer choices>
Range -1 to 30. Setting to -1 would stop the current CD track.

Inputs

Use
Would play the specified CD track from health when fired.
Kills the entity after being fired.

See also