Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

worldspawn

From Quake Wiki

Revision as of 18:06, 28 March 2013 by Than (talk | contribs) (worldtype section to list ''in detail'' the differences)

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

Keys

Note that the first table lists only the keys supported by the original engine and 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.

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.
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
sounds The number of the cd track to play. If using the original Quake music, valid tracks are 2 to 11.
light The ambient light level. The light tool uses the value of this key to determine the minimum value of light in the level.
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
_sunlight Brightness of the light coming from any sky brushes in the level.
_sun_mangle Sets the angle of the sun using pitch, yaw and roll.

Spawnflags

The worldspawn entity has no spawnflags.

Differences depending on 'worldtype' settings