Ru/Func movelinear: Difference between revisions

From Valve Developer Community
< Ru
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
{{base brush|func_movelinear}}  
{{base brush|func_movelinear}}  


==Entity description==
== Описание Энтити ==
It moves linearly along a given distance, in a given direction. Unlike a [[func_door]], it can be positioned anywhere along its axis of movement.  
It moves linearly along a given distance, in a given direction. Unlike a [[func_door]], it can be positioned anywhere along its axis of movement.  


Line 12: Line 12:
{{warning|There are bugs with [[parenting]] this entity to another func_movelinear. Func_door can be used as a work around. A fix is located under [[CFuncMoveLinear_ParentingFix]]}}
{{warning|There are bugs with [[parenting]] this entity to another func_movelinear. Func_door can be used as a work around. A fix is located under [[CFuncMoveLinear_ParentingFix]]}}


== Keyvalues ==
== Параметры ==
{{KV|Move Direction (Pitch Yaw Roll)|angle|The direction the brushes will move, when told to.}}
{{KV|Move Direction (Pitch Yaw Roll)|angle|The direction the brushes will move, when told to.}}
{{KV|Start Position|float|Position of brush when spawned, where 0 is the starting position and 1 is the starting position + (move direction * move distance).}}
{{KV|Start Position|float|Position of brush when spawned, where 0 is the starting position and 1 is the starting position + (move direction * move distance).}}
Line 25: Line 25:
{{KV RenderFields}}
{{KV RenderFields}}


== Flags ==
== Флаги ==
* 8 : Not Solid
* 8 : Not Solid


== Inputs ==
== Входы ==
{{IO|Open|Move the brush to the end position (starting position + (move direction * move distance)).}}
{{IO|Open|Move the brush to the end position (starting position + (move direction * move distance)).}}
{{IO|Close|Move the brush to the starting position.}}
{{IO|Close|Move the brush to the starting position.}}
Line 37: Line 37:
{{I RenderFields}}
{{I RenderFields}}


== Outputs ==
== Выходы ==
{{IO|OnFullyOpen|Fired when the brush reaches the end position (starting position + (move direction * move distance)).}}
{{IO|OnFullyOpen|Fired when the brush reaches the end position (starting position + (move direction * move distance)).}}
{{IO|OnFullyClosed|Fired when the brush reaches the starting position.}}
{{IO|OnFullyClosed|Fired when the brush reaches the starting position.}}
{{O Targetname}}
{{O Targetname:ru}}


==See also==
== Смотри также ==
* [http://twhl.info/vault.php?map=3920 Example map of a counter-weighted door].
* [http://twhl.info/vault.php?map=3920 Example map of a counter-weighted door].

Revision as of 01:57, 3 November 2014

Template:Otherlang2 Template:Finishtranslation:ru Template:Base brush

Описание Энтити

It moves linearly along a given distance, in a given direction. Unlike a func_door, it can be positioned anywhere along its axis of movement.

Template:Brushmodel

Note.pngПримечание:The SetPosition input and Start Position keyvalue do not perform any bounds checking, so values <0 and >1 can be used. Negative values will move in the opposite direction to the movement direction, and values greater than 1 will move it in multiples of the set Move Distance. Moving past the opened/closed position does not trigger the OnFullyOpen/Closed outputs.
Warning.pngПредупреждение:There are bugs with parenting this entity to another func_movelinear. Func_door can be used as a work around. A fix is located under CFuncMoveLinear_ParentingFix

Параметры

Move Direction (Pitch Yaw Roll) ([todo internal name (i)]) <угол(en)>
The direction the brushes will move, when told to.
Start Position ([todo internal name (i)]) <число с плавающей запятой(en)>
Position of brush when spawned, where 0 is the starting position and 1 is the starting position + (move direction * move distance).
Speed ([todo internal name (i)]) <целое число(en)>
The speed that the brush moves, in inches per second.
Move Distance ([todo internal name (i)]) <число с плавающей запятой(en)>
The distance from the starting point that the brush should move, in inches.
Block Damage ([todo internal name (i)]) <число с плавающей запятой(en)>
The amount of damage to do to any entity that blocks the brushes, per frame.
Sound played when the brush starts moving. ([todo internal name (i)]) <sound(en)>
The sound to play when the brush starts moving.
Sound played when the brush stops moving. ([todo internal name (i)]) <sound(en)>
The sound to play when the brush stops moving.
Name(en) (targetname) <объект источник(en)>
Имя объекта, по которому другие объекты могут ссылаться на этот объект, через Входы/Выходы(en) или другие ключ-параметры(en) (например parentname или target).
Также отображаются на 2D-видах в Hammer и Отчёте об объектах (Entity Report)(en).
См. также:  Основные ключ-параметры, входы и выходы доступные для всех объектов

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.

Origin:

Origin (X Y Z) (origin) <origin(en)>
The position of this entity's center in the world. Rotating entities typically rotate around their origin.

RenderFields:


Render Mode (rendermode) <байт(en) выбор>
Устанавливает нестандартный режим отображения этого объекта.
Режимы отображения
  • 0: Нормально
  • 1: Цвет
  • 2: Текстура
  • 3: Свечение
  • 4: Цельный/Тест прозрачности Obsolete
  • 5: Наложение
  • 6: Удалён, ничего не делает Obsolete
  • 7: Промежуточные кадры
  • 8: Добавление прозрачности
  • 9: Масштабируемое свечение
  • 10: Не отображать
Render FX(en) (renderfx) <байт(en) выбор>
Various somewhat legacy alpha effects. See render effects.
Render Amount / Transparency (renderamt) <байт(en)>
Transparency amount, requires a Render Mode other than Normal. 0 is invisible, 255 is fully visible.
Render Color (R G B) (rendercolor) <цвет КЗС(en)>
Color tint.

Флаги

  • 8 : Not Solid

Входы

Open
Move the brush to the end position (starting position + (move direction * move distance)).
Close
Move the brush to the starting position.
SetPosition <строка(en)>
Move the brush to a specific position, where 0 is the starting position and 1 is the starting position + (move direction * move distance).
SetSpeed <число с плавающей запятой(en)>
Set the speed and update immediately.


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.

RenderFields:

Alpha <целое число(en) 0–255>
Sets the entity's transparency to a number from 0 (invisible) to 255 (fully visible). Requires the entity to have its rendermode set to a number other than 0.
Color <цвет КЗС(en)>
Sets an RGB color for the entity.

Выходы

OnFullyOpen
Fired when the brush reaches the end position (starting position + (move direction * move distance)).
OnFullyClosed
Fired when the brush reaches the starting position.
Targetname:
OnUser1 to OnUser4
Вызывается в ответ на входы FireUser; (см. Пользовательские вводы и выводы).
OnKilled  (Во всех играх начиная с Left 4 Dead)
Вызывается после уничтожения энтити и удаления её из игры.

Смотри также