Worldspawn (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Key Values: engine bug; don't use worldspawn to dictate which track to play)
Line 4: Line 4:
== Key Values ==
== Key Values ==
{{KV|Map Description / Title|intn=message|string|Map's description/title. {{!fgd}} in {{tfc}}.}}
{{KV|Map Description / Title|intn=message|string|Map's description/title. {{!fgd}} in {{tfc}}.}}
{{KV|Environment map (<code>cl_skyname</code>)|intn=skyname|string|The [[skybox]] to use. See [[Sky List#GoldSource Engine Games|Sky List]].}}
{{KV|Environment map (<code>cl_skyname</code>)|intn=skyname|string|The [[skybox (GoldSrc)|skybox]] to use. See [[Sky List#GoldSrc Engine Games|Sky List]].}}
{{KV|intn=sounds|CD track to play|integer|[[Trigger cdaudio (GoldSource Engine)|CD track number]] to play on map load}}
{{KV|intn=sounds|CD track to play|integer|[[List of Half-Life 1 music|CD track number]] to play upon map load.{{bug|Only works properly if game is using the {{path|valve}} directory{{workaround|Put a {{ent|trigger_cdaudio (GoldSrc)|alt=trigger_cdaudio}} that encompasses {{ent|info_player_start (GoldSrc)|alt=info_player_start}}.
}} }} }}  
{{KV|intn=light|Default light level|integer}}
{{KV|intn=light|Default light level|integer}}
{{KV|Default Wave Height||intn=WaveHeight|string|Sets the water wave height}}
{{KV|Default Wave Height||intn=WaveHeight|string|Sets the water wave height}}
Line 12: Line 13:
:* 0: No
:* 0: No
:* 1: Yes
:* 1: Yes
{{confirm|does this have the same bug as in Source?}}}}
{{confirm|does this have the same bug as in Source?{{clarify}}}}}}
{{KV|Display Game Title|intn=gametitle|boolean|Should the game's title appear on-screen when the map starts?}}
{{KV|Display Game Title|intn=gametitle|boolean|Should the game's title appear on-screen when the map starts?}}
{{KV|Map Team List|intn=mapteams|string}}
{{KV|Map Team List|intn=mapteams|string}}
{{KV|Default Team|choices|intn=defaultteam|
{{KV|Default Team|choices|intn=defaultteam|{{!fgd}} in {{tfc}}.
:* 0 : Fewest Players
:* 0 : Fewest Players
:* 1 : First Team
:* 1 : First Team
{{!fgd}} in {{tfc}}.}}
}}
{{KV|Default CTF|choices|only={{HL1:OP4}}}}
{{KV|Default CTF|choices|only={{HL1:OP4}}}}
:* 0 : "Not CTF map"
:* 0 : "Not CTF map"

Revision as of 15:43, 11 June 2023

Template:GoldSource base point

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