Template:VT
De Valve Developer Community
Aller à la navigation
Aller à la recherche

The Template:VT/doc/fr documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
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|???}} |
<???(en)> | Unknown type, verify from FGD docs. (with hover info) | |
{{VT|angle}} |
<angle(en)> | Parsed as QAngle. | |
{{VT|angles}} |
<angles(en)> | Parsed as QAngle. | |
{{VT|axis}} |
<axis(en)> | ||
{{VT|bool}} |
<bool(en)> | boolean | FGD KV type is (depuis ![]() ![]() Use choices instead in earlier games' FGDs, but note them as Booleans on the game pages themselves. |
{{VT|byte}} |
<byte(en)> | unsigned char | Range 0-255. If the variable uses a regular integer with clamped range, use <int 0-255(en)> instead. |
{{VT|byte choices}} |
<byte choices(en)> | ||
{{VT|char}} |
<char(en)> | Use for signed chars (-128 to 127). | |
{{VT|char choices}} |
<char choices(en)> | ||
{{VT|choices}} |
<les choix> | Preferably use version which indicates the actual data type parsed by the code, such as <byte choices(en)>, <integer choices(en)>, or <string choices(en)>. | |
{{VT|color1}} |
<color1(en)> | ||
{{VT|color255}} |
<color255(en)> | RGB, rgb | |
{{VT|color255 + int}} |
<color255 + int(en)> | color255+int | |
{{VT|env_cubemap / texture}} |
<env_cubemap / texture(en)> | cubemap/texture, cubemap / texture, env cubemap/texture, env cubemap / texture, env_cubemap/texture, env_cubemap / texture | |
{{VT|ehandle}} |
<ehandle(en)> | IO type ehandle. | |
{{VT|file}} |
<file(en)> | filename, filepath | File path, treated as string. |
{{VT|filter}} |
<filter(en)> | filterclass | |
{{VT|float}} |
<float(en)> | ||
{{VT|int}} |
<int(en)> | integer | Enums without explicit type use this. |
{{VT|int 0-10}} |
<int 0-10(en)> | For ambient_generic. | |
{{VT|int 0-100}} |
<int 0-100(en)> | For ambient_generic. | |
{{VT|int 0-1000}} |
<int 0-1000(en)> | For ambient_generic. | |
{{VT|int 0-255}} |
<int 0-255(en)> | integer 0-255 | For ambient_generic. Not to be confused with <byte(en)>. |
{{VT|integer}} |
<entier(en)> | int | |
{{VT|integer choices}} |
<integer choices(en)> | Parsed as int with selectable options. | |
{{VT|material property}} |
<property(en)> | material property | Link to Material surface properties. |
{{VT|RGB matrix}} |
<RGB matrix(en)> | Two separate links. | |
{{VT|script}} |
<script(en)> | vscript | Link to Vscript. |
{{VT|scriptlist}} |
<scriptlist(en)> | ||
{{VT|sky}} |
<sky(en)> | skybox, skyname | Link to Skybox. |
{{VT|string}} |
<chaîne(en)> | str | |
{{VT|string choices}} |
<string choices(en)> | String with selectable options. | |
{{VT|studio}} |
<chemin du modèle(en)> | model, modelname, model name, modelpath, model path | Link to Model. |
{{VT|target}} |
<target(en)> | targetname, target_destination, target_source | |
{{VT|variant}} |
<variant(en)> | IO type variant. | |
{{VT|vector}} |
<vector(en)> | vecline, vec | |
{{VT|vector2}} |
<vector2(en)> | vec2 | Link to Material vector#vector2. |
{{VT|vector3}} |
<vector3(en)> | vec3 | Link to Material vector#vector3. |
{{VT|vector4}} |
<vector4(en)> | vec4 | Link to Material vector#vector4. |
{{VT|void}} |
<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}}