This article's documentation is for the "GoldSrc" engine. Click here for more information.

worldspawn

From Valve Developer Community
Jump to: navigation, search

worldspawn is an entity available in all GoldSrc GoldSrc games.

Key Values

Map Description / Title (message) <string>
Map's description/title. !FGD in Team Fortress Classic.
Environment map (cl_skyname) (skyname) <string>
The skybox to use. See Sky List.
CD track to play (sounds) <integer>
CD track number to play upon map load.
Icon-Bug.pngBug:Only works properly if game is using the 🖿valve directory
PlacementTip.pngWorkaround:Put a trigger_cdaudio that encompasses info_player_start.
  (tested in: Steampipe, HL25)
Default light level (light) <integer>
Same as _minlight.
Default Wave Height (WaveHeight) <float>
Sets the water wave height
Max Viewable Distance (MaxRange) <float>
Default is 4096.
Level Fade In (startdark) <boolean>
Fades the map in.
Confirm:does this have the same bug as in Source?[Clarify]
Display Game Title (gametitle) <boolean>
Should the game's title appear on-screen when the map starts?
Map Team List (mapteams) <string>
Default Team (defaultteam) <boolean>
!FGD in Team Fortress Classic.
  • 0 : Fewest Players
  • 1 : First Team
Default CTF (defaultctf) <boolean> (only in Half-Life: Opposing Force)
  • 0 : "Not CTF map"
  • 1 : "CTF map"
Ambience / World Type (worldtype) <integer choices> (only in Deathmatch Classic) Obsolete
Deprecated.
Leftover from Quake Quake I, where it was used to determine what sounds doors and keys used, what models keys use, and what the keys are called. As func_door's sound handling is completely revamped, and the source code for item_key1 and item_key2 is commented out with a #if 0, this KV goes unused by vanilla game code.
  • 0 : Medieval
  • 1 : Runic (metal)
  • 2 : Present (base)
For additional specifics, see Quake1-16px.png QuakeWiki's page on worldspawn.
Game mode (no_arena) <boolean> (only in Ricochet)
  • 0 : Arena
  • 1 : Deathmatch

Better music selector

Replace the sounds key in the Half-Life Half-Life FGD with this entry to more easily know which track belongs to which MP3 file.

sounds(choices) : "CD track to play" : 1 : "CD track to play when the level begins."= [ -1 : "-1 - Stop" 1 : "1 - None" 2 : "2 - Half-Life01.mp3" 3 : "3 - Prospero01.mp3" 4 : "4 - Half-Life12.mp3" 5 : "5 - Half-Life07.mp3" 6 : "6 - Half-Life10.mp3" 7 : "7 - Suspense01.mp3" 8 : "8 - Suspense03.mp3" 9 : "9 - Half-Life09.mp3" 10 : "10 - Half-Life02.mp3" 11 : "11 - Half-Life13.mp3" 12 : "12 - Half-Life04.mp3" 13 : "13 - Half-Life15.mp3" 14 : "14 - Half-Life14.mp3" 15 : "15 - Half-Life16.mp3" 16 : "16 - Suspense02.mp3" 17 : "17 - Half-Life03.mp3" 18 : "18 - Half-Life08.mp3" 19 : "19 - Prospero02.mp3" 20 : "20 - Half-Life05.mp3" 21 : "21 - Prospero04.mp3" 22 : "22 - Half-Life11.mp3" 23 : "23 - Half-Life06.mp3" 24 : "24 - Prospero03.mp3" 25 : "25 - Half-Life17.mp3" 26 : "26 - Prospero05.mp3" 27 : "27 - Suspense05.mp3" 28 : "28 - Suspense07.mp3" 29 : "29 - gamestartup.mp3" 30 : "30 - None" ]