]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - xonotic-client.cfg
Merge branch 'terencehill/menu_textlabel_line_spacing' into 'master'
[xonotic/xonotic-data.pk3dir.git] / xonotic-client.cfg
1 // this resets most client cvars and aliases to their defaults
2 // if you want to reset your client to defaults, it's probably a better idea to delete (parts of) config.cfg and restart
3
4
5 // changes a cvar and reports it to the server (for the client to notify the server about changes)
6 // DEPRECATED, cvars can be set in the client code to be sent automatically (using REPLICATE)
7 alias setreport "set \"$1\" \"$2\" ; sendcvar \"$1\""
8
9 seta cl_firststart "" "how many times the client has been run"
10 seta cl_startcount 0 "how many times the client has been run"
11
12 // other aliases
13 alias +hook +button6
14 alias -hook -button6
15 alias +jetpack +button10
16 alias -jetpack -button10
17 alias +dodge +button11
18 alias -dodge -button11
19 alias use "impulse 21"
20
21 // for backwards compatibility
22 // TODO Remove after 0.8 release!
23 cl_particles_forcetraileffects 1
24
25 alias dropweapon "impulse 17"
26
27 // support for servers still using the old centreprint MOTD
28 alias +show_info0 "+button7"
29 alias -show_info0 "-button7"
30 alias +show_info1 "menu_showwelcomedialog"
31 alias -show_info1 ""
32 alias +show_info +show_info$_menu_welcome_dialog_available
33 alias -show_info -show_info$_menu_welcome_dialog_available
34 seta cl_welcome 1 "1: show the Welcome dialog when connecting; 0: show it only when +show_info keybind is pressed"
35
36 // merge lightmaps up to 2048x2048 textures
37 mod_q3bsp_lightmapmergepower 4
38
39 // player defaults
40 _cl_color "112.211" // same effect as 112, but menuqc can detect this as the default and not intentionally set
41 _cl_name ""
42 _cl_playerskin 0
43
44 seta cl_reticle 1 "enable zoom reticles"
45 seta cl_reticle_stretch 0 "stretch reticles so they fit the screen (breaks image proportions)"
46 seta cl_reticle_normal 1 "draw an aiming reticle when zooming with the zoom button"
47 seta cl_reticle_normal_alpha 1 "alpha of the normal reticle"
48 seta cl_reticle_weapon 1 "draw custom aiming reticle when zooming with certain weapons"
49 seta cl_reticle_weapon_alpha 1 "alpha of the custom reticle"
50
51 fov 100
52 seta cl_velocityzoom_enabled 0 "velocity based zooming of fov"
53 seta cl_velocityzoom_factor 0 "factor of fov zooming (negative values zoom out)"
54 seta cl_velocityzoom_type 3 "how to factor in speed, 1 = all velocity in all directions, 2 = velocity only in forward direction (can be negative), 3 = velocity only in forward direction (limited to forward only)"
55 seta cl_velocityzoom_speed 1000 "target speed for fov factoring"
56 seta cl_velocityzoom_time 0.2   "time value for averaging speed values"
57 seta cl_spawnzoom 1 "zoom effect immediately when a player spawns"
58 seta cl_spawnzoom_speed 1 "speed at which zooming occurs while spawning"
59 seta cl_spawnzoom_factor 2 "factor of zoom while spawning"
60 seta cl_zoomfactor 5    "how much +zoom will zoom (1-30)"
61 seta cl_zoomspeed 8     "how fast it will zoom (0.5-16), negative values mean instant zoom"
62 seta cl_zoomsensitivity 0       "how zoom changes sensitivity (0 = weakest, 1 = strongest)"
63
64 seta cl_unpress_zoom_on_spawn 1 "automatically unpress zoom when you spawn"
65 seta cl_unpress_zoom_on_death 1 "automatically unpress zoom when you die (and don't allow zoom again while dead)"
66 seta cl_unpress_zoom_on_weapon_switch 1 "automatically unpress zoom when you switch a weapon"
67 seta cl_unpress_attack_on_weapon_switch 0 "automatically unpress fire and fire1 attack buttons when you switch a weapon"
68
69 seta cl_weapon_switch_reload 1 "When trying to switch to the currently held weapon, reload it"
70 seta cl_weapon_switch_fallback_to_impulse 1 "When trying to switch to a weapon that is not available, switch to an alternative from the same impulse"
71
72 seta cl_spawn_event_particles 1 "pointparticles effect whenever a player spawns (if allowed by the server)"
73 seta cl_spawn_event_sound 1 "sound effect whenever a player spawns (if allowed by the server)"
74 //seta cl_spawn_point_model 0 "place a model at all spawn points" // still needs a model
75 seta cl_spawn_point_particles 1 "pointparticles effect at all spawn points" // managed by effects-.cfg files
76 seta cl_spawn_point_dist_max 1200 "maximum distance from which spawnpoint particles will be visible"
77
78 freelook 1
79 sensitivity 3
80 v_gamma 1
81 viewsize 100
82 bgmvolume 0.75
83
84 // fullscreen 1024x768
85 vid_fullscreen 1
86 vid_width 1024
87 vid_height 768
88 vid_pixelheight 1
89 vid_desktopfullscreen 1
90 prvm_language en
91 set _menu_prvm_language ""
92 set _menu_vid_width "$vid_width"
93 set _menu_vid_height "$vid_height"
94 set _menu_vid_pixelheight "$vid_pixelheight"
95 set _menu_vid_desktopfullscreen "$vid_desktopfullscreen"
96 seta menu_vid_scale 0
97 seta menu_vid_allowdualscreenresolution 0
98 // 2D resolution 800x600
99 vid_conwidth 800
100 vid_conheight 600
101 // menu_conwidth, menu_conheight are set inside quake.rc
102 v_deathtilt 0 // needed for spectators (who are dead to avoid prediction)
103
104 // create a temporary empty alias for menu_sync so that execution of effects-normal.cfg, hud_luma.cfg
105 // and sRGB-{disable,enable}.cfg on game start doesn't show an error message in the console
106 alias menu_sync "" // will be re-aliased later
107
108 // we want to use sRGB for our maps!
109 exec sRGB-disable.cfg
110 vid_sRGB_fallback 2
111 r_hdr_glowintensity 1
112 // #define Image_LinearFloatFromsRGBFloat(c) (((c) <= 0.04045f) ? (c) * (1.0f / 12.92f) : (float)pow(((c) + 0.055f)*(1.0f/1.055f), 2.4f))
113 set rpn_sRGB_to_linear "dup 0.055 add 1.055 div 2.4 pow exch 12.92 div dup 0.0031308 gt when"
114 // #define Image_sRGBFloatFromLinearFloat(c) (((c) < 0.0031308f) ? (c) * 12.92f : 1.055f * (float)pow((c), 1.0f/2.4f) - 0.055f)
115 set rpn_linear_to_sRGB "dup 1.0 2.4 div pow 1.055 mul 0.055 sub exch 12.92 mul dup 0.04045 ge when"
116
117 // -nosRGB to -sRGB sky shader conversion:
118 //
119 // q3map_sunExt 1 0.6875 0.375 340 25 47 0 16
120 //                                    ^^ elevation
121 //                             ^^^ sunlight
122 // q3map_skylight 110 3
123 //                ^^^ skylight
124 //
125 // With that, do (the last parameter is the ratio of skylight you assume hits
126 // the surfaces, about 0.25 for inner surfaces near sky, about 1.00 on
127 // terrain):
128 // ]skybox_nosRGB_to_sRGB 340 47 110 0.25
129 // rpn: still on stack: new_sunlight:
130 // rpn: still on stack: 380.464142
131 // rpn: still on stack: new_skylight:
132 // rpn: still on stack: 9.32523632
133 //
134 // The equivalent -sRGB shader then will have:
135 //
136 // q3map_sunExt 1 0.6875 0.375 380.464142 25 47 0 16
137 // q3map_skylight 9.32523632 3
138 alias skybox_nosRGB_to_sRGB "rpn $3 402.123 $4 div div $rpn_sRGB_to_linear 402.123 $4 div mul /new_skylight: $3 402.123 $4 div div $1 256 div $2 0.017453 mul sin mul add $rpn_sRGB_to_linear $3 402.123 $4 div div $rpn_sRGB_to_linear sub 256 mul $2 0.017453 mul sin div /new_sunlight:"
139
140 set cl_orthoview 0 "enable top-down view of the map- meant to be used for radar map images (note: orthoview sets cvars temporarily, requires restart to return them to normal)"
141 set cl_orthoview_nofog 1 "disable fog while in orthoview-- note, should not be enabled on ALL maps, i.e. oilrig works fine with this disabled"
142
143 // these settings determine how much the view is affected by movement/damage
144 cl_smoothviewheight 0.05 // time of the averaging to the viewheight value so that it creates a smooth transition for crouching and such. 0 for instant transition
145 cl_deathfade 0 // fade screen to dark red when dead, value represents how fast the fade is (higher is faster)
146 cl_bobcycle 0.5 // how long the cycle of up/down view movement takes (only works if cl_bob is not 0), default is 0.6
147 cl_bob 0 // how much view moves up/down when moving (does not move if cl_bobcycle is 0, but still enables cl_bobmodel), default is 0.02
148 cl_bob2cycle 1 // how long the cycle of left/right view movement takes (only works if cl_bob2 is not 0), default is 0.6
149 cl_bob2 0 // how much view moves left/right when moving (does not move if cl_bob2cycle is 0), default is 0.01
150 cl_bobfall 0.05 "how much the view swings down when falling (influenced by the speed you hit the ground with)"
151 cl_bobfallcycle 3 "speed of the bobfall swing"
152 cl_bobfallspeed 200 "necessary amount of speed for bob-falling to occur"
153 cl_bobmodel 1 // whether to have gun model move around on screen when moving (only works if cl_bob is not 0), default is 1
154 cl_bobmodel_side 0.2 // amount the gun sways to the sides
155 cl_bobmodel_speed 10 // rate at which the gun sways
156 cl_bobmodel_up 0.1 // amount the gun sways up and down
157
158 cl_followmodel 1 // enables weapon pushing / pulling effect when walking
159 seta cl_followmodel_speed 0.3 "gun following speed"
160 seta cl_followmodel_limit 135 "gun following limit"
161 seta cl_followmodel_velocity_absolute 0 "make the effect ignore velocity direction changes (side effect: it causes a glitch when teleporting / passing through a warpzone)"
162 seta cl_followmodel_velocity_lowpass 0.05 "gun following velocity lowpass averaging time"
163 seta cl_followmodel_highpass 0.05 "gun following highpass averaging time"
164 seta cl_followmodel_lowpass 0.03 "gun following lowpass averaging time"
165
166 cl_leanmodel 1 // enables weapon leaning effect when looking around
167 seta cl_leanmodel_speed 0.3 "gun leaning speed"
168 seta cl_leanmodel_limit 30 "gun leaning limit"
169 seta cl_leanmodel_highpass1 0.2 "gun leaning pre-highpass averaging time"
170 seta cl_leanmodel_highpass 0.2 "gun leaning highpass averaging time"
171 seta cl_leanmodel_lowpass 0.05 "gun leaning lowpass averaging time"
172
173 cl_maxfps_alwayssleep 0 // gives up some processing time to other applications each frame, default is 1 (not necessary since Xonotic caps FPS by default)
174 cl_rollangle 0 // amount of view tilt when strafing, default is 2.0
175 v_kicktime 0 // how long damage kicks of the view last, default is 0 seconds
176 gl_polyblend 0 // whether to use screen tints, this has now been replaced by a better system in CSQC
177 r_motionblur 0 // motion blur value, default is 0
178 r_damageblur 0 // motion blur when damaged, default is 0 (removed in Xonotic)
179 net_slist_queriespersecond 60 // to be reduced if any major issues arise (ping times increased etc.)
180
181 // TODO: revisit bloom settings on the GL32 renderer!
182 r_bloom_blur 4
183 r_bloom_brighten 1
184 r_bloom_colorexponent 1
185 r_bloom_colorscale 1.5
186 r_bloom_colorsubtract 0.125
187 r_bloom_resolution 320
188 r_bloom_scenebrightness 1
189
190 seta vid_x11_display "" "xonotic-linux-*.sh will use this to start xonotic on an other/new X display"
191 // This can have three possible settings:
192 //      ""              run as usual
193 //      ":n"            use DISPLAY=:n, create it if needed
194 //      ":n/layout"     use DISPLAY=:n, create it if needed with ServerLayout layout
195
196 cl_autodemo_nameformat demos/%Y-%m-%d_%H-%M
197
198 // taunts and voices
199 seta cl_autotaunt 0 "automatically taunt enemies when fragging them"
200 seta cl_voice_directional 1     "0 = all voices are non-directional, 1 = all voices are directional, 2 = only taunts are directional"
201 seta cl_voice_directional_taunt_attenuation 0.5 "this defines the distance from which taunts can be heard"
202
203 seta cl_hitsound 1 "play a hit notifier sound when you have hit an enemy, 1: same pitch 2: decrease pitch with more damage 3: increase pitch with more damage"
204 set cl_hitsound_antispam_time 0.05 "don't play the hitsound more often than this"
205 seta cl_hitsound_min_pitch 0.75 "minimum pitch of hit sound"
206 seta cl_hitsound_max_pitch 1.5 "maximum pitch of hit sound"
207 seta cl_hitsound_nom_damage 25 "damage amount at which hitsound bases pitch off"
208
209 seta cl_eventchase_spectated_change 0 "camera goes into 3rd person mode for a moment when changing spectated player"
210 seta cl_eventchase_spectated_change_time 1 "how much time the effect lasts when changing spectated player"
211 seta cl_eventchase_death 2 "camera goes into 3rd person mode when the player is dead; set to 2 to active the effect only when the corpse doesn't move anymore"
212 seta cl_eventchase_frozen 0 "camera goes into 3rd person mode when the player is frozen"
213 seta cl_eventchase_nexball 1 "camera goes into 3rd person mode when in nexball game-mode"
214 seta cl_eventchase_distance 140 "final camera distance"
215 seta cl_eventchase_generator_distance 400 "final camera distance while viewing generator explosion"
216 seta cl_eventchase_speed 1.3 "how fast the camera slides back, 0 is instant"
217 seta cl_eventchase_maxs "12 12 8" "max size of eventchase camera bbox"
218 seta cl_eventchase_mins "-12 -12 -8" "min size of eventchase camera bbox"
219 seta cl_eventchase_viewoffset "0 0 20" "viewoffset of eventchase camera"
220 seta cl_eventchase_generator_viewoffset "0 0 80" "viewoffset of eventchase camera while viewing generator explosion"
221 seta cl_eventchase_vehicle 1 "camera goes into 3rd person mode when inside a vehicle"
222 seta cl_eventchase_vehicle_viewoffset "0 0 80"
223 seta cl_eventchase_vehicle_distance 250
224
225 seta chase_front 0 "show frontal view when using chase cam"
226
227 set _vehicles_shownchasemessage 0
228
229 seta cl_particles_oldvortexbeam 0 "Uses the old v2.3 Vortex beam instead of the new beam, only works if server allows it (g_allow_oldvortexbeam 1)"
230
231 seta cl_damageeffect 1 "enable weapon damage effects: 1 enables the feature on skeletal models, 2 on any model"
232 seta cl_damageeffect_ticrate 0.1 "particle spawn rate"
233 seta cl_damageeffect_bones 5 "how many damages to allow on a rigged mesh at once (non-skeletal objects are limited to one)"
234 seta cl_damageeffect_distribute 1 "divide particle intensity if multiple damages are present"
235 seta cl_damageeffect_lifetime 0.1 "how much a damage effect lasts, based on damage amount"
236 seta cl_damageeffect_lifetime_min 3 "minimum lifetime a damage effect may have"
237 seta cl_damageeffect_lifetime_max 6 "maximum lifetime a damage effect may have"
238
239 set cl_deathglow 2 "number of seconds during which dead bodies glow out"
240 set cl_deathglow_min 0.5 "glow out up to this glow factor"
241
242 set cl_respawn_ghosts_keepcolors 1 "if enabled respawn ghosts keep body colors"
243
244 set _teams_available 0 "internal cvar, value is synced from the server to reflect currently available teams to join"
245
246 cl_movement 1
247 cl_movement_track_canjump 0
248 cl_stairsmoothspeed 200
249
250 alias wpeditor_menu "quickmenu file \"\" wpeditor.txt"
251
252 alias g_waypointeditor_spawn         "wpeditor spawn"
253 alias g_waypointeditor_remove        "wpeditor remove"
254 alias g_waypointeditor_relinkall     "wpeditor relinkall"
255 alias g_waypointeditor_saveall       "wpeditor saveall"
256 alias g_waypointeditor_unreachable   "wpeditor unreachable"
257 alias g_waypointeditor_help          "wpeditor"
258 alias g_waypointeditor_menu          "wpeditor_menu"
259 alias g_waypointeditor_spawn_x       "wpeditor spawn crosshair"
260 alias g_waypointeditor_spawn_jump    "wpeditor spawn jump"
261 alias g_waypointeditor_spawn_crouch  "wpeditor spawn crouch"
262 alias g_waypointeditor_spawn_support "wpeditor spawn support"
263 alias g_waypointeditor_hardwire      "wpeditor hardwire"
264 alias g_waypointeditor_hardwire_x    "wpeditor hardwire crosshair"
265 alias g_waypointeditor_lock          "wpeditor lock"
266 alias g_waypointeditor_symorigin     "wpeditor symorigin $*"
267 alias g_waypointeditor_symaxis       "wpeditor symaxis $*"
268
269 alias navwaypoint_relink        g_waypointeditor_spawn
270 alias navwaypoint_remove        g_waypointeditor_remove
271 alias navwaypoint_save          g_waypointeditor_relinkall
272 alias navwaypoint_spawn         g_waypointeditor_saveall
273 alias navwaypoint_unreachable   g_waypointeditor_unreachable
274
275 seta menu_sandbox_spawn_model ""
276 seta menu_sandbox_attach_bone ""
277 seta menu_sandbox_edit_skin 0
278 seta menu_sandbox_edit_alpha 1
279 seta menu_sandbox_edit_color_main "1 1 1"
280 seta menu_sandbox_edit_color_glow "1 1 1"
281 seta menu_sandbox_edit_frame 0
282 seta menu_sandbox_edit_scale 1
283 seta menu_sandbox_edit_solidity 1
284 seta menu_sandbox_edit_physics 1
285 seta menu_sandbox_edit_force 1
286 seta menu_sandbox_edit_material ""
287
288 seta menu_monsters_edit_spawn ""
289 seta menu_monsters_edit_skin 0
290 seta menu_monsters_edit_movetarget 1
291
292 // effects
293 r_glsl_vertextextureblend_usebothalphas 1 // allows to abuse texture blending as detail texture
294 mod_q3shader_force_terrain_alphaflag 1 // supposedly now required for r_glsl_vertextextureblend_usebothalphas to work
295 r_glsl_postprocess 0 // but note, hud_postprocessing enables this
296 r_picmipsprites 0 // Xonotic uses sprites that should never be picmipped (team mate, typing, waypoints)
297 r_picmipworld 1
298 gl_picmip_world 0
299 gl_picmip_sprites 0
300 gl_picmip_other 1 // so, picmip -1 is best possible quality
301 r_mipsprites 1
302 r_mipskins 1
303 r_shadow_realtime_world_lightmaps 1
304 r_shadow_realtime_world_importlightentitiesfrommap 0 // Whether build process uses keepLights is nontransparent and may change, so better make keepLights not matter.
305 cl_decals_fadetime 5
306 cl_decals_time 1
307 seta cl_gunalign 3 "Gun alignment; 1 = center, 3 = right, 4 = left; requires reconnect. In servers which override shot origin this cvar is purely visual, in servers which do not this does affect where your shots come from"
308 seta cl_gunoffset "0 0 0" "Adjust the weapon viewmodel position, applies only to your own first person view and is relative to cl_gunalign"
309 seta cl_nogibs 0 "reduce number of violence effects, or remove them totally"
310 seta cl_particlegibs 0 "simpler gibs"
311 seta cl_gibs_damageforcescale 1.5 "force to push around gibs"
312 seta cl_gibs_lifetime 2.5 "average lifetime of gibs"
313 seta cl_gibs_velocity_scale 0.5 "gib throw velocity force scale"
314 seta cl_gibs_velocity_random 2 "gib throw velocity randomness scale"
315 seta cl_gibs_velocity_up 1 "extra z velocity for gibs"
316 seta cl_gibs_ticrate 0.1 "ticrate for gibs"
317 seta cl_gibs_sloppy 1 "sloppy gibs, may temporarily penetrate walls"
318 seta cl_gibs_avelocity_scale 1 "how much angular velocity to use on gibs"
319 seta cl_casings 1 "enable or disable bullet casings"
320 seta cl_casings_shell_time 30 "shell casing lifetime"
321 seta cl_casings_bronze_time 10 "bullet casings lifetime"
322 seta cl_casings_ticrate 0.03125 "ticrate for casings"
323 seta cl_casings_sloppy 1 "sloppy casings, may temporarily penetrate walls"
324 seta cl_projectiles_sloppy 1 "sloppy projectiles, may temporarily penetrate walls"
325 cl_stainmaps 0
326 cl_particles_smoke 1
327 gl_vbo 1 // removed in GL32 renderer
328 r_glsl_deluxemapping 1
329 r_glsl_offsetmapping 0
330 r_glsl_offsetmapping_lod 1
331 r_glsl_offsetmapping_reliefmapping 0
332 r_glsl_offsetmapping_scale 0.02
333
334 scr_screenshot_jpeg 1
335 scr_screenshot_jpeg_quality 0.9
336
337 cl_sound_wizardhit ""
338 cl_sound_hknighthit ""
339 cl_sound_tink1 weapons/tink1.wav
340 cl_sound_ric1 weapons/ric1.wav
341 cl_sound_ric2 weapons/ric2.wav
342 cl_sound_ric3 weapons/ric3.wav
343 cl_sound_r_exp3 ""
344
345 seta cl_announcer default "name of the announcer you wish to use from data/sound/announcer"
346 seta cl_announcer_antispam 2 "number of seconds before an announcement of the same sound can be played again"
347 seta cl_announcer_maptime 3 "play announcer sound telling you the remaining maptime - 0: do not play at all, 1: play at one minute, 2: play at five minutes, 3: play both"
348
349 set snd_cdautopause 0
350
351 // aliases:
352 alias +fire +attack
353 alias -fire -attack
354 alias +fire2 +button3
355 alias -fire2 -button3
356 alias +attack2 +button3 // old alias from Nexuiz
357 alias -attack2 -button3 // old alias name from Nexuiz
358 alias +crouch +button5
359 alias -crouch -button5
360 alias weapnext "_weapnext_${cl_weaponpriority_useforcycling}"
361 alias _weapnext_0 "impulse 18"
362 alias _weapnext_1 "impulse 15"
363 alias _weapnext_2 "impulse 10"
364 alias weaplast "impulse 11"
365 alias weapprev "_weapprev_${cl_weaponpriority_useforcycling}"
366 alias _weapprev_0 "impulse 19"
367 alias _weapprev_1 "impulse 16"
368 alias _weapprev_2 "impulse 12"
369 alias weapbest "impulse 13"
370
371 // experimental zoom toggle (can be in wrong state at start of a game, though)
372 set _togglezoom +
373 alias +zoom "set _togglezoom -; +button4"
374 alias -zoom "set _togglezoom +; -button4"
375 alias togglezoom "${_togglezoom}zoom"
376
377 alias reload "impulse 20"
378
379 // weapons
380 alias weapon_group_1 "impulse 1"
381 alias weapon_group_2 "impulse 2"
382 alias weapon_group_3 "impulse 3"
383 alias weapon_group_4 "impulse 4"
384 alias weapon_group_5 "impulse 5"
385 alias weapon_group_6 "impulse 6"
386 alias weapon_group_7 "impulse 7"
387 alias weapon_group_8 "impulse 8"
388 alias weapon_group_9 "impulse 9"
389 alias weapon_group_0 "impulse 14" // cycles the superweapons
390
391 cl_curl_enabled 1
392 cl_curl_maxdownloads 3
393 cl_curl_maxspeed 0
394 cl_curl_useragent 1
395 cl_curl_useragent_append "$g_xonoticversion"
396
397 seta g_waypointsprite_alpha 1 "This allows the client to control transparency of the waypoint"
398 seta g_waypointsprite_crosshairfadealpha 0.25 "alpha multiplier near crosshair"
399 seta g_waypointsprite_crosshairfadescale 1 "scale multiplier near the crosshair"
400 seta g_waypointsprite_crosshairfadedistance 150 "distance in virtual pixels from crosshair where to start fading"
401 seta g_waypointsprite_distancefadealpha 1 "alpha multiplier near distance"
402 seta g_waypointsprite_distancefadescale 0.7 "scale multiplier near the distance"
403 seta g_waypointsprite_distancefadedistancemultiplier 0.5 "distance in map sizes from distance where to stop fading"
404 set g_waypointsprite_distancealphaexponent 2
405 seta g_waypointsprite_edgefadealpha 0.5 "alpha multiplier near the edge"
406 seta g_waypointsprite_edgefadedistance 50 "distance in virtual pixels from edge where to start fading"
407 seta g_waypointsprite_edgefadescale 1 "scale multiplier near the edge"
408 seta g_waypointsprite_edgeoffset_bottom 0.06 "offset of how close the waypoint can be to the bottom edge of the screen"
409 seta g_waypointsprite_edgeoffset_left 0.06 "offset of how close the waypoint can be to the left edge of the screen"
410 seta g_waypointsprite_edgeoffset_right 0.06 "offset of how close the waypoint can be to the right edge of the screen"
411 seta g_waypointsprite_edgeoffset_top 0.06 "offset of how close the waypoint can be to the top edge of the screen"
412 seta g_waypointsprite_fontsize 12
413 seta g_waypointsprite_itemstime 2 "show waypoints to indicate that some important items (mega health, large armor) are about to respawn: 1 when spectating, 2 even playing in warmup stage"
414 set g_waypointsprite_minscale 0.5
415 set g_waypointsprite_minalpha 0.4
416 set g_waypointsprite_normdistance 512
417 seta g_waypointsprite_scale 1
418 set g_waypointsprite_spam 0 "Debugging feature. Set to 10 and load courtfun in race mode to test."
419 set g_waypointsprite_timealphaexponent 1
420 seta g_waypointsprite_turrets 1 "disable turret waypoints"
421 seta g_waypointsprite_turrets_maxdist 5000 "max distance for turret waypoints"
422 seta g_waypointsprite_turrets_text 0 "show the turret's name in the waypoint"
423 seta g_waypointsprite_turrets_onlyhurt 0 "only show the turret waypoint for a short period after being hurt"
424 seta g_waypointsprite_uppercase 1
425 seta g_waypointsprite_text 0 "Always show text instead of icons, setting this to 0 will still use text if the icon is unavailable"
426 seta g_waypointsprite_iconsize 32
427 seta g_waypointsprite_iconcolor 0 "saturation of the waypoint's color applied on top of the waypoint's icon, from 0 (natural icon's color) to 1"
428
429 alias "g_waypointsprite_personal"       "impulse 30"
430 alias "g_waypointsprite_personal_p"     "impulse 31"
431 alias "g_waypointsprite_personal_d"     "impulse 32"
432 alias "g_waypointsprite_team_helpme"    "impulse 33"
433 alias "g_waypointsprite_team_here"      "impulse 34"
434 alias "g_waypointsprite_team_here_p"    "impulse 35"
435 alias "g_waypointsprite_team_here_d"    "impulse 36"
436 alias "g_waypointsprite_team_danger"    "impulse 37"
437 alias "g_waypointsprite_team_danger_p"  "impulse 38"
438 alias "g_waypointsprite_team_danger_d"  "impulse 39"
439 alias "g_waypointsprite_clear_personal" "impulse 47"
440 alias "g_waypointsprite_clear"  "impulse 48"
441 alias "g_waypointsprite_toggle" "toggle cl_hidewaypoints"
442
443 seta cl_hidewaypoints 0 "disable static waypoints, only show team waypoints"
444
445 seta cl_damagetext "1" "Draw damage dealt where you hit the enemy"
446 seta cl_damagetext_format "-{total}" "How to format the damage text. {health}, {armor}, {total}, {potential}: full damage not capped to target's health, {potential_health}: health damage not capped to target's health"
447 seta cl_damagetext_format_verbose 0 "{health} shows {potential_health} too when they differ; {total} shows {potential} too when they differ"
448 seta cl_damagetext_format_hide_redundant 0 "hide {armor} if 0; hide {potential} and {potential_health} when same as actual"
449 seta cl_damagetext_color "1 1 0" "Damage text color"
450 seta cl_damagetext_color_per_weapon "0" "Damage text uses weapon color"
451 seta cl_damagetext_size_min 10 "Damage text font size for small damage"
452 seta cl_damagetext_size_min_damage 25 "How much damage is considered small"
453 seta cl_damagetext_size_max 16 "Damage text font size for large damage"
454 seta cl_damagetext_size_max_damage 140 "How much damage is considered large"
455 seta cl_damagetext_alpha_start "1" "Damage text initial alpha"
456 seta cl_damagetext_alpha_lifetime "3" "Damage text lifetime in seconds"
457 seta cl_damagetext_lifetime "-1" "Damage text lifetime, edit this if you wish for damage text to disappear before it fades out"
458 seta cl_damagetext_velocity_screen "0 0 0" "Damage text move direction (screen coordinates)"
459 seta cl_damagetext_velocity_world "0 0 20" "Damage text move direction (world coordinates relative to player's view)"
460 seta cl_damagetext_offset_screen "0 -45 0" "Damage text offset (screen coordinates)"
461 seta cl_damagetext_offset_world "0 25 0" "Damage text offset (world coordinates relative to player's view)"
462 seta cl_damagetext_accumulate_alpha_rel "0.65" "Only update existing damage text when it's above this much percentage (0 to 1) of the starting alpha"
463 seta cl_damagetext_accumulate_lifetime "-1" "Only update existing damage text when it is younger than this many seconds, negative always updates"
464 seta cl_damagetext_friendlyfire "1" "0: never show for friendly fire, 1: when more than 0 damage, 2: always"
465 seta cl_damagetext_friendlyfire_color "1 0 0" "Damage text color for friendlyfire"
466
467 seta cl_damagetext_2d 1 "Show damagetext in 2D coordinates if the enemy's location is not known"
468 seta cl_damagetext_2d_pos "0.47 0.53 0" "2D damage text initial position (X and Y between 0 and 1)"
469 seta cl_damagetext_2d_alpha_start 1 "2D damage text initial alpha"
470 seta cl_damagetext_2d_alpha_lifetime 1.3 "2D damage text lifetime (alpha fading) in seconds"
471 seta cl_damagetext_2d_size_lifetime 3 "2D damage text lifetime (size shrinking) in seconds"
472 seta cl_damagetext_2d_velocity "-25 0 0" "2D damage text move direction (screen coordinates)"
473 seta cl_damagetext_2d_overlap_offset "0 -15 0" "Offset 2D damage text by this much to prevent overlapping (screen coordinates)"
474 seta cl_damagetext_2d_close_range 125 "Always use 2D damagetext for hits closer that this"
475 seta cl_damagetext_2d_out_of_view 1 "Always use 2D damagetext for hits that occurred off-screen"
476
477 seta cl_vehicles_alarm 0 "Play an alarm sound when the vehicle you are driving is heavily damaged"
478 seta cl_vehicles_hud_tactical 1
479 seta cl_vehicles_hudscale 0.5
480 seta cl_vehicles_notify_time 15
481 seta cl_vehicles_crosshair_size 0.5
482 seta cl_vehicles_crosshair_colorize 1
483
484 r_labelsprites_scale 0.40625 // labels sprites get displayed at 0.5x from 640x480 to 1280x1024, and at 1x from 1600x1200 onwards
485
486 exec binds-xonotic.cfg
487
488 seta menu_skin "luma"
489 set menu_slowmo 1
490 seta menu_sounds 0 "enables menu sound effects. 1 enables click sounds, 2 also enables hover sounds"
491 seta menu_tooltips 1 "menu tooltips: 0 disabled, 1 enabled, 2 also shows cvar or console command (when available) changed or executed by the item"
492 set menu_picmip_bypass 0 "bypass texture quality enforcement based on system resources, not recommended and may cause crashes!"
493 set menu_showboxes 0 "show item bounding boxes (debug)"
494 set menu_cvarlist_onlymodified 0 "show only modified cvars in the cvar list"
495
496 set menu_no_music_nor_welcome 0 "don't play the menu music and skip the welcome announcer"
497
498 seta menu_weaponarena ""
499
500 seta menu_maxplayers 16 "maxplayers value when the menu starts a game"
501
502 seta menu_mouse_absolute 1 "use the OS mouse pointer motion for menu"
503 seta menu_mouse_speed 1 "speed multiplier for the mouse in the menu (does not affect in-game aiming)"
504 set menu_use_default_hostname 1
505 alias sethostname "set menu_use_default_hostname 0; hostname $*"
506
507 set _menu_alpha "" // will be set by menu QC to the current fading of the menu, can be used by CSQC to fade items
508 set _menu_initialized 0 "is 0 on first menu loading, 1 later"
509
510 set _menu_credits_export 0 "set to 1 and restart the menu to export credits to credits.txt (menu will automatically reset to 0)"
511 alias menu_credits_export "_menu_credits_export 1; menu_restart"
512
513 r_textbrightness 0.2
514 r_textcontrast 0.8
515 r_textshadow 0
516
517 // safe font defaults
518 r_font_hinting 2
519 r_font_disable_freetype 0
520 r_font_size_snapping 4
521 r_font_postprocess_blur 1
522 r_font_postprocess_outline 1
523
524 // good settings for these fonts
525 con_chat 5
526 con_chatpos -9
527 con_chatsize 10
528 con_chatwidth 0.6
529 con_notify 0
530 con_notifysize 10
531 con_notifyalign 0
532 con_textsize 10
533
534 seta sbar_info_pos 0 "Y-axis distance from lower right corner for engine info prints"
535
536 // scoreboard
537 seta scoreboard_columns default
538
539 // keep old scoreboard cvars for compatibility's sake
540 // they've been replaced by hud_panel_scoreboard_* cvars
541 // TODO remove them after a future release (0.8.2+)
542 seta scoreboard_border_thickness 1 "scoreboard border thickness"
543 seta scoreboard_accuracy_border_thickness 1 "accuracy stats border thickness"
544 seta scoreboard_accuracy_doublerows 0 "use two rows instead of one"
545 seta scoreboard_accuracy_nocolors 0 "don't use colors displaying accuracy stats"
546 seta scoreboard_accuracy 1 "show weapon accuracy stats panel on scoreboard; colors can be configured with accuracy_color* cvars"
547 seta scoreboard_color_bg_r 0.125 "red color component of the scoreboard background"
548 seta scoreboard_color_bg_g 0.55 "green color component of the scoreboard background"
549 seta scoreboard_color_bg_b 0.875 "blue color component of the scoreboard background"
550 seta scoreboard_color_bg_team 0.6 "team color multiplier of the scoreboard background"
551 seta scoreboard_alpha_bg 0.7 "scoreboard background alpha"
552 seta scoreboard_alpha_fg 1 "scoreboard foreground alpha"
553 seta scoreboard_alpha_name 0.9 "alpha of player text in scoreboard list other than self"
554 seta scoreboard_alpha_name_self 1 "alpha of player text in scoreboard list of self"
555 seta scoreboard_fadeinspeed 10 "speed at which scoreboard fades in, higher is faster (0 = instant)"
556 seta scoreboard_fadeoutspeed 5 "speed at which scoreboard fades out, higher is faster (0 = instant)"
557 seta scoreboard_highlight 1 "enable highlighting for rows and columns in the scoreboard"
558 seta scoreboard_highlight_alpha 0.08 "highlight alpha value (depends on hud_scoreboard_highlight 1)"
559 seta scoreboard_highlight_alpha_self 0.3 "self highlight alpha value"
560 seta scoreboard_offset_left 0.15 "how far (by percent) the scoreboard is offset from the left screen edge"
561 seta scoreboard_offset_right 0.15 "how far (by percent) the scoreboard is offset from the right screen edge"
562 seta scoreboard_offset_vertical 0.05 "how far (by percent) the scoreboard is offset from the top and bottom of the screen"
563 seta scoreboard_bg_scale 0.25 "scale for the tiled scoreboard background"
564 seta scoreboard_respawntime_decimals 1 "decimal places to show for the respawntime countdown display on the scoreboard"
565 seta scoreboard_dynamichud 0 "apply the dynamic hud effects to the scoreboard"
566
567 seta accuracy_color_levels "0 20 100" "accuracy values at which a specified color (accuracy_color<X>) will be used. If your accuracy is between 2 of these values then a mix of the Xth and X+1th colors will be used. You can specify up to 10 values, in increasing order"
568 seta accuracy_color0 "1 0 0"
569 seta accuracy_color1 "1 1 0"
570 seta accuracy_color2 "0 1 0"
571
572 // for menu server list (eventually make them have engine support?)
573 seta menu_slist_showfull 1 "show servers even if they are full and have no slots to join"
574 seta menu_slist_showempty 1 "show servers even if they are no empty and have no opponents to play against"
575 seta menu_slist_showlaggy 0 "show servers even if they are very high latency (see menu_slist_maxping)"
576 seta menu_slist_modfilter "" // set to either: !modname or modname. modname of = means "same as we are running now".
577
578 // other serverlist cvars
579 seta menu_slist_categories 0
580 seta menu_slist_categories_onlyifmultiple 1
581 seta menu_slist_purethreshold 0
582 seta menu_slist_maxping 300
583 seta menu_slist_modimpurity 0
584 seta menu_slist_recommendations 3
585 seta menu_slist_recommendations_maxping 150
586 seta menu_slist_recommendations_minfreeslots 1
587 seta menu_slist_recommendations_minhumans 0
588 seta menu_slist_recommendations_purethreshold -1
589
590 // serverlist category override cvars
591 seta menu_slist_categories_CAT_FAVORITED_override ""
592 seta menu_slist_categories_CAT_RECOMMENDED_override ""
593 seta menu_slist_categories_CAT_NORMAL_override ""
594 seta menu_slist_categories_CAT_SERVERS_override "CAT_NORMAL"
595 seta menu_slist_categories_CAT_XPM_override ""
596 seta menu_slist_categories_CAT_MODIFIED_override ""
597 seta menu_slist_categories_CAT_OVERKILL_override ""
598 seta menu_slist_categories_CAT_INSTAGIB_override ""
599 seta menu_slist_categories_CAT_DEFRAG_override ""
600
601 // useful keybind to maximize the chat area temporarily
602 // HUD code takes care of many of these now...
603 //set _backup_con_chatvars_set 0
604 //alias _restore_con_chatvars_0 ""
605 //alias _restore_con_chatvars_1 "set _backup_con_chatvars_set 0; con_chatpos $_backup_con_chatpos; con_chat $_backup_con_chat; con_notify $_backup_con_notify; con_chattime $_backup_con_chattime; cl_deathscoreboard $_backup_cl_deathscoreboard; scr_centertime $_backup_scr_centertime;r_track_sprites $_backup_r_track_sprites"
606 //alias _restore_con_chatvars "_restore_con_chatvars_$_backup_con_chatvars_set"
607 //alias _backup_con_chatvars_0 "set _backup_con_chatvars_set 1; set _backup_con_chatpos $con_chatpos; set _backup_con_chat $con_chat; set _backup_con_notify $con_notify; set _backup_con_chattime $con_chattime; set _backup_cl_deathscoreboard $cl_deathscoreboard; set _backup_scr_centertime $scr_centertime;set _backup_r_track_sprites $r_track_sprites"
608 //alias _backup_con_chatvars_1 ""
609 //alias _backup_con_chatvars "_backup_con_chatvars_$_backup_con_chatvars_set"
610 //alias +con_chat_maximize "_backup_con_chatvars; con_chatpos -9; con_chat 100; con_notify 0; con_chattime 3600; cl_deathscoreboard 0; scr_centertime 0; r_track_sprites 0"
611 //alias -con_chat_maximize "_restore_con_chatvars"
612
613 set _con_chat_maximized 0
614 set _backup_con_chatvars_set 0
615 alias _restore_con_chatvars_0 ""
616 alias _restore_con_chatvars_1 "set _backup_con_chatvars_set 0; con_notify $_backup_con_notify; con_chattime $_backup_con_chattime; cl_deathscoreboard $_backup_cl_deathscoreboard; scr_centertime $_backup_scr_centertime;r_track_sprites $_backup_r_track_sprites"
617 alias _restore_con_chatvars "_restore_con_chatvars_$_backup_con_chatvars_set"
618 alias _backup_con_chatvars_0 "set _backup_con_chatvars_set 1; set _backup_con_notify $con_notify; set _backup_con_chattime $con_chattime; set _backup_cl_deathscoreboard $cl_deathscoreboard; set _backup_scr_centertime $scr_centertime;set _backup_r_track_sprites $r_track_sprites"
619 alias _backup_con_chatvars_1 ""
620 alias _backup_con_chatvars "_backup_con_chatvars_$_backup_con_chatvars_set"
621 alias +con_chat_maximize "_con_chat_maximized 1; _backup_con_chatvars; con_notify 0; con_chattime 3600; cl_deathscoreboard 0; scr_centertime 0; r_track_sprites 0"
622 alias -con_chat_maximize "_con_chat_maximized 0; _restore_con_chatvars"
623
624 // tab completion
625 set con_completion_playdemo     *.dem
626 set con_completion_timedemo     *.dem
627 set con_completion_ply          *.dem
628 set con_completion_tdem         *.dem
629 set con_completion_exec         *.cfg
630 set con_completion_chmap        map
631 set con_completion_devmap       map
632 set con_completion_gotomap      map
633 set con_completion_vmap         map
634 set con_completion_vnextmap     map
635 set con_completion_vdomap       map
636 set con_completion_playermodel  "models/player/*.iqm"
637
638 // helper
639 // these non-saved engine cvars shall be saved
640 alias makesaved "seta $1 \"${$1 ?}\""
641 makesaved cl_maxfps_alwayssleep
642 makesaved cl_port
643 makesaved gl_finish
644 makesaved net_slist_queriespersecond
645 makesaved r_ambient
646 makesaved r_drawviewmodel
647 makesaved r_showsurfaces
648 makesaved r_subdivisions_tolerance
649 makesaved skill
650 makesaved vid_gl13
651 makesaved vid_gl20
652 makesaved v_idlescale
653 makesaved v_kicktime
654 makesaved music_playlist_list0
655 makesaved music_playlist_random0
656
657 cl_netfps 60 // should match or be a multiple of sys_ticrate
658 _cl_rate 40000 // fast adsl
659
660 gl_texture_anisotropy 8
661 seta gl_texturecompression 0 // FIXME the description is wrong - when this is 0, e.g. gl_texturecompression_sky still takes effect
662 gl_texturecompression_color 1
663 gl_texturecompression_gloss 1
664 gl_texturecompression_glow 1
665 gl_texturecompression_lightcubemaps 0
666 gl_texturecompression_q3bsplightmaps 0
667 gl_texturecompression_sky 1
668
669 cl_maxfps 250
670
671 seta cl_weaponpriority "vaporizer okhmg okrpc oknex vortex fireball mortar okmachinegun machinegun hagar rifle arc electro devastator crylink minelayer okshotgun shotgun shockwave hlac tuba blaster porto seeker hook" "weapon priority list"
672 seta cl_weaponpriority_useforcycling 0 "when set, weapon cycling by the mouse wheel makes use of the weapon priority list (the special value 2 uses the weapon ID list for cycling)"
673 seta cl_weaponpriority0 "okrpc devastator mortar hagar seeker fireball"                   "use weapon_priority_0_prev for prev gun from this list, weapon_priority_0_best for best gun, weapon_priority_0_next for next gun.  Default value: explosives"
674 seta cl_weaponpriority1 "vaporizer oknex vortex crylink hlac arc electro blaster shockwave"   "use weapon_priority_1_prev for prev gun from this list, weapon_priority_1_best for best gun, weapon_priority_1_next for next gun.  Default value: energy"
675 seta cl_weaponpriority2 "vaporizer oknex vortex rifle"                                        "use weapon_priority_2_prev for prev gun from this list, weapon_priority_2_best for best gun, weapon_priority_2_next for next gun.  Default value: hitscan exact"
676 seta cl_weaponpriority3 "vaporizer okhmg oknex vortex rifle okmachinegun machinegun okshotgun shotgun shockwave"       "use weapon_priority_3_prev for prev gun from this list, weapon_priority_3_best for best gun, weapon_priority_3_next for next gun.  Default value: hitscan all"
677 seta cl_weaponpriority4 "mortar minelayer hlac hagar crylink seeker okshotgun shotgun shockwave"  "use weapon_priority_4_prev for prev gun from this list, weapon_priority_4_best for best gun, weapon_priority_4_next for next gun.  Default value: spam weapons"
678 seta cl_weaponpriority5 "blaster shockwave hook porto"                                  "use weapon_priority_5_prev for prev gun from this list, weapon_priority_5_best for best gun, weapon_priority_5_next for next gun.  Default value: weapons for moving"
679 seta cl_weaponpriority6 ""                                                              "use weapon_priority_6_prev for prev gun from this list, weapon_priority_6_best for best gun, weapon_priority_6_next for next gun"
680 seta cl_weaponpriority7 ""                                                              "use weapon_priority_7_prev for prev gun from this list, weapon_priority_7_best for best gun, weapon_priority_7_next for next gun"
681 seta cl_weaponpriority8 ""                                                              "use weapon_priority_8_prev for prev gun from this list, weapon_priority_8_best for best gun, weapon_priority_8_next for next gun"
682 seta cl_weaponpriority9 ""                                                              "use weapon_priority_9_prev for prev gun from this list, weapon_priority_9_best for best gun, weapon_priority_9_next for next gun"
683 seta cl_weaponimpulsemode 0 "0: only cycle between currently usable weapons in weapon priority order; 1: cycle between all possible weapons on a key in weapon priority order"
684
685 alias _gl_flashblend_update_00 "gl_flashblend 1"
686 alias _gl_flashblend_update_10 "gl_flashblend 0"
687 alias _gl_flashblend_update_01 "gl_flashblend 0"
688 alias _gl_flashblend_update_11 "gl_flashblend 0"
689 alias gl_flashblend_update "_gl_flashblend_update_$r_shadow_realtime_dlight$r_showsurfaces"
690
691 // TODO: remove cl_handicap cvar after 0.9 release
692 set cl_handicap 1 "multiplies damage received and divides damage dealt"
693 alias cl_handicap "cl_handicap_damage_given ${* ?} ; cl_handicap_damage_taken ${* ?} ; set cl_handicap ${* ?}"
694 set cl_handicap_damage_given 1 "damage given is divided by this factor if > 1"
695 set cl_handicap_damage_taken 1 "damage taken is multiplied by this factor if > 1"
696
697 seta cl_clippedspectating 1 "movement collision for spectators so that you can't pass through walls and such"
698
699 // cl_autoscreenshot_screenshot is called by the server when the game ends with map name and match id as parameters
700 // it takes care of hiding all the UI parts that may overlap the scoredoard before taking a screenshot
701 // TODO remove "alias cl_autoscreenshot_screenshot_s;" after the next release
702 // cl_autoscreenshot_screenshot_s is created by the server via stuffcmd for backwards compatibility
703 // and not used by cl_autoscreenshot_screenshot, which intentionally clears it (not delete)
704 seta cl_autoscreenshot 1 "Take a screenshot upon the end of a match... 0 = Disable completely, 1 = Allow sv_autoscreenshot to take a screenshot when requested, 2 = Always take an autoscreenshot anyway."
705 alias _cl_autoscreenshot_save "set _con_chattime_save $con_chattime; set _hud_panel_scoreboard_fadeinspeed_save $hud_panel_scoreboard_fadeinspeed; set _menu_slowmo_save $menu_slowmo; set _scr_conheight_save $scr_conheight; set _con_textsize_save $con_textsize; set _scr_conalpha_save $scr_conalpha"
706 alias _cl_autoscreenshot_set "con_chattime 0.001; hud_panel_scoreboard_fadeinspeed 999; menu_slowmo 999; scr_conheight 0; con_textsize 1; scr_conalpha 0"
707 alias _cl_autoscreenshot_restore "set con_chattime $_con_chattime_save; set hud_panel_scoreboard_fadeinspeed $_hud_panel_scoreboard_fadeinspeed_save; set menu_slowmo $_menu_slowmo_save; set scr_conheight $_scr_conheight_save; set con_textsize $_con_textsize_save; set scr_conalpha $_scr_conalpha_save"
708 alias cl_autoscreenshot_screenshot "alias cl_autoscreenshot_screenshot_s ""; togglemenu 0; -con_chat_maximize; _cl_autoscreenshot_save; _cl_autoscreenshot_set; defer 0.1 \"screenshot screenshots/autoscreenshot/${1}-${2}.jpg\"; defer 0.1 \"_cl_autoscreenshot_restore\""
709
710 seta cl_jetpack_jump 1 "Activate jetpack by pressing jump in the air. 0 = Disable, 1 = Stop when touching ground, 2 = Enable"
711
712 seta cl_race_cptimes_showself 1 "Always show your own times as well as the current best on checkpoints in Race/CTS"
713 seta cl_race_cptimes_onlyself 0 "Only show your own times on checkpoints in Race/CTS"
714
715 seta cl_cts_noautoswitch 0 "Prevent forced switching to new weapons in CTS"
716
717 set cl_stripcolorcodes 0        "experimental feature (notes: strips ALL color codes from messages!)"
718
719 // prints view position and orientation
720 alias posview_camera_info "prvm_globalget client view_origin _posview_tmpcvar1; prvm_globalget client view_angles _posview_tmpcvar2; _posview_camera_info_2"
721 alias _posview_camera_info_2 "echo view_origin ^7\"$_posview_tmpcvar1\"; echo view_angles ^7\"$_posview_tmpcvar2\""
722
723 // prints csqcplayer position and orientation
724 // NOTE: for some reason .angles contains only yaw, .v_angles only pitch, .v_angle_old both
725 alias posview_csqcplayer_info "prvm_globalget client csqcplayer _posview_tmpcvar1; _posview_csqcplayer_info2"
726 alias _posview_csqcplayer_info2 "prvm_edictget client $_posview_tmpcvar1 origin _posview_tmpcvar1; prvm_edictget client $_posview_tmpcvar1 v_angle_old _posview_tmpcvar2; _posview_csqcplayer_info3"
727 alias _posview_csqcplayer_info3 "echo csqcplayer origin ^7\"$_posview_tmpcvar1\"; echo csqcplayer angles ^7\"$_posview_tmpcvar2\""
728 set _posview_tmpcvar1 "0"
729 set _posview_tmpcvar2 "0"
730
731 // Demo camera
732 set camera_enable               0       "Enables the camera for demo playback"
733 set camera_free                 0       "Free camera instead of chasing the player"
734 set camera_reset                0       "Resets the camera position and switch to chase mode"
735 set camera_speed_roll           0.9     "Camera rotation speed"
736 set camera_speed_chase          4       "Camera movement speed on the x/y/z axis while chasing the player"
737 set camera_speed_free           8       "Camera movement speed on the x/y/z axis in free mode"
738 set camera_speed_attenuation    10      "Camera movements attenuation factor. Bigger is smoother. Applies to mouse movements"
739 set camera_mouse_threshold      0.5     "Use to ignore small mouse movements. This allows for smoother camera control"
740 set camera_chase_smoothly       0       "Attenuate player movements (only in chase mode)"
741 set camera_look_player          0       "Always look to the player. Mouse input is ignored in this mode"
742 set camera_look_attenuation     8       "Attenuation of \"looking\" movements, only if camera_look_player is set. Bigger is smoother"
743 set camera_forward_follows      1       "0: Move the camera forwards without changing altitude. 1: Move towards what you are looking"
744
745 // "Gentle mode": show no blood
746 seta cl_gentle 0                        "client side gentle mode, master switch"
747 seta cl_gentle_gibs 0           "client side gentle mode for gibs (cl_nogibs); when set to 1, white smoke replaces gibs, when set to 2, colorful clouds replace gibs"
748 seta cl_gentle_messages 0       "client side gentle mode for frag messages/centerprints"
749 seta cl_gentle_damage 0         "client side gentle mode for damage flash (hud_damage); when set to 1, a white flash replaces the blood image, when set to 2, a randomly colored flash is used instead"
750
751 set cl_jetpack_attenuation 2 "jetpack sound attenuation"
752
753 set cl_warpzone_usetrace 1 "do not touch"
754
755 set cl_effects_lightningarc_simple 0
756 set cl_effects_lightningarc_segmentlength 64
757 set cl_effects_lightningarc_drift_start 0.45
758 set cl_effects_lightningarc_drift_end 0.1
759 set cl_effects_lightningarc_branchfactor_start 0.25
760 set cl_effects_lightningarc_branchfactor_add 0.1
761
762 seta cl_loddistance1 1024
763 seta cl_loddistance2 3072
764 seta cl_playerdetailreduction 4 "the higher, the less detailed player models are displayed (LOD)"
765 seta cl_modeldetailreduction 1  "higher values will reduce the detail of non-player and non-weapon models (LOD)"
766
767 seta cl_casings_maxcount 100 "maximum amount of shell casings (must be at least 1)"
768 seta cl_gibs_maxcount 100 "maximum amount of gibs (must be at least 1)"
769
770 //cl_gunalign calculator
771 seta menu_cl_gunalign 3 "Gun alignment; 1 = center (if allowed by g_shootfromclient) or right, 2 = center (if allowed by g_shootfromclient) or left, 3 = right only, 4 = left only"
772 alias _gunalign_01 "cl_gunalign 1"
773 alias _gunalign_02 "cl_gunalign 2"
774 alias _gunalign_03 "cl_gunalign 3"
775 alias _gunalign_04 "cl_gunalign 4"
776 alias _gunalign_11 "cl_gunalign 2"
777 alias _gunalign_12 "cl_gunalign 1"
778 alias _gunalign_13 "cl_gunalign 4"
779 alias _gunalign_14 "cl_gunalign 3"
780 alias _gunalign_update "_gunalign_$v_flipped$menu_cl_gunalign"
781
782 set cl_shootfromfixedorigin "" "dummy cvar, value is synced from the server's g_shootfromfixedorigin setting"
783
784 set cl_jumpspeedcap_min "" "dummy cvar, value is synced from the server's sv_jumpspeedcap_min setting"
785 set cl_jumpspeedcap_max "" "dummy cvar, value is synced from the server's sv_jumpspeedcap_max setting"
786
787 seta cl_noantilag 0 "turn this on if you believe antilag is bad"
788
789 set cl_accuracy_data_share 0 "1 share my weapon accuracy data statistics with other players, 0 keep my weapon accuracy data statistics hidden"
790 set cl_accuracy_data_receive 0 "1 receive weapon accuracy data statistics at the end of the match"
791
792 set developer_csqcentities 0 "csqc entity spam"
793
794 seta cl_forceplayermodels 0 "make everyone look like your own model (requires server to have sv_defaultcharacter 0)"
795 seta cl_forceplayercolors 0 "make enemies look like your own color (requires server to have sv_defaultcharacter 0); 1: in all game modes without teams (if cl_forceuniqueplayercolors is 0), 2: always, 3: only in Duel, 4: only in game modes with 2 teams, 5: in team games and Duel"
796 seta cl_forceuniqueplayercolors 0 "assign each enemy unique colors in all game modes without teams except duel (requires server to have sv_defaultcharacter 0)"
797 seta cl_forcemyplayermodel "" "set to the model file name you want to show yourself as (does not affect how enemies look with cl_forceplayermodels)"
798 seta cl_forcemyplayerskin 0 "set to the skin number you want to show yourself as (does not affect how enemies look with cl_forceplayermodels)"
799 seta cl_forcemyplayercolors 0 "set to the color value (encoding is same as _cl_color) for your own player model (ignored in teamplay; does not affect how enemies look with cl_forceplayermodels)"
800 seta cl_movement_errorcompensation 1 "try to compensate for prediction errors and reduce perceived lag"
801 seta cl_movement_intermissionrunning 0 "keep velocity after the match ends, players may appear to continue running while stationary"
802
803 seta cl_viewmodel_alpha 1 "Maximum opacity of the view model, use a value between 0 and 1"
804
805 set debugdraw 0
806 set debugdraw_filter ""
807 set debugdraw_filterout ""
808 set debugtrace 0
809
810 // FIXME remove this when the engine feature FINALLY MAYBE works
811 r_glsl_skeletal 0
812
813 // FIXME engine description mentions the default should be 1, but sets it to 2 anyway, breaks some maps
814 r_useportalculling 1
815
816 // animation tuning
817 set cl_lerpanim_maxdelta_framegroups 0.05 // must be faster than fastest weapon refire
818 set cl_lerpanim_maxdelta_server 0.1 // must be slower than slowest server controlled anim (e.g. animinfo stuff)
819
820 // autodemo deleting
821 seta cl_autodemo_delete_keeprecords 0 "when 1, records with a newly made race/cts demo are kept even if cl_autodemo_delete is used to delete demos"
822
823 // freeze camera
824 set cl_lockview 0 "when 1, the camera does not move any more; when 2, you can only control camera angles"
825
826 // we now use mastervolume
827 volume 1
828
829 // sucks less than the old one
830 cl_decals_newsystem 1
831
832 scr_conalpha 1
833 scr_conalpha2factor 0.3
834 scr_conalpha3factor 1
835 scr_conalphafactor 0.8
836 scr_conbrightness 0.35
837 scr_conscroll2_x 0.11
838 scr_conscroll2_y 0.2
839 scr_conscroll3_x 0
840 scr_conscroll3_y 0
841 scr_conscroll_x -0.1
842 scr_conscroll_y -0.3
843
844 scr_conforcewhiledisconnected 0
845 scr_infobar_height 12
846
847 // DP cannot properly detect this, so rather turn off the detection
848 r_texture_dds_load_alphamode 2
849 r_texture_dds_swdecode 1 // SW decode to quarter res if we want to load DDS but don't support the extension for it
850 r_texture_dds_load_logfailure 0 // this engine feature SUCKS
851 set vid_netwmfullscreen 0 // doesn't support non-native res
852
853 // particles optimization
854 r_drawparticles_nearclip_min 8
855 r_drawparticles_nearclip_max 16
856
857 r_cullentities_trace 0
858
859 // exact gloss looks better, e.g. on g-23
860 r_shadow_glossexact 1
861 r_shadow_glossintensity 1
862
863 // use slightly better lighting than r_fullbright if map has no lightmaps, and for fullbrightplayers
864 r_fullbright_directed 1
865
866 r_water_hideplayer 1 // hide your own feet/player model in refraction views, this way you don't see half of your body under water
867 r_water_refractdistort 0.003
868
869 set cl_rainsnow_maxdrawdist 1000
870
871 // database management
872 set cl_db_saveasdump 0 "write client.db in dump format (loads slower, easier to read/parse)"
873
874 // uid2name
875 seta cl_allow_uid2name -1 "-1 = ask if the player wants to disable/enable this feature, 0 = disable, 1 = enable uid2name (allows showing your name in race rankings for instance)"
876 seta cl_allow_uidtracking 1 "-1 = ask if the player wants to disable/enable this feature, 0 = disable, 1 = enable uid tracking (allows associating your data with your player ID)"
877 seta cl_allow_uidranking 1 "0 = disable, 1 = enable uid ranking (allows statistics like elo to rank you in leaderboards)"
878
879 // terms of service
880 seta _termsofservice_accepted 0
881
882 // polygonoffset for submodel SUCKS SUCKS SUCKS (only a hack for quake1, we don't need that)
883 r_polygonoffset_submodel_offset 0
884 r_polygonoffset_submodel_factor 0
885 // decals: need a higher polygonoffset than default to not compete with _decal surfaces too much
886 r_polygonoffset_decals_offset -28
887 r_polygonoffset_decals_factor 0
888
889 // loading screen
890 scr_loadingscreen_background 0
891 scr_loadingscreen_barcolor "0 0.5 1"
892 scr_loadingscreen_barheight 12
893 scr_loadingscreen_count 1
894 scr_loadingscreen_firstforstartup 1
895 scr_loadingscreen_scale 999
896 scr_loadingscreen_scale_base 1
897 scr_loadingscreen_scale_limit 2
898
899 // in-game menu
900 seta menu_gamemenu 1 "1: show in-game menu when esc is pressed; 0: show main menu when esc is pressed"
901
902 // other config files
903 exec effects-normal.cfg
904 exec crosshairs.cfg
905 exec gamemodes-client.cfg
906 exec notifications.cfg
907
908 seta cl_physics "default" "client selected physics set"
909
910 // hud cvar descriptions and common settings
911 exec _hud_common.cfg
912 exec _hud_descriptions.cfg
913 // exec the default skin config
914 // please add any new cvars into the hud_save script in qcsrc/client/hud_config.qc for consistency
915 exec hud_luma.cfg
916
917 // enable menu syncing - must be after files that call menu_sync on startup - see alias menu_sync ""
918 alias menu_sync "menu_cmd sync"
919
920 seta cl_items_animate 7 "1 enables bobbing and spinning of 3d items, 2 enables fading out of despawning loot items, 4 enables glowing particles for despawning loot items; add the numbers together to enable that combination."
921 seta cl_items_fadedist 500 "distance, relative to the server's g_items_maxdist, at which far away items will start to fade out; 0 disables fading effect"
922 seta cl_items_vehicle_alpha 0.75 "Alpha of items seen from inside a vehicle"
923 seta cl_items_vehicle_color "2 0.5 0.5" "Colour of items seen from inside a vehicle"
924 seta cl_ghost_items 0.45 "enable ghosted items (when between 0 and 1, overrides the alpha value)"
925 seta cl_ghost_items_color "-1 -1 -1" "color of ghosted items (colormod format: 0 0 0 leaves the color unchanged, negative values allowed)"
926 seta cl_simple_items 0 "enable simple items (if server allows)"
927 set cl_simpleitems_postfix "_luma" "posfix to add fo model name when simple items are enabled"
928 set cl_weapon_stay_color "2 0.5 0.5" "Color of picked up weapons when g_weapon_stay > 0 (colormod format: 0 0 0 leaves the color unchanged, negative values allowed)"
929 set cl_weapon_stay_alpha 0.75 "Alpha of picked up weapons when g_weapon_stay > 0"
930
931 seta cl_arcbeam_simple 1 "use a simplified beam for the Arc instead of accurate flexible poly drawing (improves performance and visuals slightly)"
932 seta cl_arcbeam_teamcolor 1 "color the Arc beam based on the player's colors"
933
934 seta cl_grapplehook_alpha 1 "opacity of the grappling hook chain"
935
936 seta cl_vaporizerbeam_particle 0 "use a legacy particle effect for the vaporizer beam instead of a rendered poly, may not reflect accurate colors"
937 seta cl_vaporizerbeam_lifetime 0.8 "time it takes for the vaporizer beam to fade completely"
938 seta cl_vaporizerbeam_colorboost 0.7 "saturation of the vaporizer beam's color based on the player color"
939
940 seta cl_showspectators 0 "Show who's spectating you if server has sv_showspectators enabled"
941
942 set cl_rollkillspeed 10
943
944 // Facility for config.cfg use ONLY.
945 // Interpreted in post-config.cfg.
946 seta menu_forced_saved_cvars "" "These cvars will always be saved, despite engine/Xonotic cvar saving status"
947 set menu_reverted_nonsaved_cvars "" "These cvars are currently marked as saved in the flags, but have been reverted and won't stay saved. INTERNAL USE ONLY."
948
949 // Avoid perf problems near '0 0 0'; `set` without a description is because only current DP has this engine cvar
950 set cl_areagrid_link_SOLID_NOT 0