Class SoundEventDefinition
Namespace: ValveResourceFormat.Renderer.Audio
Assembly: Renderer.dll
A sound event definition with its properties parsed out of the key-values once. Also carries mutable per-event playback state (last picked track, last play time).
public sealed class SoundEventDefinitionInheritance
Properties
BlockDuration
Gets how long replays are blocked for, in seconds.
public float BlockDuration { get; }Property Value
BlockMatchingEvents
Gets whether replays within are dropped ("block_matching_events", or "block_match_this_event" in hlvr).
public bool BlockMatchingEvents { get; }Property Value
Data
Gets the underlying key-values, with the "base" chain already merged in.
public KVObject Data { get; }Property Value
KVObject
Delay
Gets the delay in seconds before the sound starts.
public float Delay { get; }Property Value
EnableRetrigger
Gets whether the event replays itself on an interval.
public bool EnableRetrigger { get; }Property Value
FadeIn
Gets the fade-in length in seconds, zero to start at full volume.
public float FadeIn { get; }Property Value
FadeOut
Gets the stop-fade length in seconds, zero to use the caller's fallback.
public float FadeOut { get; }Property Value
Name
Gets the sound event name this definition was loaded under.
public string Name { get; }Property Value
OcclusionIntensity
Gets how strongly geometry between the listener and the sound attenuates it ("occlusion_intensity", or "occlusion_scale" in hlvr): 0 (the default) is not occludable, 1 is fully muted when blocked.
public float OcclusionIntensity { get; }Property Value
Pitch
Gets the base playback rate multiplier.
public float Pitch { get; }Property Value
Position
Gets the position baked into the definition. An all-zero authored position is a placeholder and parses as null.
public Vector3? Position { get; }Property Value
PositionOffset
Gets the offset added to the position (e.g. footsteps play 20 units above the ground).
public Vector3 PositionOffset { get; }Property Value
RetriggerIntervalMax
Gets the upper bound of the retrigger interval, in seconds.
public float RetriggerIntervalMax { get; }Property Value
RetriggerIntervalMin
Gets the lower bound of the retrigger interval, in seconds.
public float RetriggerIntervalMin { get; }Property Value
SetChildPosition
Gets whether child events play at this event's position ("set_child_position", e.g. a footstep's gear rustle follows the player). When false - the common case - children use their own authored positions. Read by the base , so it lives here regardless of event type.
public bool SetChildPosition { get; }Property Value
Type
Gets the sound event type ("csgo_mega"), empty when the definition has none.
public string Type { get; }Property Value
Volume
Gets the base volume, replaced by when set. Unit depends on the sub type: CS2 events author this linear (0-1); Deadlock events author it in decibels.
public float Volume { get; }Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()Returns
A string that represents the current object.

