Template:I BaseEntity:ru: Difference between revisions
(Russification) |
m (- changed links to lang suffix redirect pages to the redirected link) |
||
(14 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{lang|Template:I BaseEntity}} __NOTOC__ | ||
{{finishtranslation}} | |||
| | This template is our holder for all [[inputs]] assigned through {{ent|CBaseEntity}}. The template has a very specific syntax that you must follow to apply properly, because new games have added new features throughout the years. See [[Help:Templates]] for more info on named parameters. | ||
}}__NOTOC__ | |||
<pre>{{I BaseEntity}}</pre> | <pre>{{I BaseEntity}}</pre> | ||
'''No parameters:''' display inputs for ALL games. | '''No parameters:''' display inputs for ALL games. | ||
Line 15: | Line 12: | ||
*<code>base</code> | *<code>base</code> | ||
*<code>l4d2</code> | *<code>l4d2</code> | ||
*<code> | *<code>as</code> | ||
*<code>prel4d</code> - (DEPRECATED 9/28/18: This parameter existed to hide DispatchEffect for games (ones before l4d) that did not have it. There's many cases of similar inputs and keyvalues that aren't in absolutely everything, and making similar parameters for all of those simply isn't worth the trouble, especially considering having to comb through every existing use of those templates. Parameter is totally removed from code and affects nothing.) | *<code>prel4d</code> - (DEPRECATED 9/28/18: This parameter existed to hide DispatchEffect for games (ones before l4d) that did not have it. There's many cases of similar inputs and keyvalues that aren't in absolutely everything, and making similar parameters for all of those simply isn't worth the trouble, especially considering having to comb through every existing use of those templates. Parameter is totally removed from code and affects nothing.) | ||
{{note|If you want to edit something on this template, please make sure you edit it in both places. ''Per-game'' inputs are duplicated, for complex technical reasons.}} | {{note|If you want to edit something on this template, please make sure you edit it in both places. ''Per-game'' inputs are duplicated, for complex technical reasons.}} | ||
For full documentation on this family of templates, see [[FGD Template Prototype]]. Still confused on something? '''Ask for help''' before editing this template. | For full documentation on this family of templates, see [[FGD Template Prototype]]. Still confused on something? '''Ask for help''' before editing this template. | ||
* <tt>noscroll</tt> – tells the template not to scroll. | |||
{{note|Some <code>CBaseEntity</code> inputs are not covered here. See the talk page.}} | {{note|Some <code>CBaseEntity</code> inputs are not covered here. See the talk page.}} | ||
[[Category:Input Templates | [[Category:Input Templates:ru]] | ||
---- | ---- | ||
< | <onlyinclude><!-- | ||
-->{{ | -->{{ScrollBox|title=Основные|noscroll={{{noscroll|}}}| | ||
{{IO|Kill|Удаляет | {{IO:ru|Kill|Удаляет этот объект и все связанные с ним дочерние объекты из мира.}} | ||
{{IO|KillHierarchy|Функционирует так же, как <code> Kill </code>, хотя этот объект и любые связанные с ним объекты уничтожаются в одном кадре | {{IO:ru|KillHierarchy|Функционирует так же, как <code>Kill</code>, хотя этот объект и любые связанные с ним объекты уничтожаются в одном кадре, что немного быстрее.}} | ||
{{IO|SetParent|Двигаться с | {{IO:ru|SetParent|Двигаться с этим объектом. Смотрите [[Entity Hierarchy (parenting)/ru|Иерархия объектов]].|param=string}} | ||
{{IO|SetParentAttachment| | {{IO:ru|SetParentAttachment|Изменить этот объект, чтобы присоединить его к определённой точке [[attachment|крепления]] его предка. Объект будет перемещён к предку, чтобы положение его кости [[bone]] совпадало с положением крепления. Объекты должны быть соединены перед использованием этого ввода.|param=string}} | ||
{{IO|SetParentAttachmentMaintainOffset|Как и выше | {{IO:ru|SetParentAttachmentMaintainOffset|Как и приведённое выше, но без перемещения. Объект сохраняет свою позицию относительно [[attachment|крепления]] во время получения ввода.|param=string}} | ||
{{IO|ClearParent|Удаляет | {{IO:ru|ClearParent|Удаляет этот объект из иерархии движений, оставляя его свободным для самостоятельного перемещения.}} | ||
{{IO|[[AddOutput]]|Оценивает ключевое значение/вывод для | {{IO:ru|[[AddOutput|AddOutput]]|Оценивает ключевое значение/вывод для этого объекта. <br/>Формат: <code><key> <value></code><br/>Формат: <code><output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite></code>|param=string}} | ||
{{IO|FireUser1|to=FireUser4| | {{IO:ru|FireUser1|to=FireUser4|Срабатывает <code>OnUser</code> выходы; Смотрите [[User Inputs and Outputs:ru|Пользовательские Входы и выходы]].}} | ||
{{IO|Use|То же, что игрок, вызывающий [[+use]]; может ничего не делать. Может также вызываться путем создания вывода, в котором не указан ввод. <br/> Этот ввод не включен в Valve | {{IO:ru|Use|То же, что игрок, вызывающий [[Use|+use]]; может ничего не делать. Может также вызываться путем создания вывода, в котором не указан ввод. <br/> Этот ввод не включен в Valve [[FGD]].|nofgd=1}} | ||
{{IO|DispatchEffect|Отправляет специальный эффект от позиции | {{IO:ru|DispatchEffect|Отправляет специальный эффект от позиции объекта. Удалено и полностью заменено [[Particle System Overview|системой частиц]], так как {{l4d|suf=:ru}}.|param=string|nofgd=1}} | ||
{{IO|DispatchResponse|Отправляет ответ | {{IO:ru|DispatchResponse|Отправляет ответ объекту. Смотрите [[Response]], а также [[Concept]].|param=string|nofgd=1}} | ||
{{IO|AddContext|Добавляет в список объекта [[Response System|response contexts]]. Формат <code><key>:<value></code>.|param=string}} | {{IO:ru|AddContext|Добавляет в список объекта [[Response System|response contexts]]. Формат <code><key>:<value></code>.|param=string}} | ||
{{IO|RemoveContext|Remove a context from this entity's list. The name should match the key of an existing context.|param=string}} | {{IO:ru|RemoveContext|Remove a context from this entity's list. The name should match the key of an existing context.|param=string}} | ||
{{IO|ClearContext|Removes all contexts from this entity's list.|param=string}}<!-- | {{IO:ru|ClearContext|Removes all contexts from this entity's list.|param=string}}<!-- | ||
-->{{#if:{{{l4d2|}}}|<!-- | -->{{#if:{{{l4d2|}}}|<!-- | ||
-->{{IO|RunScriptFile| | -->{{IO|RunScriptFile|Выполняет [[VScript|VScript скрипт]] файл с носителя, указывается без расширения. The script contents are merged with the script scope of the receiving entity.|param=script|since={{L4d2}}}} | ||
{{IO|RunScriptCode|Execute a string of VScript source code in the scope of the entity receiving the input. String quotation may be needed when fired via console. {{bug|In {{l4d2}}, the code is executed in the script scope of the entity that fires the output, ''not'' the one receiving the input.}} {{warning|Never try to pass string parameters to a script function with this input. It will corrupt the [[VMF]] structure because of the nested quotation marks, which then must be removed manually with a text editor.}}|param=string|since= | {{IO:ru|RunScriptCode|Execute a string of VScript source code in the scope of the entity receiving the input. String quotation may be needed when fired via console. {{bug|In {{l4d2|suf=:ru|4}}, the code is executed in the script scope of the entity that fires the output, ''not'' the one receiving the input.}} {{warning|Never try to pass [[string:ru|строка]] parameters to a script function with this input. It will corrupt the [[VMF]] structure because of the nested quotation marks, which then must be removed manually with a text editor.}}|param=string|since={{L4d2}}}} | ||
{{IO|CallScriptFunction|Execute a VScript function in the scope of the receiving entity.|param=string|since=L4D2|nofgd=1}}<!-- | {{IO|CallScriptFunction|Execute a VScript function in the scope of the receiving entity.|param=string|since=L4D2|nofgd=1}}<!-- | ||
-->| }}{{#if:{{{ | -->| }}{{#if:{{{as|}}}|<!-- | ||
-->{{IO|SetLocalOrigin|param=coordinates|since= | -->{{IO:ru|SetLocalOrigin|param=coordinates|since=as|nofgd=1|Send this entity to a spot in the map. If the entity is parented to something, it will be offset from the parent by this amount.}} | ||
{{IO|SetLocalAngles|param=angles|since= | {{IO|SetLocalAngles|param=angles|since=as|nofgd=1|Set this entity's angles.}}<!-- | ||
-->| }}{{#if:{{{l4d2|}}}||{{#if:{{{ | -->| }}{{#if:{{{l4d2|}}}||{{#if:{{{as|}}}||{{#if:{{{base|}}}||<!-- | ||
-->{{IO|RunScriptFile| | -->{{IO:ru|RunScriptFile|Выполняет [[VScript|VScript скрипт]] файл с носителя, указывается без расширения. The script contents are merged with the script scope of the receiving entity.|param=script|since={{l4d2}}}} | ||
{{IO|RunScriptCode|Execute a string of VScript source code in the scope of the entity receiving the input. String quotation may be needed when fired via console. {{bug| In {{l4d2}}, the code is executed in the script scope of the entity that fires the output, ''not'' the one receiving the input.}} {{warning|Never try to pass string parameters to a script function with this input. It will corrupt the [[VMF]] structure because of the nested quotation marks, which then must be removed manually with a text editor.}}|param=string|since= | {{IO:ru|RunScriptCode|Execute a string of VScript source code in the scope of the entity receiving the input. String quotation may be needed when fired via console. {{bug|In {{l4d2|suf=:ru|4}}, the code is executed in the script scope of the entity that fires the output, ''not'' the one receiving the input.}} {{warning|Never try to pass [[string:ru|строка]] parameters to a script function with this input. It will corrupt the [[VMF]] structure because of the nested quotation marks, which then must be removed manually with a text editor.}}|param=string|since={{l4d2}}}} | ||
{{IO|CallScriptFunction|Execute a VScript function in the scope of the receiving entity.|param=string|since= | {{IO:ru|CallScriptFunction|Execute a VScript function in the scope of the receiving entity.|param=string|since={{l4d2}}|nofgd=1}} | ||
{{IO|SetLocalOrigin|param=coordinates|since= | {{IO:ru|SetLocalOrigin|param=coordinates|since={{as}}|nofgd=1|Send this entity to a spot in the map. If the entity is parented to something, it will be offset from the parent by this amount.}} | ||
{{IO|SetLocalAngles|param=angles|since= | {{IO:ru|SetLocalAngles|param=angles|since={{as}}|nofgd=1|Устанавливает углы ориентации объекта.}}<!-- | ||
-->}}}}}} | -->}}}}}} }}</onlyinclude> |
Latest revision as of 03:01, 5 July 2024

You can help by finishing the translation.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.
This template is our holder for all inputs assigned through CBaseEntity. The template has a very specific syntax that you must follow to apply properly, because new games have added new features throughout the years. See Help:Templates for more info on named parameters.
{{I BaseEntity}}
No parameters: display inputs for ALL games.
{{I BaseEntity|base=1}}
Base: display inputs that have only existed since whatever game added the class (most have existed since HL2, the first Source game).
{{I BaseEntity|l4d2=1}}
Game as a parameter: display the inputs that base
displays, AND inputs that were added to the class, by the specified game. You can specify as many games as needed. You must specify ALL the games you want to include (e.g. l4d2
will not automatically include l4d
inputs as well).
All parameters for this template:
base
l4d2
as
prel4d
- (DEPRECATED 9/28/18: This parameter existed to hide DispatchEffect for games (ones before l4d) that did not have it. There's many cases of similar inputs and keyvalues that aren't in absolutely everything, and making similar parameters for all of those simply isn't worth the trouble, especially considering having to comb through every existing use of those templates. Parameter is totally removed from code and affects nothing.)

For full documentation on this family of templates, see FGD Template Prototype. Still confused on something? Ask for help before editing this template.
- noscroll – tells the template not to scroll.

CBaseEntity
inputs are not covered here. See the talk page.- Kill
- Удаляет этот объект и все связанные с ним дочерние объекты из мира.
- KillHierarchy
- Функционирует так же, как
Kill
, хотя этот объект и любые связанные с ним объекты уничтожаются в одном кадре, что немного быстрее.
- SetParent <string>
- Двигаться с этим объектом. Смотрите Иерархия объектов.
- SetParentAttachment <string>
- Изменить этот объект, чтобы присоединить его к определённой точке крепления его предка. Объект будет перемещён к предку, чтобы положение его кости bone совпадало с положением крепления. Объекты должны быть соединены перед использованием этого ввода.
- SetParentAttachmentMaintainOffset <string>
- Как и приведённое выше, но без перемещения. Объект сохраняет свою позицию относительно крепления во время получения ввода.
- ClearParent
- Удаляет этот объект из иерархии движений, оставляя его свободным для самостоятельного перемещения.
- AddOutput <string>
- Оценивает ключевое значение/вывод для этого объекта.
Формат:<key> <value>
Формат:<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
- FireUser1 to FireUser4
- Срабатывает
OnUser
выходы; Смотрите Пользовательские Входы и выходы.
- Use !FGD
- То же, что игрок, вызывающий +use; может ничего не делать. Может также вызываться путем создания вывода, в котором не указан ввод.
Этот ввод не включен в Valve FGD.
- DispatchEffect <string> !FGD
- Отправляет специальный эффект от позиции объекта. Удалено и полностью заменено системой частиц, так как
.
- AddContext <string>
- Добавляет в список объекта response contexts. Формат
<key>:<value>
.
- RemoveContext <string>
- Remove a context from this entity's list. The name should match the key of an existing context.
- ClearContext <string>
- Removes all contexts from this entity's list.
- RunScriptFile <script> (in all games since
)
- Выполняет VScript скрипт файл с носителя, указывается без расширения. The script contents are merged with the script scope of the receiving entity.
- RunScriptCode <string> (in all games since
)
- Execute a string of VScript source code in the scope of the entity receiving the input. String quotation may be needed when fired via console.
Bug:In
Left 4 Dead 2, the code is executed in the script scope of the entity that fires the output, not the one receiving the input. [todo tested in ?]
- CallScriptFunction <string> (in all games since
) !FGD
- Execute a VScript function in the scope of the receiving entity.
- SetLocalOrigin <coordinates> (in all games since
) !FGD
- Send this entity to a spot in the map. If the entity is parented to something, it will be offset from the parent by this amount.