Skip to content

CVoiceContainerSelector

CS2 build 27045800 · Steam date 2026-11-30 · platform windows-x86_64 · cs2_schema.json

Kind: classSize: 240 bytes (0xf0)Alignment: 8 bytesModule: soundsystem_voicecontainersBinary: !GlobalTypes

Metadata: MPropertyDescription Plays a selected vsnd on playback. MPropertyFriendlyName Selector

Relationships

Inherits from: CVoiceContainerBase

Inheritance tree
Relationship diagram (2 edges)
classDiagram
    CVoiceContainerBase <|-- CVoiceContainerSelector
    CVoiceContainerSelector *-- CSoundContainerReferenceArray
Inheritance chain, direct subclasses (up to 20) and a few composition edges

Memory layout

7 fields, 3 declared here and 4 inherited. Offsets are absolute from the object base on windows-x86_64.

CVoiceContainerBaseCVoiceContainerSelector

OffsetFieldTypeFromAnnotations
0x10m_bRegisteredVMixboolCVoiceContainerBase
0x14m_nResourceNameCUtlStringTokenCVoiceContainerBase
0x30m_vSoundCVSoundCVoiceContainerBaseMPropertySuppressField
0x70m_pEnvelopeAnalyzerCVoiceContainerAnalysisBase*CVoiceContainerBaseMPropertySuppressExpr true
0x78m_modePlayBackMode_tMPropertyFriendlyName Playback Mode
0x80m_soundsToPlayCSoundContainerReferenceArrayMPropertyFriendlyName Sounds To play
0xb8m_fProbabilityWeightsCUtlVector< float32 >MPropertyFriendlyName Relative Weights
KV3 class defaults
{
	"_class": "CVoiceContainerSelector",
	"m_bRegisteredVMix": false,
	"m_nResourceName": "",
	"m_vSound":
	{
		"m_Sentences":
		[
		],
		"m_nRate": 0,
		"m_nFormat": "PCM16",
		"m_nChannels": 0,
		"m_nLoopStart": 0,
		"m_nSampleCount": 0,
		"m_flDuration": 0.000000,
		"m_nStreamingSize": 0,
		"m_nLoopEnd": 0
	},
	"m_pEnvelopeAnalyzer": null,
	"m_mode": "Random",
	"m_soundsToPlay":
	{
		"m_bUseReference": true,
		"m_sounds":
		[
		],
		"m_pSounds":
		[
		]
	},
	"m_fProbabilityWeights":
	[
	]
}