Editing
EDF sound reference
(section)
From Eternity Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Example=== # Define some new sounds # This one is only accessible via scripting because it doesn't have a DeHackEd number. # (Although a DeHackEd number may be auto-assigned to it if something in EDF attempts # to use its DeHackEd number...) sound MySound { lump = foo # this will play FOO, since prefix defaults to false when # a lump name is explicitly provided. Note that this case is # affected by the change in EDF v1.7. Previously, this would have # played the sound DSFOO, even though the lump name is specified # as "foo". Automatic prefixing now ONLY applies to sounds which # copy their mnemonic to the lumpname and allow prefix to default. } # This entry uses its mnemonic to double as the sound lump name, but already provides # the standard DS prefix in the mnemonic. sound dsblah { prefix = false # Because we did not explicitly specify a lump name, the # lump name has become "dsblah", and the default value of # prefix is true. That means we have to change it to false, # or else the game would try to play DSDSBLAH, which is # wrong. This has not changed. dehackednum = 10000 } # This entry also uses the mnemonic as the sound name, but with prefixing. # Since prefix defaults to true when the lump name is not explicitly provided, # the sound lump played will be "DSEXPLOD". This has also not changed. sound explod { priority = 128 dehackednum = 10001 } # This entry links to another sound. sound BlahLink { link = dsblah # we've linked this entry to the dsblah sound linkvol = 64 # use some suitable values for these (must experiment) linkpitch = 72 dehackednum = 10002 } # This entry overrides a previously defined sound. sound explod { priority = 96 # Maybe we like 96 better than 128... dehackednum = 10001 # We can reuse the same DeHackEd number, since it overwrites } # This sound is just an alias for explod. It will play using all the parameters # as they are defined in explod. Anything else we defined in this sound would be # totally ignored. sound Explosion { alias = explod }
Summary:
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
Eternity Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information