Worldspawn: Difference between revisions
Jump to navigation
Jump to search
Tip:Access these properties in Hammer with Main menu > Map > Map properties...
Note:These two parameters might not appear if you have propper.fgd in Hammer.
Confirm:does this have the same bug as in Source?
(→See also: removed cworld, broken link) |
Kestrelguy (talk | contribs) m (added some GoldSource info based on Half-Life.fgd and Team Fortress Classic.fgd) |
||
Line 11: | Line 11: | ||
Some other notes: | Some other notes: | ||
*[[Wikipedia:Highlander (film)|There can be only one.]] (Since Hammer doesn't allow worldspawn to be created directly it's very difficult for this rule to be broken.) Related to this, do not clone any part of your world after selecting it via map properties. This will duplicate worldspawn, causing crashes. Deselecting after this however and cloning after deselecting will behave as normal. | *[[Wikipedia:Highlander (film)|There can be only one.]] (Since Hammer doesn't allow worldspawn to be created directly, it's very difficult for this rule to be broken.) Related to this, do not clone any part of your world after selecting it via map properties. This will duplicate worldspawn, causing crashes. Deselecting after this however and cloning after deselecting will behave as normal. | ||
*Damage from the environment and suicide is ordinarily attributed to the world. | *Damage from the environment and suicide is ordinarily attributed to the world. | ||
*[[Constraint]]s can be assigned to worldspawn by not specifying a name for their subject/target. | *[[Constraint]]s can be assigned to worldspawn by not specifying a name for their subject/target. | ||
== See | == See Also == | ||
* [[Skybox]] | * [[Skybox]] | ||
Line 22: | Line 22: | ||
{{tip|Access these properties in Hammer with ''Main menu > Map > Map properties...''}} | {{tip|Access these properties in Hammer with ''Main menu > Map > Map properties...''}} | ||
=== | === {{Source|4}} Games === | ||
{{KV|Map Description / Title | {{KV|Map Description / Title|string|Map's description/title. {{note|Doesn't seem to be used anywhere anymore.}}}} | ||
{{KV|SkyBox Texture Name|string|[[Skybox]] material. See [[Sky List]].}} | {{KV|SkyBox Texture Name|string|[[Skybox]] material. See [[Sky List]].}} | ||
{{KV|Chapter Title Message|string|Chapter Title that appears on-screen when this level starts.}} | {{KV|Chapter Title Message|string|Chapter Title that appears on-screen when this level starts.}} | ||
Line 37: | Line 37: | ||
{{KV|Start Fade Pixels|float|Number of pixels wide at which all props in the level start to fade (<0 {{=}} use fademaxdist). This number is ignored if the prop has a specific fade distance specified.}} | {{KV|Start Fade Pixels|float|Number of pixels wide at which all props in the level start to fade (<0 {{=}} use fademaxdist). This number is ignored if the prop has a specific fade distance specified.}} | ||
{{KV|End Fade Pixels|float|Minimum number of pixels wide at which the prop is visible (0 {{=}} don't fade out). This number is ignored if the prop has a specific fade distance specified.}} | {{KV|End Fade Pixels|float|Minimum number of pixels wide at which the prop is visible (0 {{=}} don't fade out). This number is ignored if the prop has a specific fade distance specified.}} | ||
{{KV|Detail.vbsp file|string|Detail.vbsp file to use for emitting detail props (found in directory <root>/modname)}} | {{KV|Detail.vbsp file|string|Detail.vbsp file to use for emitting detail props (found in directory <code><root>/modname</code>)}} | ||
{{KV|Detail material file|string|Material for detail sprites to use for drawing detail props}} | {{KV|Detail material file|string|Material for detail sprites to use for drawing detail props}} | ||
{{KV|World is cold|boolean|If set, | {{KV|World is cold|boolean|If set, {{dods|2}} player models will emit breath particles from their mouth [[attachment]]s. No effect elsewhere.}} | ||
{{KV|_minlight|float|nofgd=1|The minimum level of ambient light that hits the world. It does not affect any entities, including props!}} | {{KV|_minlight|float|nofgd=1|The minimum level of ambient light that hits the world. It does not affect any entities, including props!}} | ||
{{KV ResponseContext}} | {{KV ResponseContext}} | ||
== | == {{l4d2|4}} == | ||
{{KV|Time of day|choices|Witches will wander if set to "afternoon" otherwise this has no purpose. {{note|Doesn't influence lighting or environment in any way. You still need to configure the | {{KV|Time of day|choices|Witches will wander if set to "afternoon" otherwise this has no purpose. {{note|Doesn't influence lighting or environment in any way. You still need to configure the {{ent|light_environment}} so the sun/moon has the appropriate light color and brightness.}}}} | ||
:* 0 : Midnight | :* 0 : Midnight | ||
:* 1 : Dawn | :* 1 : Dawn | ||
Line 56: | Line 56: | ||
{{KV|Music Post-Fix String|string|The musical theme of the map.}} | {{KV|Music Post-Fix String|string|The musical theme of the map.}} | ||
== | == {{Portal2|4}} == | ||
{{KV|[[Paint in map]]|boolean|Allow paint to cover surfaces? Set to No to save resources for maps that don't use paint.}} | {{KV|[[Paint in map]]|boolean|Allow paint to cover surfaces? Set to No to save resources for maps that don't use paint.}} | ||
{{KV|[[Max number of blobs]]|integer|Maximum number of [[paint_sphere|paint blobs]]. Should NOT exceed 250.}} | {{KV|[[Max number of blobs]]|integer|Maximum number of [[paint_sphere|paint blobs]]. Should NOT exceed 250.}} | ||
{{note|These two parameters might not appear if you have [[propper]].fgd in | {{note|These two parameters might not appear if you have [[propper]].fgd in Hammer.}}<!---This probably affects other games, too. Not certain.---> | ||
== | == {{bms|4}} == | ||
{{KV|Under Water Particles|choices}} | {{KV|Under Water Particles|choices}} | ||
:* underwater_default : Rubbish | :* underwater_default : Rubbish | ||
Line 67: | Line 67: | ||
:* underwater_tentacle_water : Tentacle Shit Water | :* underwater_tentacle_water : Tentacle Shit Water | ||
== | == {{sin|4}} == | ||
{{KV|Arena Mode Time Limit|integer|The number of seconds an arena mode map should last. (default: 900s (15 min))}} | {{KV|Arena Mode Time Limit|integer|The number of seconds an arena mode map should last. (default: 900s (15 min))}} | ||
== [[ | == {{gldsrc|4}} == | ||
{{KV|CD track to play|integer|[[Trigger cdaudio (GoldSource Engine)|CD track number]] to play on map load}} | {{todo|should probably be split off into its own page ''a la'' {{ent|light}}/[[light (GoldSource Engine)]].}} | ||
{{KV|Default Wave Height|string|Sets the water wave height}} | {{KV|Map Description / Title|intn=message|string|Map's description/title. {{!fgd}} in {{tfc}}.}} | ||
{{KV|Map Team List|string}} | {{KV|Environment map (<code>cl_skyname</code>)|intn=skyname|string|The [[skybox]] to use. See [[Sky List#GoldSource Engine Games|Sky List]].}} | ||
{{KV|Default Team|choices | {{KV|intn=sounds|CD track to play|integer|[[Trigger cdaudio (GoldSource Engine)|CD track number]] to play on map load}} | ||
{{KV|intn=light|Default light level|integer}} | |||
{{KV|Default Wave Height||intn=WaveHeight|string|Sets the water wave height}} | |||
{{KV|intn=MaxRange|Max Viewable Distance|string|Default is 4096.}} | |||
{{KV|Level Fade In|intn=startdark|choices|Fades the map in. | |||
:* 0: No | |||
:* 1: Yes | |||
{{confirm|does this have the same bug as in Source?}}}} | |||
{{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|Default Team|choices|intn=defaultteam| | |||
:* 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" | ||
:* 1 : "CTF map" | :* 1 : "CTF map" | ||
{{KV|Ambience|choices|only={{DMC}}}} | {{KV|Ambience|choices|only={{DMC}}}} | ||
:* 0 : | :* 0 : Medieval | ||
:* 1 : Runic (metal) | :* 1 : Runic (metal) | ||
:* 2 : Present (base) | :* 2 : Present (base) |
Revision as of 13:08, 1 May 2022
Worldspawn (or just "the world") is the single entity that stores the noninteractive parts of a map, alongside some global configuration options. In other words:
- Brushes (except those used by entities)
- Static props
- Map name, skybox, contexts...
Some other notes:
- There can be only one. (Since Hammer doesn't allow worldspawn to be created directly, it's very difficult for this rule to be broken.) Related to this, do not clone any part of your world after selecting it via map properties. This will duplicate worldspawn, causing crashes. Deselecting after this however and cloning after deselecting will behave as normal.
- Damage from the environment and suicide is ordinarily attributed to the world.
- Constraints can be assigned to worldspawn by not specifying a name for their subject/target.
See Also
Keyvalues

Source Games
- Map Description / Title ([todo internal name (i)]) <string>
- Map's description/title.
Note:Doesn't seem to be used anywhere anymore.
- Chapter Title Message ([todo internal name (i)]) <string>
- Chapter Title that appears on-screen when this level starts.
- Display Game Title ([todo internal name (i)]) <boolean>
- Should the game's title appear on-screen when the map starts?
- New Level Unit ([todo internal name (i)]) <choices>
- Used to clear out savegame data of previous levels to keep the savegame size as small as possible. Only set it to Yes if the player cannot return to any previous levels.
- 0 : No, keep current
- 1 : Yes, clear previous levels
- Max occludee area ([todo internal name (i)]) <float>
- [Used on PC] Prevents occlusion testing for entities that take up more than X% of the screen.
- Min occluder area ([todo internal name (i)]) <float>
- [Used on PC] Prevents occluders from being used if they take up less than X% of the screen.
- Max occludee area (Xbox) ([todo internal name (i)]) <float>
- [Used on 360] Prevents occlusion testing for entities that take up more than X% of the screen.
- Min occluder area (Xbox) ([todo internal name (i)]) <float>
- [Used on 360] Prevents occluders from being used if they take up less than X% of the screen.
- Start Fade Pixels ([todo internal name (i)]) <float>
- Number of pixels wide at which all props in the level start to fade (<0 = use fademaxdist). This number is ignored if the prop has a specific fade distance specified.
- End Fade Pixels ([todo internal name (i)]) <float>
- Minimum number of pixels wide at which the prop is visible (0 = don't fade out). This number is ignored if the prop has a specific fade distance specified.
- Detail.vbsp file ([todo internal name (i)]) <string>
- Detail.vbsp file to use for emitting detail props (found in directory
<root>/modname
)
- Detail material file ([todo internal name (i)]) <string>
- Material for detail sprites to use for drawing detail props
- World is cold ([todo internal name (i)]) <boolean>
- If set,
Day of Defeat: Source player models will emit breath particles from their mouth attachments. No effect elsewhere.
- _minlight ([todo internal name (i)]) <float> !FGD
- The minimum level of ambient light that hits the world. It does not affect any entities, including props!
ResponseContext:
- Response Contexts (ResponseContext) <string>
- Pre-defined response system context{s} for this entity. Format is
key:value,key:value,...
When this entity speaks, the list of keys & values will be passed to the response rules system.
Left 4 Dead 2
- Time of day ([todo internal name (i)]) <choices>
- Witches will wander if set to "afternoon" otherwise this has no purpose.
Note:Doesn't influence lighting or environment in any way. You still need to configure the light_environment so the sun/moon has the appropriate light color and brightness.
- 0 : Midnight
- 1 : Dawn
- 2 : Morning
- 3 : Afternoon
- 4 : Dusk
- 5 : Evening
- Start Music Type ([todo internal name (i)]) <choices>
- Music type of the safe room.
- 0 : Mission Start
- 1 : Check Point
Portal 2
- Paint in map ([todo internal name (i)]) <boolean>
- Allow paint to cover surfaces? Set to No to save resources for maps that don't use paint.
- Max number of blobs ([todo internal name (i)]) <integer>
- Maximum number of paint blobs. Should NOT exceed 250.

Black Mesa
- Under Water Particles ([todo internal name (i)]) <choices>
-
- underwater_default : Rubbish
- underwater_ion : Blue Ions
- underwater_tentacle_water : Tentacle Shit Water
SiN
- Arena Mode Time Limit ([todo internal name (i)]) <integer>
- The number of seconds an arena mode map should last. (default: 900s (15 min))
GoldSrc
Todo: should probably be split off into its own page a la light/light (GoldSource Engine).
- CD track to play (sounds) <integer>
- CD track number to play on map load
- 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

- 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>
-
- 0 : Fewest Players
- 1 : First Team
!FGD in .
- Default CTF ([todo internal name (i)]) <choices> (only in
)
-
- 0 : "Not CTF map"
- 1 : "CTF map"
- Ambience ([todo internal name (i)]) <choices> (only in
)
-
- 0 : Medieval
- 1 : Runic (metal)
- 2 : Present (base)
- Game mode ([todo internal name (i)]) <choices> (only in
)
-
- 0 : Arena
- 1 : Deathmatch
Inputs
ResponseContext:
- AddContext <string >
- Adds to the entity's list of response contexts. Format is
<key>:<value>
.
- RemoveContext <string >
- Remove a context from this entity's list. The name should match the key of an existing context.
- ClearContext
- Removes all contexts from this entity's list.