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
No edit summary
mNo edit summary
Line 20: Line 20:
:* 1 : First Team
:* 1 : First Team
}}
}}
{{KV|Default CTF|choices|only={{HL1:OP4}}}}
{{KV|Default CTF|choices|only={{op4}}}}
:* 0 : "Not CTF map"
:* 0 : "Not CTF map"
:* 1 : "CTF map"
:* 1 : "CTF map"
Line 30: Line 30:
:* 0 : Arena
:* 0 : Arena
:* 1 : Deathmatch
:* 1 : Deathmatch
=== Better music selector ===
Replace the {{code|sounds}} key in the {{hl1|4}} FGD with this entry to more easily know which track belongs to which MP3 file.
{{codeblock|<nowiki> sounds(choices) : "CD track to play" : 1 : "CD track to play when the level begins."=
[
-1 : "Stop"
1 : "None"
2 : "Half-Life01.mp3"
3 : "Prospero01.mp3"
4 : "Half-Life12.mp3"
5 : "Half-Life07.mp3"
6 : "Half-Life10.mp3"
7 : "Suspense01.mp3"
8 : "Suspense03.mp3"
9 : "Half-Life09.mp3"
10 : "Half-Life02.mp3"
11 : "Half-Life13.mp3"
12 : "Half-Life04.mp3"
13 : "Half-Life15.mp3"
14 : "Half-Life14.mp3"
15 : "Half-Life16.mp3"
16 : "Suspense02.mp3"
17 : "Half-Life03.mp3"
18 : "Half-Life08.mp3"
19 : "Prospero02.mp3"
20 : "Half-Life05.mp3"
21 : "Prospero04.mp3"
22 : "Half-Life11.mp3"
23 : "Half-Life06.mp3"
24 : "Prospero03.mp3"
25 : "Half-Life17.mp3"
26 : "Prospero05.mp3"
27 : "Suspense05.mp3"
28 : "Suspense07.mp3"
29 : "gamestartup.mp3"
30 : "None"
]
</nowiki>}}

Revision as of 10:35, 3 December 2023

Template:EntityTabs

worldspawn is an e0 available in all GoldSrc GoldSrc games.

Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{gldsrc}} template. This can most likely be fixed by setting the value of the {{{engine}}} parameter to GoldSrc.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

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
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 ([todo internal name (i)]) <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 : "Stop" 1 : "None" 2 : "Half-Life01.mp3" 3 : "Prospero01.mp3" 4 : "Half-Life12.mp3" 5 : "Half-Life07.mp3" 6 : "Half-Life10.mp3" 7 : "Suspense01.mp3" 8 : "Suspense03.mp3" 9 : "Half-Life09.mp3" 10 : "Half-Life02.mp3" 11 : "Half-Life13.mp3" 12 : "Half-Life04.mp3" 13 : "Half-Life15.mp3" 14 : "Half-Life14.mp3" 15 : "Half-Life16.mp3" 16 : "Suspense02.mp3" 17 : "Half-Life03.mp3" 18 : "Half-Life08.mp3" 19 : "Prospero02.mp3" 20 : "Half-Life05.mp3" 21 : "Prospero04.mp3" 22 : "Half-Life11.mp3" 23 : "Half-Life06.mp3" 24 : "Prospero03.mp3" 25 : "Half-Life17.mp3" 26 : "Prospero05.mp3" 27 : "Suspense05.mp3" 28 : "Suspense07.mp3" 29 : "gamestartup.mp3" 30 : "None" ]