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

Worldspawn (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 23: Line 23:
:* 0 : "Not CTF map"
:* 0 : "Not CTF map"
:* 1 : "CTF map"
:* 1 : "CTF map"
{{KV|Ambience|choices|only={{DMC}}}}
{{KV|Ambience|intn=worldtype|choices|only={{DMC}}}}
:* 0 : Medieval
:* 0 : Medieval
:* 1 : Runic (metal)
:* 1 : Runic (metal)

Revision as of 09:28, 1 July 2024

worldspawn is a point 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.

  [todo tested in ?]

Default light level (light) <integer>
Default Wave Height (WaveHeight) <string>
Sets the water wave height
Max Viewable Distance (MaxRange) <string>
Default is 4096.
Level Fade In (startdark) <choices>
Fades the map in.
  • 0: No
  • 1: Yes
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) <choices>
!FGD in Team Fortress Classic.
  • 0 : Fewest Players
  • 1 : First Team
Default CTF ([todo internal name (i)]) <choices> (only in Half-Life: Opposing Force)
  • 0 : "Not CTF map"
  • 1 : "CTF map"
Ambience (worldtype) <choices> (only in Deathmatch Classic)
  • 0 : Medieval
  • 1 : Runic (metal)
  • 2 : Present (base)
Game mode ([todo internal name (i)]) <choices> (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" ]