Editing
EDF basics
(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!
==Gametype Functions== Starting with EDF 1.5, special functions are provided which allow the EDF parser to evaluate definitions conditionally depending on the actual type of game being played. This enables definitions which should only exist in one game type or another to be placed within a single EDF module without conflict or unnecessary waste of memory and processing time. Note that all of these functions are only valid at the topmost level of an EDF file, and not within definitions. Gametype Functions ====ifgametype(<gametype>, ...) ==== This function tests the active gametype against every gametype listed as a parameter. If the gametype matches any of the listed types, nothing will change. Otherwise, processing will skip to the next endif function. ====ifngametype(<option>, ...) ==== This function tests the active gametype against every gametype listed as a parameter. If the gametype matches none of the listed types, nothing will change. Otherwise, processing will skip to the next endif function. Gametype Values ====DOOM ==== This gametype is used for DOOM, Ultimate DOOM, DOOM II, and Final DOOM. ====HERETIC ==== This gametype is used for Heretic and Heretic: Shadow of the Serpent Riders. Notes on Gametype Values: Gametype values, like the rest of EDF, are case-insensitive. Only values listed above should be used with the gametype detection functions. Example: // this TerrainTypes floor is only available when Heretic is being played ifgametype(HERETIC) floor { flat = FLATHUH1; terrain = Lava } endif() [[Category:EDF]]
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