Ru/Worldspawn
< Ru
Jump to navigation
Jump to search
Worldspawn (или просто "Мир") - это большая одиночная сущность, которая содержит неинтерактивные части карты и некоторые глобальные конфигурации. В других словах - это:
- Браши (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.)
- 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
Related entities
There are a few other 'map property' entities which should not have more than one instance in a map. They are:
- Skybox
- env_fog_controller (only in pre-L4D games)
- light_environment
- shadow_control
- env_sun ()
Подтвердить:actually, multiple suns might be allowable
- sky_camera (unique location)
- Optimisation
- game_ragdoll_manager
- game_weapon_manager
- game_gib_manager
- water_lod_control
- Logic
- game_end
- info_intermission (unique location)
- env_global
Keyvalues

All Source games
- Map Description / Title. ([todo internal name (i)]) <строка >
- Map's description / title.
Примечание:Doesn't seem to be used anywhere anymore.
- Chapter Title Message ([todo internal name (i)]) <строка >
- Chapter Title that appears onscreen when this level starts.
- Level Fade In ([todo internal name (i)]) <булева переменная >
- Fades the map in.
- Display Game Title ([todo internal name (i)]) <булева переменная >
- Should the game's title appear on-screen when the map starts?
- New Level Unit ([todo internal name (i)]) <варианты выбора>
- 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)]) <число с плавающей запятой >
- [Used on PC] Prevents occlusion testing for entities that take up more than X% of the screen.
- Min occluder area ([todo internal name (i)]) <число с плавающей запятой >
- [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)]) <число с плавающей запятой >
- [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)]) <число с плавающей запятой >
- [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)]) <число с плавающей запятой >
- 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)]) <число с плавающей запятой >
- 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)]) <строка >
- Detail.vbsp file to use for emitting detail props (found in directory <root>/modname)
- Detail material file ([todo internal name (i)]) <строка >
- Material for detail sprites to use for drawing detail props
- World is cold ([todo internal name (i)]) <булева переменная >
- If set, Day of Defeat: Source player models will emit breath particles from their mouth attachments. No effect elsewhere.
ResponseContext:
- Response Contexts (ResponseContext) <строка >
- 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)]) <варианты выбора>
- Controls the spawning behavior of some special infected, such as Witches.
Примечание: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)]) <варианты выбора>
- Music type of the safe room.
- 0 : Mission Start
- 1 : Check Point
Portal 2
- Paint in map ([todo internal name (i)]) <булева переменная >
- 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)]) <целое число >
- Maximum number of paint blobs. Should NOT exceed 250.
Inputs
ResponseContext:
- AddContext <строка >
- Adds to the entity's list of response contexts. Format is
<key>:<value>
.
- RemoveContext <строка >
- 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.