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 1: Line 1:
{{Under construction}}
{{Under construction}}


'''sound''' { [...] }
<span {{code}}>'''sound''' { [...] }</span>


NOTE: This should only be used for HRP-like replacement of existing sounds. New sounds should use [[definesound]].
NOTE: This should only be used for HRP-like replacement of existing sounds. New sounds should use [[definesound]].
Line 7: Line 7:
== Tokens ==
== Tokens ==


'''id''' <value>
<span {{code}}>'''id''' <value></span>


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


'''file''' <filename>
<span {{code}}>'''file''' <filename></span>


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


'''volume''' <volume>
<span {{code}}>'''volume''' <volume></span>


Adjusts the volume of the sound, default is 1.0
Adjusts the volume of the sound, default is 1.0


'''minpitch''' <value>
<span {{code}}>'''minpitch''' <value></span>


DESCRIPTION
DESCRIPTION


'''maxpitch''' <value>
<span {{code}}>'''maxpitch''' <value></span>


DESCRIPTION
DESCRIPTION


'''priority''' <value>
<span {{code}}>'''priority''' <value></span>


DESCRIPTION
DESCRIPTION


'''type''' <value>
<span {{code}}>'''type''' <value></span>


DESCRIPTION
DESCRIPTION


'''distance''' <value>
<span {{code}}>'''distance''' <value></span>


DESCRIPTION
DESCRIPTION

Latest revision as of 05:53, 23 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" }