Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Editing worldspawn
From Quake Wiki
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.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | The '''worldspawn''' is a special entity that defines all the static geometry in a Quake level, along with various settings of the level, such as its title, the music played and other things. The worldspawn is always the first entity defined in a .map file, and in game, always the first entity loaded. | + | The '''worldspawn''' entity is a special entity that defines all the static geometry in a Quake level, along with various settings of the level, such as its title, the music played and other things. The worldspawn is always the first entity defined in a .map file, and in game, always the first entity loaded. |
==Attributes== | ==Attributes== | ||
− | ===Keys | + | ===Keys=== |
− | Note that the first table lists only the keys supported by the original [[Engines|engine]] and [[Map_compiling|compile tools]]. Modern | + | Note that the first table lists only the keys supported by the original [[Engines|engine]] and [[Map_compiling|compile tools]]. Modern compile tools and engines very frequently use keys stored in the worldspawn entity to do things the original tools and engines did not allow. Since the supported keys differ between different tools and engines, some of the most common keys are listed in a separate table below. Non-standard keys are usually prefixed with an underscore, which causes engines that do not support them to ignore them. |
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | | ! bgcolor="#eeeeee" width="80px" | ''message'' || This is the text that will be printed to the console when the level loads. It is used for the level name, though some level designers also include their name. As an example, [[ | + | | ! bgcolor="#eeeeee" width="80px" | ''message'' || This is the text that will be printed to the console when the level loads. It is used for the level name, though some level designers also include their name. As an example, [[E1M1]], the first real level of episode 1, has the text "The Slipgate Complex" as the value for this key. |
− | |||
− | |||
|- | |- | ||
− | | ! bgcolor="#eeeeee" | ''worldtype'' || This sets the | + | | ! bgcolor="#eeeeee" | ''worldtype'' || This sets the ambience of the level. Depending on this value, some entities will play different sound effects, and the key items will display differently. |
− | + | * 0 : Medieval | |
− | + | * 1 : Metal | |
− | + | * 2 : Base | |
− | |||
− | Depending on this value | ||
− | |||
− | * | ||
− | |||
− | |||
|- | |- | ||
− | | ! bgcolor="#eeeeee" | ''sounds'' || The number of the | + | | ! bgcolor="#eeeeee" | ''sounds'' || The number of the cd track to play. If using the original [[quake_soundtrack|Quake music]], valid tracks are 2 to 11. |
− | |||
− | |||
− | |||
− | |||
− | + | Many modern engines support external music files. Usually a file named with the same number as the specified CD track will be loaded, if it exists. For example [[QuakeSpasm]] will try to load the file ''music/track02.ogg'' if ''sounds:2'' is specified. The exact location of the file lookup as well as the audio formats supported depend on the engine. Most commonly supported is Ogg Vorbis. | |
|- | |- | ||
| ! bgcolor="#eeeeee" | ''light'' || The ambient light level. The [[Light_(map_compiling)|light]] tool uses the value of this key to determine the minimum value of light in the level. | | ! bgcolor="#eeeeee" | ''light'' || The ambient light level. The [[Light_(map_compiling)|light]] tool uses the value of this key to determine the minimum value of light in the level. | ||
|- | |- | ||
− | | ! bgcolor="#eeeeee" | ''wad'' || A string that tells [[QBSP]] where to look for wad files so that it can include the textures in the .bsp file it outputs | + | | ! bgcolor="#eeeeee" | ''wad'' || A string that tells [[QBSP]] where to look for wad files so that it can include the textures in the .bsp file it outputs |
|} | |} | ||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 43: | Line 30: | ||
| ! bgcolor="#eeeeee" | ''_sun_mangle'' || Sets the angle of the sun using [[mangle|pitch, yaw and roll]]. | | ! bgcolor="#eeeeee" | ''_sun_mangle'' || Sets the angle of the sun using [[mangle|pitch, yaw and roll]]. | ||
|} | |} | ||
− | |||
− | |||
===Spawnflags=== | ===Spawnflags=== | ||
− | The worldspawn entity has no spawnflags | + | The worldspawn entity has no spawnflags. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | == | + | ==Differences depending on 'worldtype' settings== |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- | <!-- | ||
Notes: | Notes: | ||
− | + | list different sound effects used (keys, plats) | |
− | + | items that have a different appearance (keys) | |
− | |||
anything else? | anything else? | ||
--> | --> | ||
[[Category:Quake entities]] | [[Category:Quake entities]] |