Target cdaudio (Source): Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) (Created page with "{{tabs|target cdaudio|goldsrc = 1|source = 1|main = goldsrc}} {{CD|CTargetCDAudioRep|file1=controlentities.cpp}} {{obsolete|replacement={{ent|ambient_generic}}}} {{this is a|point entity|name=target_cdaudio|engine=source}} A leftover from {{GoldSrc|2}}, it calls a nonexistent {{code|cd}} console command. Use {{ent|ambient_generic}} instead. == Keyvalues == {{KV|Track|intn=track|integer choices}} == Inputs == {{IO|ChangeCDTrack|type=void}}") |
SirYodaJedi (talk | contribs) (→Inputs) |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{TabsBar|main=target_cdaudio}} | ||
{{CD|CTargetCDAudioRep|file1=controlentities.cpp}} | {{CD|CTargetCDAudioRep|file1=controlentities.cpp}} | ||
{{obsolete|replacement={{ent|ambient_generic}}}} | {{obsolete|replacement={{ent|ambient_generic}}}} | ||
{{ | {{This is a|logical entity|name=target_cdaudio|engine=source}} A leftover from {{GoldSrc|2}}, it calls a nonexistent {{code|cd}} [[console command]], and as such is '''nonfunctional'''. Use {{ent|ambient_generic}} instead. | ||
== Keyvalues == | == Keyvalues == | ||
{{KV| | {{KV|CD track to play|intn=track|integer choices|Range -1 to 30. Setting to -1 would stop the current CD track.}} | ||
== Inputs == | == Inputs == | ||
{{ | {{I|ChangeCDTrack|type=void|Would play the specified CD track from {{code|track}} when fired.<br>[[Kill]]s the entity after being fired.}} | ||
== See also == | |||
* {{ent|trigger_cdaudio|engine=source}} |
Latest revision as of 09:44, 29 April 2025
![]() |
---|
CTargetCDAudioRep |
![]() |

This entity is obsolete. Its use is discouraged. It may only exist/function in older engine branches.
It has since been deprecated by: ambient_generic.
It has since been deprecated by: ambient_generic.
target_cdaudio
is a logical entity available in all Source games. A leftover from
GoldSrc, it calls a nonexistent cd console command, and as such is nonfunctional. Use ambient_generic instead.
Keyvalues
- CD track to play (track) <integer choices>
- Range -1 to 30. Setting to -1 would stop the current CD track.
Inputs
- ChangeCDTrack
- Would play the specified CD track from track when fired.
Kills the entity after being fired.