Console commands: Difference between revisions

From ZDoom Wiki
Jump to navigation Jump to search
Content deleted Content added
No edit summary
m +cat
 
(122 intermediate revisions by 21 users not shown)
Line 1: Line 1:
#redirect [[CCMDs]]
Console Commands are used to alter the way ZDoom does something, such as changing the sound volume, changing DMflags, ect...
[[Category:Redirects from alternate names]]

you access the console by pressing "~" at any time

==Console variable types==

There are six types of cvars: Boolean, Integer, Float, String, Colour and Flag.

=== boolean ===

This type of variable represents a yes/no or on/off value. It can only be set to true or false. As shorthand, setting a boolean variable to 0 will set it to false, and setting it to anything non-zero will set it to true.

=== integer ===

This is an ordinary number without a decimal point. For example, 1 is an integer, but 1.2 is not.

=== float ===

This is an ordinary number that can have a decimal point.

=== string ===

This is a series of text characters enclosed in quotes: For example, "Felix loitered lecherously on the lot" is a string. If you removed the quotes around it, then it would not be a string.
If you need to use quotes inside a string, preface it with a backslash.

Are you "The One" of old?

would be written like this as a string:

"Are you \"The One\" of old?"

=== colour ===

This type of variable is a series of three hexadecimal numbers representing the amounts of red, green, and blue (in that order) in a color. For example, pure red would be represented as "ff 00 00". As a shorthand, you can set a color variable with one of several color names, and the RGB values will be set for you.

=== flag ===

This type of variable mirrors a setting in dmflags or dmflags2. Setting its value will set the corresponding value in one of those variables, and getting its value will get the corresponding value from one of the other two variables. This is designed to make using dmflags easier, because you don't have to memorize any numbers.

==Button Commands==
* [[Button Commands]]

==Customization==
* [[Customization]]

==Screenshots==
* [[Screenshots]]

==Chatting==
* [[Chatting]]

==Cheating==
* [[Cheating]]

==Display==
* [[Display]]

==Renderer==
* [[Renderer]]

==Video==
* [[Video]]

==Bots==
* [[Bots]]

==Automap==
* [[AutoMap]]

==Player Settings==
* [[Player Settings]]

==Debugging==
* [[Debugging]]

Latest revision as of 11:19, 28 November 2010

Redirect to: