Ru/Env soundscape: Difference between revisions

From Valve Developer Community
< Ru
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{otherlang2
{{otherlang2
|title=Энтитя шумового оформления env_soundscape
|title=env_soundscape
|en=env_soundscape
|en=env_soundscape
}}
}}




{{base_point|env_soundscape|sprite=1}} It changes the active [[soundscape]] of players, and defines where positioned sounds within it play from.
[[Image:Env_soundscape.png|left]] Env_soundscape - это [[Internal entity|внутренняя]] [[Point entity|точечная сущность]], доступная во всех играх Source и Source 2. С помощью игроков она переключает активный [[soundscape:ru|саундскейп]], и задает точки, откуда будут исходить позиционные звуки.


A player must be within the entity's radius and be able to see it for the change to take place. The entity's soundscape will then play until another one takes over. If more than one soundscape entity is fighting for control, the nearest wins.
Игрок должен находиться в радиусе действия этой сущности и в прямой ее видимости. Саундскейп будет играть до тех пор, пока не будет задет следующий. Если за управление борются несколько саундскейпов, то побеждает ближайший.


'''env_soundscape_triggerable''' is a related entity identical to env_soundscape, but for use in conjunction with the brush entity [[trigger_soundscape]].
'''env_soundscape_triggerable''' - это сущность, родственная с env_soundscape, но используется в сочетании с брашевой сущностью [[trigger_soundscape]].


{{tip|In some mods such as TF2, soundscapes cannot be "seen" through water, in which case a triggerable soundscape is useful workaround.}}
{{tip|В некоторых модах, таких как TF2, саундскейпы не будут "видны" через воду, в этом случае поможет триггерный саундскейп.}}


== Смотрите также ==
== Смотрите также ==
Line 20: Line 20:
* [[ambient_generic:ru|ambient_generic]]
* [[ambient_generic:ru|ambient_generic]]


== Keyvalues ==
== Ключевые значения ==


{{KV|Radius|int|Defines the entity's sphere of influence. Players must also be able to see the entity for it to trigger. -1 means infinite range.}}
{{KV|Radius|int|Задает диаметр сферы саундскейпа. Также, чтобы включиться, он должен находиться в прямой видимости игроков. -1 означает бесконечную сферу.}}
{{KV|Soundscape|string|The name of the soundscape to play. Some examples are provided, but the actual list is not. The best way to browse soundscapes is from within the game with the <code>playsoundscape</code> console command.}}
{{KV|Soundscape|string|Имя проигрываемого саундскейпа. Приведены некоторые примеры, но не весь список. Лучший способ прослушать саундскейп - использовать консольную команду  <code>playsoundscape</code>.}}
{{KV|Sound Position 0-7|targetname|Entities which define the location from which any positioned sounds play. Must be entities that the client knows about (e.g [[info_target]] or anything visible).}}
{{KV|Sound Position 0-7|targetname|Задает точки на местности, где воспроизводятся позиционные звуки. Должны быть сущности, о которых клиент знает (например, [[info_target]] или любые видимые).}}
{{KV Parentname with warning}}
{{KV Parentname with warning}}
{{KV EnableDisable}}
{{KV EnableDisable}}
Line 31: Line 31:
== Inputs ==
== Inputs ==


{{IO|Enabled, Disabled|Enable/disable the soundscape. Duplicated inputs!}}
{{IO|Enabled, Disabled|Включает/отключает саундскейп. Дублированные входы}}
{{IO|ToggleEnabled|Toggle the soundscape on/off.}}
{{IO|ToggleEnabled|Переключает саундскейп вкл/выкл.}}
{{ScrollBox|
{{ScrollBox|
{{I EnableDisable}}
{{I EnableDisable}}
Line 41: Line 41:
== Outputs ==
== Outputs ==


{{IO|OnPlay|Fired when this soundscape becomes the active one.}}
{{IO|OnPlay|Взводятся, когда этот саундскейп активируется.}}
{{O Targetname}}
{{O Targetname}}


[[Category:Sound System]]
[[Category:Sound System]]

Revision as of 04:35, 2 September 2015

Template:Otherlang2


Env soundscape.png

Env_soundscape - это внутренняя точечная сущность, доступная во всех играх Source и Source 2. С помощью игроков она переключает активный саундскейп, и задает точки, откуда будут исходить позиционные звуки.

Игрок должен находиться в радиусе действия этой сущности и в прямой ее видимости. Саундскейп будет играть до тех пор, пока не будет задет следующий. Если за управление борются несколько саундскейпов, то побеждает ближайший.

env_soundscape_triggerable - это сущность, родственная с env_soundscape, но используется в сочетании с брашевой сущностью trigger_soundscape.

Tip.pngСовет:В некоторых модах, таких как TF2, саундскейпы не будут "видны" через воду, в этом случае поможет триггерный саундскейп.

Смотрите также

Ключевые значения

Radius ([todo internal name (i)]) <целое число(en)>
Задает диаметр сферы саундскейпа. Также, чтобы включиться, он должен находиться в прямой видимости игроков. -1 означает бесконечную сферу.
Soundscape ([todo internal name (i)]) <строка(en)>
Имя проигрываемого саундскейпа. Приведены некоторые примеры, но не весь список. Лучший способ прослушать саундскейп - использовать консольную команду playsoundscape.
Sound Position 0-7 ([todo internal name (i)]) <целевой объект(en)>
Задает точки на местности, где воспроизводятся позиционные звуки. Должны быть сущности, о которых клиент знает (например, info_target или любые видимые).
Parentname:
Parent (parentname) <целевой объект(en)>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Warning.pngПредупреждение:In Counter-Strike: Source, parenting this entity to another can break your map.
Start Disabled (StartDisabled) <булева переменная(en)>
Оставаться отключенным до момента активации с помощью входа Enable.
Name(en) (targetname) <объект источник(en)>
Имя объекта, по которому другие объекты могут ссылаться на этот объект, через Входы/Выходы(en) или другие ключ-параметры(en) (например parentname или target).
Также отображаются на 2D-видах в Hammer и Отчёте об объектах (Entity Report)(en).
См. также:  Основные ключ-параметры, входы и выходы доступные для всех объектов

Inputs

Enabled, Disabled
Включает/отключает саундскейп. Дублированные входы
ToggleEnabled
Переключает саундскейп вкл/выкл.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
Parentname:
SetParent <строка(en)>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <строка(en)>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <строка(en)>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.

Outputs

OnPlay
Взводятся, когда этот саундскейп активируется.