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

Target cdaudio (Source): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{tabs|target cdaudio|goldsrc = 1|source = 1|main = goldsrc}}
{{TabsBar|main=gs|base=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|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.
{{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 ==

Revision as of 08:05, 29 April 2025

C++ Class hierarchy
CTargetCDAudioRep
CPointEntity
CBaseEntity
C++ controlentities.cpp
Obsolete-notext.png
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.

target_cdaudio is a logical entity available in all Source Source games. A leftover from GoldSrc 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.

See also