Template:I BaseEntity:ru

From Valve Developer Community
Jump to navigation Jump to search
English (en)
Info content.png
This page has not been fully translated.
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.)
Note.pngNote: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.

  • noscroll – tells the template not to scroll.
Note.pngNote:Some 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
Отправляет специальный эффект от позиции объекта. Удалено и полностью заменено системой частиц, так как Left 4 Dead.
DispatchResponse <string> !FGD
Отправляет ответ объекту. Смотрите Response, а также Concept.
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 Left 4 Dead 2)
Выполняет VScript скрипт файл с носителя, указывается без расширения. The script contents are merged with the script scope of the receiving entity.
RunScriptCode <string> (in all games since Left 4 Dead 2)
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.
Icon-Bug.pngBug:In Left 4 Dead 2 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 ?]
Warning.pngWarning:Never try to pass строка 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.
CallScriptFunction <string> (in all games since Left 4 Dead 2) !FGD
Execute a VScript function in the scope of the receiving entity.
SetLocalOrigin <coordinates> (in all games since Alien Swarm) !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.
SetLocalAngles <angles> (in all games since Alien Swarm) !FGD
Устанавливает углы ориентации объекта.