This article's documentation is for anything that uses the Source engine. Click here for more information.

worldspawn

From Valve Developer Community
Jump to: navigation, search
English (en)Deutsch (de)Русский (ru)中文 (zh)
... Icon-Important.png
List of entities

This page is being translated by DaKang233. Anyone is welcome to add new content or fix errors.


worldspawn is a point entity available in all Source Source games.它 (或者“the world”) 是存储地图的非交互式部分以及一些全局配置选项的单个实体。它包括:

其他的一些注释:

  • 一个地图中只能存在一个。(由于 Hammer 不允许直接创建 worldspawn,因此很难打破此规则。)另外,通过地图属性选择世界后,请勿克隆世界的任何部分。这将复制 worldspawn 实体,导致崩溃。但是,在此之后取消选择和取消选择后的克隆将正常运行。
  • 环境破坏和自杀通常归咎于世界实体。
  • 约束器可以通过不为其作用目标实体指定名称来把作用分配给 worldspawn。

另请参阅

键值

Tip.pngTip:在 Hammer 中通过主菜单 → Map → Map properties... 访问这些选项。

Source Source 游戏

Map Description / Title (message) <string简体中文> | 字符串
地图的描述/标题。
Note.pngNote:似乎不再在任何地方使用。
SkyBox Texture Name (skyname) <string简体中文> | 字符串
天空盒的材质。另见 Sky List.
Chapter Title Message (chaptertitle) <string简体中文> | 字符串
此关卡开始时显示在屏幕上的章节标题。
Level Fade In (startdark) <boolean> | 布尔值
淡入地图。
Icon-Bug.pngBug:每次加载地图时都会执行淡入淡出,包括从保存的游戏加载时。请改用 env_fade
Display Game Title (gametitle) <boolean> | 布尔值
地图开始时,游戏标题应该出现在屏幕上吗?
Icon-Bug.pngBug:启用时,由于某种原因会使游戏崩溃。
New Level Unit (newunit) <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 (maxoccludeearea) <float> | 浮点型
[Used on PC] Prevents occlusion testing for entities that take up more than X% of the screen.
Min occluder area (minoccludeearea) <float> | 浮点型
[Used on PC] Prevents occluders from being used if they take up less than X% of the screen.
Max occludee area (Xbox) (maxoccludeearea_x360) <float> | 浮点型
[Used on 360] Prevents occlusion testing for entities that take up more than X% of the screen.
Min occluder area (Xbox) (minoccludeearea_x360) <float> | 浮点型
[Used on 360] Prevents occluders from being used if they take up less than X% of the screen.
Start Fade Pixels (maxpropscreenwidth) <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 (minpropscreenwidth) <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 (detailvbsp) <string简体中文> | 字符串
Detail.vbsp file to use for emitting detail props (found in directory <root>/modname)
Detail material file (detailmaterial) <string简体中文> | 字符串
Material for detail sprites to use for drawing detail props
World is cold (coldworld) <boolean> | 布尔值
If set, Day of Defeat: Source Day of Defeat: Source player models will emit breath particles from their mouth attachments. No effect elsewhere.
_minlight <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 Left 4 Dead 2

Time of day (timeofday) <choices>
Witches will wander if set to "afternoon" otherwise this has no purpose.
Note.pngNote: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 (startmusictype) <choices>
Music type of the safe room.
  • 0 : Mission Start
  • 1 : Check Point
Music Post-Fix String (musicpostfix) <string简体中文> | 字符串
The musical theme of the map.

Portal 2 Portal 2

Paint in map <boolean> | 布尔值
Allow paint to cover surfaces? Set to No to save resources for maps that don't use paint.
Max number of blobs <integer> | 整数
Maximum number of paint blobs. Should NOT exceed 250.
Note.pngNote:These two parameters might not appear if you have propper.fgd in Hammer.

Black Mesa Black Mesa

Under Water Particles <choices>
  • underwater_default : Rubbish
  • underwater_ion : Blue Ions
  • underwater_tentacle_water : Tentacle Shit Water

SiN SiN

Arena Mode Time Limit <integer> | 整数
The number of seconds an arena mode map should last. (default: 900s (15 min))

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.