2018-11-05 09:42:11 +00:00
|
|
|
# Yamagi Quake II Console Variables
|
2017-04-22 09:16:06 +00:00
|
|
|
|
|
|
|
This lists explains most console variables (cvars) added by Yamagi
|
|
|
|
Quake II. Most of the original clients (Vanilla Quake II) cvars are
|
2018-02-14 07:42:47 +00:00
|
|
|
still in place, however due to architectural changes some of them
|
|
|
|
have been renamed. The prefixes are:
|
|
|
|
|
|
|
|
* No prefix: General stuff.
|
|
|
|
* `cl_`: Client.
|
|
|
|
* `gl_`: Common to all OpenGL renderers.
|
|
|
|
* `gl1_`: OpenGL 1.4 renderer.
|
|
|
|
* `gl3_`: OpenGL 3.2 renderer.
|
|
|
|
* `ogg_`: Ogg/Vorbis music playback.
|
2018-11-05 09:42:11 +00:00
|
|
|
* `r_`: Common to all renderers.
|
2018-02-14 07:42:47 +00:00
|
|
|
* `s_`: Sound system.
|
2018-11-05 09:42:11 +00:00
|
|
|
* `sw_`: Software renderer.
|
2018-02-14 07:42:47 +00:00
|
|
|
* `vid_`: Video backend.
|
|
|
|
|
2019-11-04 16:40:44 +00:00
|
|
|
All cvars may be given at command line through `+set cvar value` or typed
|
2019-04-03 09:33:20 +00:00
|
|
|
into the console. The console can be opended with *Left Shift + Esc*.
|
2018-02-14 07:42:47 +00:00
|
|
|
|
2019-11-04 16:40:44 +00:00
|
|
|
Keep in mind that some cvars need quotation marks around the arguments.
|
2019-10-12 14:25:19 +00:00
|
|
|
When giving such cvars at the command line the argument string must be
|
|
|
|
surrounded by ticks. For example `+set sv_maplist '"q2dm1 q2dm2"'`.
|
|
|
|
|
2018-11-05 09:42:11 +00:00
|
|
|
|
|
|
|
## Command line arguments
|
2018-02-14 07:42:47 +00:00
|
|
|
|
|
|
|
These are not console variables, they cannot be entered into the
|
2018-11-05 09:42:11 +00:00
|
|
|
console, only be given through the command line at startup. While cvars
|
|
|
|
are prefixed with a `+`, arguments are starting with a `-`. For example
|
|
|
|
it's `+set busywait 0` (setting the `busywait` cvar) and `-portable`
|
|
|
|
(setting the `portable` argument).
|
2018-02-14 07:42:47 +00:00
|
|
|
|
|
|
|
* **datadir**: Directory from which the game data is loaded. Can be used
|
|
|
|
in startup scripts, to test binaries, etc. If not set, the directory
|
|
|
|
containing the binaries is used.
|
|
|
|
|
2018-11-05 09:42:11 +00:00
|
|
|
* **portable**: Makes Quake II portable, all runtime data like the the
|
|
|
|
config, savegames and so on is stored next to the executable and not
|
|
|
|
in the users home directory.
|
2018-02-14 07:42:47 +00:00
|
|
|
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2018-11-05 09:42:11 +00:00
|
|
|
## General
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2020-04-21 11:00:00 +00:00
|
|
|
* **aimfix**: Fix aiming. When set to to `0` (the default) aiming is
|
|
|
|
slightly inaccurate, bullets and the like have a little drift. When
|
|
|
|
set to `1` they hit exactly were the crosshair is.
|
|
|
|
|
|
|
|
* **busywait**: By default this is set to `1`, causing Quake II to spin
|
2018-11-05 09:42:11 +00:00
|
|
|
in a very tight loop until it's time to process the next frame. This
|
2019-04-03 09:33:20 +00:00
|
|
|
is a very accurate way to determine the internal timing, but comes with
|
2018-11-05 09:42:11 +00:00
|
|
|
a relatively high CPU usage. If set to `0` Quake II lays itself to
|
|
|
|
sleep and tells the operating system to send a wakeup signal when it's
|
|
|
|
time for the next frame. The later is more CPU friendly but rather
|
2018-11-07 21:35:58 +00:00
|
|
|
inaccurate, especially on Windows. Use with care.
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2020-08-17 12:15:14 +00:00
|
|
|
* **cl_anglekicks**: If set to `0` angle kicks (weapon recoil, damage
|
|
|
|
hits and the like) are ignored. Cheat protected. Defaults to `1`.
|
|
|
|
|
2017-04-22 09:16:06 +00:00
|
|
|
* **cl_async**: If set to `1` (the default) the client is asynchronous.
|
|
|
|
The client framerate is fixed, the renderer framerate is variable.
|
2017-05-25 13:56:10 +00:00
|
|
|
This makes it possible to renderer as many frames as desired without
|
2017-04-22 09:16:06 +00:00
|
|
|
any physics and movement problems. The client framerate is controlled
|
2018-11-07 21:35:58 +00:00
|
|
|
by *cl_maxfps*, set to `60` by default. The renderer framerate is
|
2018-11-05 09:42:11 +00:00
|
|
|
controlled by *vid_maxfps*. There are two constraints:
|
|
|
|
|
|
|
|
* *vid_maxfps* must be the same or greater than *cl_maxfps*.
|
|
|
|
* In case that the vsync is active, *vid_maxfps* must not be lower
|
|
|
|
than the display refresh rate.
|
2018-11-07 21:35:58 +00:00
|
|
|
|
2020-04-21 00:28:51 +00:00
|
|
|
Both constraints are enforced.
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2019-04-03 09:33:20 +00:00
|
|
|
If *cl_async* is set to `0` *vid_maxfps* is the same as *cl_maxfps*,
|
|
|
|
use *cl_maxfps* to set the framerate.
|
|
|
|
|
2019-09-03 06:34:57 +00:00
|
|
|
* **cl_loadpaused**: If set to `1` (the default) the client is put into
|
|
|
|
pause mode during single player savegame load. This prevents monsters
|
|
|
|
and the environment from hurting the player while the client is still
|
|
|
|
connecting. If set to `2` the client stays in pause mode after
|
|
|
|
loading. If set to `0` pause mode is never entered, this is the
|
|
|
|
Vanilla Quake II behaviour.
|
|
|
|
|
2021-01-10 17:30:49 +00:00
|
|
|
* **cl_r1q2_lightstyle**: Since the first release Yamagi Quake II used
|
|
|
|
the R1Q2 colors for the dynamic lights of rockets and hyperblaster
|
|
|
|
projectiles. Set to `0` to get the Vanilla Quake II colors. Defaults
|
|
|
|
to `1`.
|
|
|
|
|
2019-04-03 09:33:20 +00:00
|
|
|
* **cl_showfps**: Shows the framecounter. Set to `2` for more and to
|
|
|
|
`3` for even more informations.
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2018-11-05 09:42:11 +00:00
|
|
|
* **in_grab**: Defines how the mouse is grabbed by Yamagi Quake IIs
|
|
|
|
window. If set to `0` the mouse is never grabbed and if set to `1`
|
|
|
|
it's always grabbed. If set to `2` (the default) the mouse is grabbed
|
|
|
|
during gameplay and released otherwise (in menu, videos, console or if
|
|
|
|
game is paused).
|
2017-05-25 11:59:10 +00:00
|
|
|
|
2020-07-11 16:51:05 +00:00
|
|
|
* **coop_pickup_weapons**: In coop a weapon can be picked up only once.
|
|
|
|
For example, if the player already has the shotgun they cannot pickup
|
|
|
|
a second shotgun found at a later time, thus not getting the ammo that
|
|
|
|
comes with it. This breaks the balacing. If set to `1` a weapon can be
|
|
|
|
picked up if a) the player doesn't have it or b) it wasn't already
|
|
|
|
picked up by another player. Defaults to `1`.
|
|
|
|
|
|
|
|
* **coop_elevator_delay**: In coop it's often hard to get on the same
|
|
|
|
elevator together, because they're immediately triggered once the
|
|
|
|
first player steps on it. This cvar sets a delay for the elevator to
|
|
|
|
wait before moving, so other players have some time to get on it.
|
|
|
|
Defaults to `1.0` (seconds).
|
|
|
|
|
2019-11-04 16:40:44 +00:00
|
|
|
* **coop_baseq2 (Ground Zero only)**: In Ground Zero, entity spawnflags
|
|
|
|
(which difficulty modes / game modes level entities spawn in) are
|
2020-04-21 00:28:51 +00:00
|
|
|
interpreted a bit differently. In original Quake 2, if an entity is
|
2019-11-04 16:40:44 +00:00
|
|
|
set to not spawn on any difficulty, it is treated as deathmatch-only,
|
|
|
|
however, in Ground Zero this same condition is treated as coop-only.
|
|
|
|
This causes maps made for original Quake 2, including the entire
|
|
|
|
Quake 2 campaign, to not work correctly when played in Ground Zero
|
|
|
|
in co-op mode. This cvar, when set to 1, restores the original
|
|
|
|
interpretation and enables you to play original Quake 2 maps in
|
|
|
|
Ground Zero co-op. Though keep in mind that Ground Zero maps will
|
|
|
|
not work correctly when this cvar is enabled so remember to
|
|
|
|
disable it again before playing Ground Zero maps in co-op. By
|
|
|
|
default this cvar is disabled (set to 0).
|
2017-05-25 11:59:10 +00:00
|
|
|
|
2020-04-21 00:28:51 +00:00
|
|
|
* **g_disruptor (Ground Zero only)**: This boolean cvar controls the
|
|
|
|
availability of the Disruptor weapon to players. The Disruptor is
|
|
|
|
a weapon that was cut from Ground Zero during development but all
|
|
|
|
of its code and assets were still present in the source code and
|
|
|
|
the released game. This is basically a player-held version of the
|
|
|
|
2nd Widow boss' tracker weapon - a black-ish ball of energy.
|
|
|
|
When this cvar is set to 1 you can use the "give Disruptor" and
|
|
|
|
"give rounds X" commands to give yourself the weapon and its ammo,
|
|
|
|
and its items, weapon_disintegrator and ammo_disruptor, can be
|
|
|
|
spawned in maps (in fact, some official Ground Zero maps contain
|
|
|
|
these entities). This cvar is set to 0 by default.
|
|
|
|
|
2020-10-06 20:38:05 +00:00
|
|
|
* **nextdemo**: Defines the next command to run after maps from the
|
|
|
|
`nextserver` list. By default this is set to the empty string.
|
|
|
|
|
|
|
|
* **nextserver**: Used for looping the introduction demos.
|
|
|
|
|
2018-11-05 09:42:11 +00:00
|
|
|
## Audio
|
2017-05-25 11:59:10 +00:00
|
|
|
|
|
|
|
* **al_device**: OpenAL device to use. In most cases there's no need to
|
2018-11-05 09:42:11 +00:00
|
|
|
change this, since the default device is normally the correct choice.
|
2017-05-25 11:59:10 +00:00
|
|
|
|
2018-11-07 21:35:58 +00:00
|
|
|
* **al_driver**: OpenAL library to use. This is useful if for some
|
2017-06-06 15:48:51 +00:00
|
|
|
reasons several OpenAL libraries are available and Quake II picks the
|
|
|
|
wrong one. The given value is the name of the library, for example
|
|
|
|
`libopenal.so.1`.
|
|
|
|
|
2017-05-25 11:59:10 +00:00
|
|
|
* **ogg_enable**: Enable Ogg/Vorbis music playback.
|
|
|
|
|
2018-11-05 09:42:11 +00:00
|
|
|
* **ogg_ignoretrack0**: Normally Quake II disables the background music
|
|
|
|
if a major objective has been archived by setting the music track to
|
|
|
|
0. Setting this cvar to `1` disables this behavior, the music keeps
|
|
|
|
playing.
|
2017-05-25 11:59:10 +00:00
|
|
|
|
2020-04-21 11:58:58 +00:00
|
|
|
* **s_doppler**: If set to `1` doppler effects are enabled. This is only
|
|
|
|
supported by the OpenAL sound backend.
|
2017-05-25 11:59:10 +00:00
|
|
|
|
|
|
|
* **s_openal**: Use OpenAL for sound playback. This is enabled by
|
2017-05-25 13:56:10 +00:00
|
|
|
default. OpenAL gives a huge quality boost over the classic sound
|
2019-04-03 09:33:20 +00:00
|
|
|
system and supports surround speakers and HRTF for headphones. OpenAL
|
|
|
|
is much more reliable than the classic sound system, especially on
|
|
|
|
modern systems like Windows 10 or Linux with PulseAudio.
|
2017-05-25 11:59:10 +00:00
|
|
|
|
|
|
|
* **s_underwater**: Dampen sounds if submerged. Enabled by default.
|
|
|
|
|
|
|
|
|
2018-11-05 09:42:11 +00:00
|
|
|
## Graphics (all renderers)
|
2017-05-25 11:59:10 +00:00
|
|
|
|
2018-11-05 09:42:11 +00:00
|
|
|
* **vid_displayrefreshrate**: Sets the displays refresh rate. The
|
2018-02-26 18:14:39 +00:00
|
|
|
default `-1` let the game determine the refresh rate automatically.
|
2018-11-05 09:42:11 +00:00
|
|
|
Often the default setting is okay, but some graphics drivers report
|
|
|
|
wrong refresh rates. For example 59hz are reported while the display
|
|
|
|
has 59.95hz.
|
2018-02-26 18:14:39 +00:00
|
|
|
|
2017-05-25 11:59:10 +00:00
|
|
|
* **vid_renderer**: Selects the renderer library. Possible options are
|
2018-11-05 09:42:11 +00:00
|
|
|
`gl1` (the default) for the old OpenGL 1.4 renderer, `gl3` for the new
|
|
|
|
OpenGL 3.2 renderer and `soft` for the software renderer.
|
2017-05-25 11:59:10 +00:00
|
|
|
|
|
|
|
* **cin_force43**: If set to `1` (the default) cinematics are displayed
|
|
|
|
with an aspect ratio of 4:3, regardless what the actual windows size
|
|
|
|
or resolution is.
|
|
|
|
|
2017-06-20 16:31:32 +00:00
|
|
|
* **cl_gun**: Decides whether the gun is drawn. If set to `0` the gun
|
2017-04-22 09:16:06 +00:00
|
|
|
is omitted. If set to `1` the gun is only drawn if the FOV is equal
|
|
|
|
or smaller than 90. This was the default with Vanilla Quake II. If set
|
2017-05-25 13:56:10 +00:00
|
|
|
to `2` the gun is drawn regardless of the FOV. This is the default
|
2017-04-22 09:16:06 +00:00
|
|
|
in Yamagi Quake II.
|
|
|
|
|
2018-04-21 16:23:32 +00:00
|
|
|
* **fov**: Sets the field of view.
|
|
|
|
|
|
|
|
* **r_gunfov**: The weapons are rendered with a custom field of view,
|
2018-11-05 09:42:11 +00:00
|
|
|
independently of the global **fov**, so they are not distorted at high
|
|
|
|
FOVs. A value of `75` should look identical to the old code at `fov
|
2020-04-20 09:57:27 +00:00
|
|
|
90`, it defaults to `80` because that looks a bit better. Set to `-1`
|
|
|
|
for the same value as `fov`.
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2017-05-25 11:59:10 +00:00
|
|
|
* **horplus**: If set to 1 (the default) the horplus algorithm is used
|
2018-11-05 09:42:11 +00:00
|
|
|
to calculate an optimal horizontal and vertical field of view,
|
2019-04-03 09:33:20 +00:00
|
|
|
independent of the window or screen aspect ratio or resolution.
|
2017-05-25 11:59:10 +00:00
|
|
|
|
2019-04-03 09:33:20 +00:00
|
|
|
* **vid_gamma**: The value used for gamma correction. Higher values look
|
2018-11-05 09:42:11 +00:00
|
|
|
brighter. The OpenGL 1.4 and software renderers use "Hardware Gamma",
|
|
|
|
setting the Gamma of the whole screen to this value in realtime
|
|
|
|
(except on MacOS where it's applied to textures on load and thus needs
|
|
|
|
a `vid_restart` after changing). The OpenGL 3.2 renderer applies this
|
|
|
|
to the window in realtime via shaders (on all platforms). This is
|
|
|
|
also set by the brightness slider in the video menu.
|
|
|
|
|
|
|
|
* **r_consolescale** / **r_hudscale** / **r_menuscale** and
|
|
|
|
**crosshair_scale**: Scale the console, the HUD, the menu and the
|
|
|
|
crosshair. The value given is the scale factor, a factor of `1` means
|
|
|
|
no scaling. Values greater `1` make the objects bigger, values lower 1
|
|
|
|
smaller. The special value `-1` (default) sets the optimal scaling
|
2019-04-03 09:33:20 +00:00
|
|
|
factor for the current resolution. All cvars are set through the
|
|
|
|
scaling slider in the video menu.
|
2018-11-05 09:42:11 +00:00
|
|
|
|
|
|
|
* **r_customheight** / **r_customwidth**: Specifies a custom resolution,
|
|
|
|
the windows will be *r_customheight* pixels high and *r_customwidth*
|
|
|
|
pixels wide. Set *r_mode* to `-1` to use the custom resolution.
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2018-01-09 08:32:07 +00:00
|
|
|
* **r_farsee**: Normally Quake II renders only up to 4096 units. If set
|
2018-11-05 09:42:11 +00:00
|
|
|
to `1` the limit is increased to 8192 units. This helps with some
|
|
|
|
custom maps and is problematic with other custom maps.
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2018-01-09 08:47:03 +00:00
|
|
|
* **vid_maxfps**: The maximum framerate, if `cl_async` is `1`. Otherwise
|
2017-05-25 11:59:10 +00:00
|
|
|
`cl_maxfps` is used as maximum framerate. See `cl_async` description
|
2018-11-05 09:42:11 +00:00
|
|
|
above for more information. *Note* that vsync (`r_vsync`) also
|
|
|
|
restricts the framerate to the monitor refresh rate, so if vsync is
|
2019-04-03 09:33:20 +00:00
|
|
|
enabled, the game won't render more than frame than the display can
|
|
|
|
show.
|
2017-05-25 11:59:10 +00:00
|
|
|
|
2018-02-14 07:42:47 +00:00
|
|
|
* **r_vsync**: Enables the vsync: frames are synchronized with
|
|
|
|
display refresh rate, should (but doesn't always) prevent tearing.
|
2020-04-20 10:31:25 +00:00
|
|
|
Set to `1` for normal vsync and `2` for adaptive vsync.
|
2018-02-14 07:42:47 +00:00
|
|
|
|
2018-08-10 20:33:46 +00:00
|
|
|
|
2018-11-05 09:42:11 +00:00
|
|
|
## Graphics (GL renderers only)
|
2018-08-10 20:33:46 +00:00
|
|
|
|
2018-09-03 18:22:01 +00:00
|
|
|
* **gl_anisotropic**: Anisotropic filtering. Possible values are
|
|
|
|
dependent on the GPU driver, most of them support `1`, `2`, `4`, `8`
|
|
|
|
and `16`. Anisotropic filtering gives a huge improvement to texture
|
|
|
|
quality by a negligible performance impact.
|
|
|
|
|
2019-05-04 15:35:19 +00:00
|
|
|
* **gl_fixsurfsky**: Some maps misuse sky surfaces for interior
|
|
|
|
lightning. The original renderer had a bug that made such surfaces
|
|
|
|
mess up the lightning of entities near them. If set to `0` (the
|
|
|
|
default) the bug is there and maps look like their developers
|
|
|
|
intended. If set to `1` the bug is fixed and the lightning correct.
|
|
|
|
|
2017-04-22 09:16:06 +00:00
|
|
|
* **gl_msaa_samples**: Full scene anti aliasing samples. The number of
|
2018-11-05 09:42:11 +00:00
|
|
|
samples depends on the GPU driver, most drivers support at least `2`,
|
|
|
|
`4` and `8` samples. If an invalid value is set, the value is reverted
|
|
|
|
to the highest number of samples supported. Especially on OpenGL 3.2
|
|
|
|
anti aliasing is expensive and can lead to a huge performance hit, so
|
|
|
|
try setting it to a lower value if the framerate is too low.
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2018-11-07 21:35:58 +00:00
|
|
|
* **gl_nolerp_list**: list separate by spaces of textures omitted from
|
2018-11-05 09:42:11 +00:00
|
|
|
bilinear filtering. Used by default to exclude the console and HUD
|
|
|
|
fonts. Make sure to include the default values when extending the
|
|
|
|
list.
|
2017-06-06 15:48:51 +00:00
|
|
|
|
2017-04-22 09:16:06 +00:00
|
|
|
* **gl_retexturing**: If set to `1` (the default) and a retexturing pack
|
|
|
|
is installed, the high resolution textures are used.
|
|
|
|
|
|
|
|
* **gl_shadows**: Enables rendering of shadows. Quake IIs shadows are
|
2017-05-25 08:21:16 +00:00
|
|
|
very simple and are prone to render errors.
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2017-05-25 13:56:10 +00:00
|
|
|
* **gl_zfix**: Sometimes two or even more surfaces overlap and flicker.
|
|
|
|
If this cvar is set to `1` the renderer inserts a small gap between
|
2019-04-03 09:33:20 +00:00
|
|
|
the overlapping surfaces to mitigate the flickering. This may make
|
|
|
|
things better or worse, depending on the map.
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2018-02-14 07:42:47 +00:00
|
|
|
|
2018-11-05 09:42:11 +00:00
|
|
|
## Graphics (OpenGL 1.4 only)
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2019-04-03 09:33:20 +00:00
|
|
|
* **gl1_intensity**: Sets the color intensity. Must be a floating point
|
|
|
|
value, at least `1.0` - default is `2.0`. Applied when textures are
|
|
|
|
loaded, so it needs a `vid_restart`.
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2018-01-09 13:16:13 +00:00
|
|
|
* **gl1_overbrightbits**: Enables overbright bits, brightness scaling of
|
2018-11-05 09:42:11 +00:00
|
|
|
lightmaps and models. Higher values make shadows less dark. Possible
|
2019-04-03 09:33:20 +00:00
|
|
|
values are `0` (no overbright bits), `1` (more correct lighting for
|
|
|
|
water), `2` (scale by factor 2) and `3` (scale by factor 3). Applied
|
|
|
|
in realtime, does not need `vid_restart`.
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2020-01-12 10:05:15 +00:00
|
|
|
* **gl1_particle_square**: If set to `1` particles are rendered as
|
|
|
|
squares.
|
|
|
|
|
2018-01-09 13:51:59 +00:00
|
|
|
* **gl1_stencilshadow**: If `gl_shadows` is set to `1`, this makes them
|
2019-04-03 09:33:20 +00:00
|
|
|
look a bit better (no flickering) by using the stencil buffer.
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2018-02-14 07:42:47 +00:00
|
|
|
|
2018-11-05 09:42:11 +00:00
|
|
|
## Graphics (OpenGL 3.2 only)
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2017-05-25 11:59:10 +00:00
|
|
|
* **gl3_debugcontext**: Enables the OpenGL 3.2 renderers debug context,
|
2018-11-07 21:35:58 +00:00
|
|
|
e.g. prints warnings and errors emitted by the GPU driver. Not
|
|
|
|
supported on macOS. This is a pure debug cvar and slows down
|
2018-11-05 09:42:11 +00:00
|
|
|
rendering.
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2017-05-25 11:59:10 +00:00
|
|
|
* **gl3_intensity**: Sets the color intensity used for 3D rendering.
|
2018-11-05 09:42:11 +00:00
|
|
|
Similar to OpenGL 1.4 `gl1_intensity`, but more flexible: can be any
|
|
|
|
value between 0.0 (completely dark) and 256.0 (very bright). Good
|
|
|
|
values are between `1.0` and `2.0`, default is `1.5`. Applied in
|
2019-04-03 09:33:20 +00:00
|
|
|
realtime via shader, so it does not need a `vid_restart`.
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2018-11-05 09:42:11 +00:00
|
|
|
* **gl3_intensity_2D**: The same for 2D rendering (HUD, menu, console,
|
|
|
|
videos)
|
2017-05-25 11:59:10 +00:00
|
|
|
|
|
|
|
* **gl3_overbrightbits**: Enables overbright bits, brightness scaling of
|
2019-04-03 09:33:20 +00:00
|
|
|
lightmaps and models. Higher values make shadows less dark. Similar
|
2018-11-05 09:42:11 +00:00
|
|
|
to OpenGL 1.4 `gl1_overbrightbits`, but allows any floating point
|
|
|
|
number. Default is `1.3`. In the OpenGL 3.2 renderer, no lighting
|
|
|
|
fixes for water are needed, so `1.0` has no special meaning.
|
2017-05-25 11:59:10 +00:00
|
|
|
|
|
|
|
* **gl3_particle_size**: The size of particles - Default is `40`.
|
2017-04-22 09:16:06 +00:00
|
|
|
|
2017-05-25 11:59:10 +00:00
|
|
|
* **gl3_particle_fade_factor**: "softness" of particles: higher values
|
2018-11-05 09:42:11 +00:00
|
|
|
look less soft. Defaults to `1.2`. A value of `10` looks similar to
|
|
|
|
the OpenGL 1.4 particles.
|
2017-06-20 16:31:32 +00:00
|
|
|
|
2018-11-05 09:42:11 +00:00
|
|
|
* **gl3_particle_square**: If set to `1`, particles are rendered as
|
|
|
|
squares, like in the old software renderer or Quake 1. Default is `0`.
|
2019-09-02 15:15:51 +00:00
|
|
|
|
2020-04-20 09:57:27 +00:00
|
|
|
## Graphics (Software only)
|
|
|
|
|
|
|
|
* **sw_gunzposition**: Z offset for the gun. In the original code this
|
|
|
|
was always `0`, which will draw the gun too near to the player if a
|
|
|
|
custom gun field of few is used. Defaults to `8`, which is more or
|
|
|
|
less optimal for the default gun field of view of 80.
|
2019-09-02 15:15:51 +00:00
|
|
|
|
2020-01-26 12:50:08 +00:00
|
|
|
## Graphics (Vulkan only)
|
|
|
|
|
|
|
|
* **vk_validation**: Toggle validation layers:
|
|
|
|
* `0` - disabled (default in Release)
|
|
|
|
* `1` - only errors and warnings
|
2020-09-13 08:52:10 +00:00
|
|
|
* `2` - best-practices validation
|
2020-01-26 12:50:08 +00:00
|
|
|
|
2020-12-02 17:26:47 +00:00
|
|
|
* **vk_retexturing**: Apply retexturing:
|
|
|
|
* `0` - dont use retexturing logic and dont load the high resolution
|
|
|
|
textures,
|
|
|
|
* `1` - load the high resolution textures if pack is installed.
|
|
|
|
* `2` - try to load the pack or scale up all 8bit textures if pack is
|
|
|
|
not installed.
|
|
|
|
|
2020-12-02 21:27:59 +00:00
|
|
|
* **vk_nolerp_list**: list separate by spaces of textures omitted from
|
|
|
|
bilinear filtering. Used by default to exclude the console and HUD
|
|
|
|
fonts. Make sure to include the default values when extending the
|
|
|
|
list.
|
|
|
|
|
2020-01-26 12:50:08 +00:00
|
|
|
* **vk_strings**: Print some basic Vulkan/GPU information.
|
|
|
|
|
|
|
|
* **vk_mem**: Print dynamic vertex/index/uniform/triangle fan buffer
|
|
|
|
memory usage statistics.
|
|
|
|
|
|
|
|
* **vk_device**: Specify index of the preferred Vulkan device on systems
|
|
|
|
with multiple GPUs:
|
|
|
|
* `-1` - prefer first DISCRETE_GPU (default)
|
|
|
|
* `0..n` - use device #n (full list of devices is returned by
|
|
|
|
`vk_strings` command)
|
|
|
|
|
|
|
|
* **vk_msaa**: Toggle MSAA:
|
|
|
|
* `0` - off (default)
|
|
|
|
* `1` - MSAAx2
|
|
|
|
* `2` - MSAAx4
|
|
|
|
* `3` - MSAAx8
|
|
|
|
* `4` - MSAAx16
|
|
|
|
|
|
|
|
* **vk_sampleshading**: Toggle sample shading for MSAA. (default: `1`)
|
|
|
|
|
|
|
|
* **vk_flashblend**: Toggle the blending of lights onto the environment.
|
|
|
|
(default: `0`)
|
|
|
|
|
|
|
|
* **vk_polyblend**: Blend fullscreen effects: blood, powerups etc.
|
|
|
|
(default: `1`)
|
|
|
|
|
|
|
|
* **vk_skymip**: Toggle the usage of mipmap information for the sky
|
|
|
|
graphics. (default: `0`)
|
|
|
|
|
|
|
|
* **vk_finish**: Inserts a `vkDeviceWaitIdle()` call on frame render
|
|
|
|
start (default: `0`). Don't use this, it's there just for the sake of
|
|
|
|
having a `gl_finish` equivalent!
|
|
|
|
|
2020-09-13 08:52:10 +00:00
|
|
|
* **vk_custom_particles**: Toggle particles type:
|
|
|
|
* `0` - textured triangles for particle rendering
|
|
|
|
* `1` - between using POINT_LIST (default)
|
|
|
|
* `2` - textured square for particle rendering
|
2020-01-26 12:50:08 +00:00
|
|
|
|
|
|
|
* **vk_particle_size**: Rendered particle size. (default: `40`)
|
|
|
|
|
|
|
|
* **vk_particle_att_a**: Intensity of the particle A attribute.
|
|
|
|
(default: `0.01`)
|
|
|
|
|
|
|
|
* **vk_particle_att_b**: Intensity of the particle B attribute.
|
|
|
|
(default: `0`)
|
|
|
|
|
|
|
|
* **vk_particle_att_c**: Intensity of the particle C attribute.
|
|
|
|
(default: `0.01`)
|
|
|
|
|
|
|
|
* **vk_particle_min_size**: The minimum size of a rendered particle.
|
|
|
|
(default: `2`)
|
|
|
|
|
|
|
|
* **vk_particle_max_size**: The maximum size of a rendered particle.
|
|
|
|
(default: `40`)
|
|
|
|
|
|
|
|
* **vk_shadows**: Draw experimental entity shadows. (default: `0`)
|
|
|
|
|
|
|
|
* **vk_picmip**: Shrink factor for the textures. (default: `0`)
|
|
|
|
|
2020-12-23 22:06:10 +00:00
|
|
|
* **vk_pixel_size**: Pixel size when rendering the world, used to simulate
|
|
|
|
lower screen resolutions. The value represents the length, in pixels, of the
|
|
|
|
side of each pixel block. For example, with size 2 pixels are 2x2 squares,
|
|
|
|
and at 1600x1200 the image is effectively an upscaled 800x600 image.
|
|
|
|
(default: `1`)
|
|
|
|
|
2020-01-26 12:50:08 +00:00
|
|
|
* **vk_dynamic**: Use dynamic lighting. (default: `1`)
|
|
|
|
|
|
|
|
* **vk_showtris**: Display mesh triangles. (default: `0`)
|
|
|
|
|
|
|
|
* **vk_lightmap**: Display lightmaps. (default: `0`)
|
|
|
|
|
|
|
|
* **vk_aniso**: Toggle anisotropic filtering. (default: `1`)
|
|
|
|
|
|
|
|
* **vk_postprocess**: Toggle additional color/gamma correction.
|
|
|
|
(default: `1`)
|
|
|
|
|
|
|
|
* **vk_mip_nearfilter**: Use nearest-neighbor filtering for mipmaps.
|
|
|
|
(default: `0`)
|
|
|
|
|
|
|
|
* **vk_texturemode**: Change current texture filtering mode:
|
|
|
|
* `VK_NEAREST` - nearest-neighbor interpolation, no mipmaps
|
|
|
|
* `VK_LINEAR` - linear interpolation, no mipmaps
|
|
|
|
* `VK_MIPMAP_NEAREST` - nearest-neighbor interpolation with mipmaps
|
|
|
|
* `VK_MIPMAP_LINEAR` - linear interpolation with mipmaps (default)
|
|
|
|
|
|
|
|
* **vk_lmaptexturemode**: Same as `vk_texturemode` but applied to
|
|
|
|
lightmap textures.
|
|
|
|
|
2019-09-02 15:15:51 +00:00
|
|
|
## cvar operations
|
|
|
|
|
2019-09-02 15:29:00 +00:00
|
|
|
cvar operations are special commands that allow the programmatic
|
|
|
|
manipulation of cvar values. They can be used for scripting and the
|
|
|
|
like.
|
2019-09-02 15:15:51 +00:00
|
|
|
|
2019-09-02 15:54:02 +00:00
|
|
|
* **dec <cvar> [val]**: Decrements the given cvar by `1` or the optional
|
|
|
|
value `val`.
|
|
|
|
|
|
|
|
* **inc <cvar> [val]**: Increments the given cvar by `1` or the optional
|
|
|
|
value `val`.
|
|
|
|
|
2019-09-02 15:29:00 +00:00
|
|
|
* **reset <cvar>**: Reset the given cvar to it's default value.
|
2019-09-02 15:15:51 +00:00
|
|
|
|
|
|
|
* **resetall**: Reset all known cvar to their default values.
|
2019-09-02 15:29:00 +00:00
|
|
|
|
|
|
|
* **toggle <cvar> [val0] [val1]**: Toggle the given cvar between `0` and
|
|
|
|
`1`. If the optional arguments `val0` and `val1` are given the given
|
|
|
|
cvar is toggled between them.
|