This article's documentation is for the "GoldSrc" engine. Click here for more information.

Ambient fmodstream (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(No it's not.)
Line 1: Line 1:
{{this is a|point entity|name=ambient_fmodstream|engine=GoldSrc|game=Cry of Fear|game1=Spirit of Half-Life}} A specialized [[FMOD]] audio player within the game environment, designed to play audio files in formats such as .[[mp3]], .[[wma]], and .[[ogg]].
{{CD|CTargetFMODAudio|base=CPointEntity|goldsrc=1|file1=triggers.cpp}}
{{important|This entity is same to {{ent|ambient_generic_(GoldSrc)|alt=ambient_generic}}{{clarify}}}}
{{this is a|logical entity|name=ambient_fmodstream|engine=GoldSrc|game=Spirit of Half-Life|game1=Cry of Fear}} A specialized [[FMOD]] audio player within the game environment, designed to play audio files in formats such as [[MP3]], [[w:WMA|WMA]], and [[OGG]]. Unlike {{ent|ambient_generic|engine=goldsrc}}, it is non-spatial.


===Keyvalues===
{{warning|Continues playing even when [[disconnect]]ing, loading old saves, and starting new games.}}
{{KV|File Name|string|Specifies the relative path to the audio file within the {{path|spirit\}}}}
{{altnames|name1=trigger_mp3audio}}
 
== Keyvalues ==
{{hl1 kv targetname}}
:Respects {{ent|trigger_relay}}'s USE_TYPE.
{{KV|intn=message|File Name|string|Specifies the relative path to the audio file within the {{path|spirit\}}}}


== Flags ==
== Flags ==
{{fl|1|Remove on fire|Default value 0. When set to 1, the entity is removed or triggered to stop playing the audio file upon a specific in-game event}}
{{fl|1|Remove on fire|Default value 0. When set to 1, the entity is removed or triggered to stop playing the audio file upon a specific in-game event}}

Revision as of 16:29, 14 November 2025

C++ Class hierarchy
CTargetFMODAudio
CPointEntity
CBaseEntity
C++ 1

ambient_fmodstream is a logical entity available in Spirit of Half-Life Spirit of Half-Life and Cry of Fear Cry of Fear. A specialized FMOD audio player within the game environment, designed to play audio files in formats such as MP3, WMA, and OGG. Unlike ambient_generic, it is non-spatial.

Warning.pngWarning:Continues playing even when disconnecting, loading old saves, and starting new games.
AltNames.pngAltNames: This entity is also tied to trigger_mp3audio.

Keyvalues

Name (targetname) <string>
The targetname that other entities refer to this entity by, usually via the target, killtarget, and TriggerTarget KVs.
Respects trigger_relay's USE_TYPE.
File Name (message) <string>
Specifies the relative path to the audio file within the 🖿spirit\

Flags

Remove on fire : [1]
Default value 0. When set to 1, the entity is removed or triggered to stop playing the audio file upon a specific in-game event