Template:VT
Izvor: Valve Developer Community
Prijeđi na navigaciju
Prijeđi na pretraživanje

Stranica s dokumentacijom Template:VT/doc/hr ne postoji.
Umjesto toga bit će prikazana engleska dokumentacija koju možete prevesti pomoću Google Prevoditelja (ili sličnog softvera). Ako nakon ove poruke nema ničega, najvjerojatnije dokumentacija ne postoji niti na engleskom jeziku.
Umjesto toga bit će prikazana engleska dokumentacija koju možete prevesti pomoću Google Prevoditelja (ili sličnog softvera). Ako nakon ove poruke nema ničega, najvjerojatnije dokumentacija ne postoji niti na engleskom jeziku.
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}} |
<angle(en)> | Parsed as QAngle. | |
{{VT|angles}} |
<angles(en)> | Parsed as QAngle. | |
{{VT|axis}} |
<axis> | ||
{{VT|bool}} |
<Booleov(en)> | boolean | FGD KV type is (u svim igrama od(en) ![]() ![]() Use choices instead in earlier games' FGDs, but note them as Booleans on the game pages themselves. |
{{VT|byte}} |
<bajt(en)> | unsigned char | Range 0-255. If the variable uses a regular integer with clamped range, use <cijeli broj(en) 0–255> instead. |
{{VT|byte choices}} |
<izbor bajtova(en)> | ||
{{VT|char}} |
<char(en)> | Use for signed chars (-128 to 127). | |
{{VT|char choices}} |
<char(en) izbora> | ||
{{VT|choices}} |
<izbora> | Preferably use version which indicates the actual data type parsed by the code, such as <izbor bajtova(en)>, <cjelobrojni(en) izbori>, or <izbor nizova(en)>. | |
{{VT|color1}} |
<boja1(en)> | ||
{{VT|color255}} |
<boja255(en)> | RGB, rgb | |
{{VT|color255 + int}} |
<boja255(en) + cijeli broj(en)> | color255+int | |
{{VT|env_cubemap / texture}} |
<env_cubemap/tekstura(en)> | cubemap/texture, cubemap / texture, env cubemap/texture, env cubemap / texture, env_cubemap/texture, env_cubemap / texture | |
{{VT|ehandle}} |
<targetname*(en)> | IO type ehandle. | |
{{VT|file}} |
<put datoteke> | filename, filepath | File path, treated as string. |
{{VT|filter}} |
<filter(en)> | filterclass | |
{{VT|float}} |
<float(en)> | ||
{{VT|int}} |
<cijeli broj(en)> | integer | Enums without explicit type use this. |
{{VT|int 0-10}} |
<cijeli broj(en) 0–10> | For ambient_generic. | |
{{VT|int 0-100}} |
<cijeli broj(en) 0–100> | For ambient_generic. | |
{{VT|int 0-1000}} |
<cijeli broj(en) 0–1000> | For ambient_generic. | |
{{VT|int 0-255}} |
<cijeli broj(en) 0–255> | integer 0-255 | For ambient_generic. Not to be confused with <bajt(en)>. |
{{VT|integer}} |
<cijeli broj(en)> | int | |
{{VT|integer choices}} |
<cjelobrojni(en) izbori> | Parsed as int with selectable options. | |
{{VT|material property}} |
<vlasništvo(en)> | material property | Link to Material surface properties. |
{{VT|RGB matrix}} |
<RGB(en) matrica(en)> | Two separate links. | |
{{VT|script}} |
<script(en)> | vscript | Link to Vscript. |
{{VT|scriptlist}} |
<popis skripti(en)> | ||
{{VT|sky}} |
<ime neba(en)> | skybox, skyname | Link to Skybox. |
{{VT|string}} |
<niz(en)> | str | |
{{VT|string choices}} |
<izbor nizova(en)> | String with selectable options. | |
{{VT|studio}} |
<put modela(en)> | model, modelname, model name, modelpath, model path | Link to Model. |
{{VT|target}} |
<targetname(en)> | targetname, target_destination, target_source | |
{{VT|variant}} |
<varijanta(en)> | IO type variant. | |
{{VT|vector}} |
<vektor(en)> | vecline, vec | |
{{VT|vector2}} |
<vektor2(en)> | vec2 | Link to Material vector#vector2. |
{{VT|vector3}} |
<vektor3(en)> | vec3 | Link to Material vector#vector3. |
{{VT|vector4}} |
<vektor4(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}}