Template:VT
Материал из Valve Developer Community
Перейти к навигации
Перейти к поиску

…

Страница документации Template:VT/doc/ru не существует.
Вместо неё будет отображена документация на английском. Если после данного сообщения ничего нет, вероятней всего документации не существует даже на английском.
Вместо неё будет отображена документация на английском. Если после данного сообщения ничего нет, вероятней всего документации не существует даже на английском.
Just a list template for FGD and shader parameter templates to easily link to a wide variety of variable types.
Usage
This template accepts one parameter: the name of the variable type. It outputs a specific string depending on this parameter. It is not case-sensitive.
The following table lists inputs, their results, other inputs yielding the same results, and any things to note. Case variations are not included.
Code | Output | Aliases | Notes |
---|---|---|---|
{{VT|???}} |
<???> | Unknown type, verify from FGD docs. (with hover info) | |
{{VT|angle}} |
<угол(en)> | Parsed as QAngle. | |
{{VT|angles}} |
<углы(en)> | Parsed as QAngle. | |
{{VT|axis}} |
<координаты(en)> | ||
{{VT|bool}} |
<булева переменная(en)> | boolean | FGD KV type is (Во всех играх начиная с ![]() ![]() Use choices instead in earlier games' FGDs, but note them as Booleans on the game pages themselves. |
{{VT|byte}} |
<байт(en)> | unsigned char | Range 0-255. If the variable uses a regular integer with clamped range, use <целое число(en) 0–255> instead. |
{{VT|byte choices}} |
<байт(en) выбор> | ||
{{VT|char}} |
<символ(en)> | Use for signed chars (-128 to 127). | |
{{VT|char choices}} |
<символ(en) выбор> | ||
{{VT|choices}} |
<варианты выбора> | Preferably use version which indicates the actual data type parsed by the code, such as <байт(en) выбор>, <целое число(en) выбор>, or <строка(en) выбор>. | |
{{VT|color1}} |
<цвет КЗС(en) 0-1> | ||
{{VT|color255}} |
<цвет КЗС(en)> | RGB, rgb | |
{{VT|color255 + int}} |
<цвет КЗС(en) + целое число(en)> | color255+int | |
{{VT|env_cubemap / texture}} |
<env_cubemap/текстура(en)> | cubemap/texture, cubemap / texture, env cubemap/texture, env cubemap / texture, env_cubemap/texture, env_cubemap / texture | |
{{VT|ehandle}} |
<целевой_объект*> | IO type ehandle. | |
{{VT|file}} |
<путь файла> | filename, filepath | File path, treated as string. |
{{VT|filter}} |
<фильтр(en)> | filterclass | |
{{VT|float}} |
<число с плавающей запятой(en)> | ||
{{VT|int}} |
<целое число(en)> | integer | Enums without explicit type use this. |
{{VT|int 0-10}} |
<целое число(en) 0–10> | For ambient_generic. | |
{{VT|int 0-100}} |
<целое число(en) 0–100> | For ambient_generic. | |
{{VT|int 0-1000}} |
<целое число(en) 0–1000> | For ambient_generic. | |
{{VT|int 0-255}} |
<целое число(en) 0–255> | integer 0-255 | For ambient_generic. Not to be confused with <байт(en)>. |
{{VT|integer}} |
<целое число(en)> | int | |
{{VT|integer choices}} |
<целое число(en) выбор> | Parsed as int with selectable options. | |
{{VT|material property}} |
<свойство(en)> | material property | Link to Material surface properties. |
{{VT|RGB matrix}} |
<КЗС(en) матрица(en)> | Two separate links. | |
{{VT|script}} |
<скрипт(en)> | vscript | Link to Vscript. |
{{VT|scriptlist}} |
<скриптлист VScript(en)> | ||
{{VT|sky}} |
<имя неба(en)> | skybox, skyname | Link to Skybox. |
{{VT|string}} |
<строка(en)> | str | |
{{VT|string choices}} |
<строка(en) выбор> | String with selectable options. | |
{{VT|studio}} |
<путь к модели(en)> | model, modelname, model name, modelpath, model path | Link to Model. |
{{VT|target}} |
<целевой объект(en)> | targetname, target_destination, target_source | |
{{VT|variant}} |
<варианта> | IO type variant. | |
{{VT|vector}} |
<вектор данных(en)> | vecline, vec | |
{{VT|vector2}} |
<вектор данных2(en)> | vec2 | Link to Material vector#vector2. |
{{VT|vector3}} |
<вектор данных3(en)> | vec3 | Link to Material vector#vector3. |
{{VT|vector4}} |
<вектор данных4(en)> | vec4 | Link to Material vector#vector4. |
{{VT|void}} |
<пусто> | <blank> | Signifies IO truly has no parameter instead of missing type. |
Any other input will be a link to that input.
See also
{{I}}
{{O}}
{{KV}}
{{MatParamDef}}