From Valve Developer Community
Jump to navigation
Jump to search
|
|
Line 15: |
Line 15: |
| --------><td>{{{4|{{Autolang|{{todo|Effect description.}}|zh={{todo|效果描述。}}}}}}}</td><!-- | | --------><td>{{{4|{{Autolang|{{todo|Effect description.}}|zh={{todo|效果描述。}}}}}}}</td><!-- |
| -----></tr>}}</includeonly></onlyinclude> | | -----></tr>}}</includeonly></onlyinclude> |
| {{documentation}} | | {{doc}} |
Revision as of 14:53, 11 January 2024

Available doc translations
…
English
This template can be used for both console variables (var) and console commands (com).
Parameters
- Name of the variable or command.
- To generate the header, put
start
in this space.
- To finish the table, put
end
.
- If this is not defined, the text NAME MISSING! will appear and forcibly break the table formatting until it is fixed.
- Parameter(s) of the command, or for variables, the default value.
- Optional.
- Put
null
to display the text [blank by default].
- Descriptor for whatever is put in the last space.
- Optional.
- Put
01
to quickly indicate boolean convars.
- Similarly, use
dist
for Hammer units.
- Effect of the command or variable.
- If undefined, a TODO will take its place.
Examples
{{varcom|start}}
{{varcom|noclip|||Makes player ignore gravity and all solidity. Useful for observing and debugging.}}
{{varcom|sv_cheats|0|01|<code>1</code> enables cheats on the server, which disables achievement progress and enables many more console commands.}}
{{varcom|setpos|x y <z optional>|coordinates|Puts the player at the coordinate triplet entered. If <code>z</code> is not specified, the player will maintain their current z position.}}
{{varcom|end}}
↓
This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
|
This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
|
This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
|
This template (and its redirect) is Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes:Use #switch parser function instead. Example {{#switch: {{language}} | #default = English | ja = 日本語 | zh-tw = 中文(台灣) }}
|
noclip |
| | Makes player ignore gravity and all solidity. Useful for observing and debugging. |
sv_cheats | 0 | 0 disables, 1 enables | 1 enables cheats on the server, which disables achievement progress and enables many more console commands. |
setpos | x y <z optional> | coordinates | Puts the player at the coordinate triplet entered. If z is not specified, the player will maintain their current z position. |