Sound (DEF): Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
Fox (talk | contribs)
No edit summary
Line 2: Line 2:


'''sound''' { [...] }
'''sound''' { [...] }
NOTE: This should only be used for HRP-like replacement of existing sounds. New sounds should use [[definesound]].


== Tokens ==
== Tokens ==
Line 7: Line 9:
'''id''' <value>
'''id''' <value>


Specifies the ID of sound. The ID can be found in DEFS.CON. '''NOTE:''' This should only be used for HRP-like replacement of existing sounds. New sounds should use [[definesound]].
Specifies the ID of sound. The ID can be found in DEFS.CON.


'''file''' <filename>
'''file''' <filename>

Revision as of 10:10, 22 February 2020

This page is under construction.
Please help review and edit this page.

sound { [...] }

NOTE: This should only be used for HRP-like replacement of existing sounds. New sounds should use definesound.

Tokens

id <value>

Specifies the ID of sound. The ID can be found in DEFS.CON.

file <filename>

Specifies which audio file to use. File types: WAV, VOC, Ogg Vorbis, FLAC

volume <volume>

Adjusts the volume of the sound, default is 1.0

minpitch <value>

DESCRIPTION

maxpitch <value>

DESCRIPTION

priority <value>

DESCRIPTION

type <value>

DESCRIPTION

distance <value>

DESCRIPTION

Examples

sound { id "249" file "bonus.ogg" }