Target cdaudio (Source): Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) (→Inputs) |
SirYodaJedi (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
{{CD|CTargetCDAudioRep|file1=controlentities.cpp}} | {{CD|CTargetCDAudioRep|file1=controlentities.cpp}} | ||
{{obsolete|replacement={{ent|ambient_generic}}}} | {{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. | {{this is a|point 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 == |
Revision as of 12:12, 21 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 point 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 track when fired.