]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - defaultClient.cfg
a couple more
[xonotic/xonotic-data.pk3dir.git] / defaultClient.cfg
1 // changes a cvar and reports it to the server (for the menu to notify the
2 // server about changes)
3 alias setreport "set \"$1\" \"$2\" ; sendcvar \"$1\""
4
5 seta cl_firststart "" "how many times the client has been run"
6 seta cl_startcount 0 "how many times the client has been run"
7
8 // other aliases
9 alias +hook +button6
10 alias -hook -button6
11 alias +jetpack +button10
12 alias -jetpack -button10
13 alias +dodge +button11
14 alias -dodge -button11
15 alias use "impulse 21"
16
17 // for backwards compatibility
18 // TODO Remove after 0.8 release!
19 cl_particles_forcetraileffects 1
20
21 alias dropweapon "impulse 17"
22 alias +show_info +button7
23 alias -show_info -button7
24
25 // player defaults
26 _cl_color "112.211" // same effect as 112, but menuqc can detect this as the default and not intentionally set
27 _cl_name ""
28 seta _cl_gender 0 "storage cvar for current player gender (0 = undisclosed, 1 = male, 2 = female)"
29 _cl_playermodel models/player/erebus.iqm
30 _cl_playerskin 0
31
32 seta cl_reticle 1 "enable zoom reticles"
33 seta cl_reticle_stretch 0 "stretch reticles so they fit the screen (breaks image proportions)"
34 seta cl_reticle_normal 1 "draw an aiming reticle when zooming with the zoom button"
35 seta cl_reticle_normal_alpha 1 "alpha of the normal reticle"
36 seta cl_reticle_weapon 1 "draw custom aiming reticle when zooming with certain weapons"
37 seta cl_reticle_weapon_alpha 1 "alpha of the custom reticle"
38
39 fov 100
40 seta cl_velocityzoom_enabled 0 "velocity based zooming of fov"
41 seta cl_velocityzoom_factor 0 "factor of fov zooming (negative values zoom out)"
42 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)"
43 seta cl_velocityzoom_speed 1000 "target speed for fov factoring"
44 seta cl_velocityzoom_time 0.2   "time value for averaging speed values"
45 seta cl_spawnzoom 1 "zoom effect immediately when a player spawns"
46 seta cl_spawnzoom_speed 1 "speed at which zooming occurs while spawning"
47 seta cl_spawnzoom_factor 2 "factor of zoom while spawning"
48 seta cl_zoomfactor 5    "how much +zoom will zoom (1-30)"
49 seta cl_zoomspeed 8     "how fast it will zoom (0.5-16), negative values mean instant zoom"
50 seta cl_zoomsensitivity 0       "how zoom changes sensitivity (0 = weakest, 1 = strongest)"
51
52 seta cl_unpress_zoom_on_spawn 1 "automatically unpress zoom when you spawn"
53 seta cl_unpress_zoom_on_death 1 "automatically unpress zoom when you die (and don't allow zoom again while dead)"
54 seta cl_unpress_zoom_on_weapon_switch 1 "automatically unpress zoom when you switch a weapon"
55 seta cl_unpress_attack_on_weapon_switch 0 "automatically unpress fire and fire1 attack buttons when you switch a weapon"
56
57 seta cl_spawn_event_particles 1 "pointparticles effect whenever a player spawns"
58 seta cl_spawn_event_sound 1 "sound effect whenever a player spawns"
59 //seta cl_spawn_point_model 0 "place a model at all spawn points" // still needs a model
60 seta cl_spawn_point_particles 1 "pointparticles effect at all spawn points" // managed by effects-.cfg files
61 seta cl_spawn_point_dist_min 1200
62 seta cl_spawn_point_dist_max 1600
63
64 freelook 1
65 sensitivity 6
66 v_gamma 1
67 viewsize 100
68 bgmvolume 1
69 volume 0.5
70 // fullscreen 1024x768x32bit
71 vid_bitsperpixel 32
72 vid_fullscreen 1
73 vid_width 1024
74 vid_height 768
75 vid_pixelheight 1
76 vid_resizable 0 // cannot be turned on before it is sure it cannot cause a r_restart
77 vid_desktopfullscreen 1
78 prvm_language en
79 set _menu_prvm_language ""
80 set _menu_vid_width "$vid_width"
81 set _menu_vid_height "$vid_height"
82 set _menu_vid_pixelheight "$vid_pixelheight"
83 set _menu_vid_desktopfullscreen "$vid_desktopfullscreen"
84 seta menu_vid_scale 0
85 seta menu_vid_allowdualscreenresolution 0
86 // 2D resolution 800x600
87 vid_conwidth 800
88 vid_conheight 600
89 // menu_conwidth, menu_conheight are set inside quake.rc
90 v_deathtilt 0 // needed for spectators (who are dead to avoid prediction)
91
92 // we want to use sRGB for our maps!
93 exec sRGB-disable.cfg
94 vid_sRGB_fallback 2
95 r_hdr_glowintensity 1
96 // #define Image_LinearFloatFromsRGBFloat(c) (((c) <= 0.04045f) ? (c) * (1.0f / 12.92f) : (float)pow(((c) + 0.055f)*(1.0f/1.055f), 2.4f))
97 set rpn_sRGB_to_linear "dup 0.055 add 1.055 div 2.4 pow exch 12.92 div dup 0.0031308 gt when"
98 // #define Image_sRGBFloatFromLinearFloat(c) (((c) < 0.0031308f) ? (c) * 12.92f : 1.055f * (float)pow((c), 1.0f/2.4f) - 0.055f)
99 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"
100
101 // -nosRGB to -sRGB sky shader conversion:
102 //
103 // q3map_sunExt 1 0.6875 0.375 340 25 47 0 16
104 //                                    ^^ elevation
105 //                             ^^^ sunlight
106 // q3map_skylight 110 3
107 //                ^^^ skylight
108 //
109 // With that, do (the last parameter is the ratio of skylight you assume hits
110 // the surfaces, about 0.25 for inner surfaces near sky, about 1.00 on
111 // terrain):
112 // ]skybox_nosRGB_to_sRGB 340 47 110 0.25
113 // rpn: still on stack: new_sunlight:
114 // rpn: still on stack: 380.464142
115 // rpn: still on stack: new_skylight:
116 // rpn: still on stack: 9.32523632
117 //
118 // The equivalent -sRGB shader then will have:
119 //
120 // q3map_sunExt 1 0.6875 0.375 380.464142 25 47 0 16
121 // q3map_skylight 9.32523632 3
122 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:"
123
124 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)"
125 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"
126
127 // these settings determine how much the view is affected by movement/damage
128 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
129 cl_deathfade 0 // fade screen to dark red when dead, value represents how fast the fade is (higher is faster)
130 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
131 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
132 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
133 cl_bob2 0 // how much view moves left/right when moving (does not move if cl_bob2cycle is 0), default is 0.01
134 cl_bobfall 0.05 "how much the view swings down when falling (influenced by the speed you hit the ground with)"
135 cl_bobfallcycle 3 "speed of the bobfall swing"
136 cl_bobfallspeed 200 "necessary amount of speed for bob-falling to occur"
137 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
138 cl_bobmodel_side 0.2 // amount the gun sways to the sides
139 cl_bobmodel_speed 10 // rate at which the gun sways
140 cl_bobmodel_up 0.1 // amount the gun sways up and down
141
142 cl_followmodel 1 // enables weapon pushing / pulling effect when walking
143 seta cl_followmodel_speed 0.3 "gun following speed"
144 seta cl_followmodel_limit 135 "gun following limit"
145 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)"
146 seta cl_followmodel_velocity_lowpass 0.05 "gun following velocity lowpass averaging time"
147 seta cl_followmodel_highpass 0.05 "gun following highpass averaging time"
148 seta cl_followmodel_lowpass 0.03 "gun following lowpass averaging time"
149
150 cl_leanmodel 1 // enables weapon leaning effect when looking around
151 seta cl_leanmodel_speed 0.3 "gun leaning speed"
152 seta cl_leanmodel_limit 30 "gun leaning limit"
153 seta cl_leanmodel_highpass1 0.2 "gun leaning pre-highpass averaging time"
154 seta cl_leanmodel_highpass 0.2 "gun leaning highpass averaging time"
155 seta cl_leanmodel_lowpass 0.05 "gun leaning lowpass averaging time"
156
157 cl_rollangle 0 // amount of view tilt when strafing, default is 2.0
158 v_kicktime 0 // how long damage kicks of the view last, default is 0 seconds
159 gl_polyblend 0 // whether to use screen tints, this has now been replaced by a better system in CSQC
160 r_motionblur 0 // motion blur value, default is 0
161 r_damageblur 0 // motion blur when damaged, default is 0 (removed in Xonotic)
162
163 r_bloom_blur 4
164 r_bloom_brighten 2
165 r_bloom_colorexponent 1
166 r_bloom_colorscale 1
167 r_bloom_colorsubtract 0.125
168 r_bloom_resolution 320
169 r_bloom_scenebrightness 0.85
170
171 seta vid_x11_display "" "xonotic-linux-*.sh will use this to start xonotic on an other/new X display"
172 // This can have three possible settings:
173 //      ""              run as usual
174 //      ":n"            use DISPLAY=:n, create it if needed
175 //      ":n/layout"     use DISPLAY=:n, create it if needed with ServerLayout layout
176
177 cl_autodemo_nameformat demos/%Y-%m-%d_%H-%M
178
179 // taunts and voices
180 seta cl_autotaunt 0 "automatically taunt enemies when fragging them"
181 seta cl_voice_directional 1     "0 = all voices are non-directional, 1 = all voices are directional, 2 = only taunts are directional"
182 seta cl_voice_directional_taunt_attenuation 0.5 "this defines the distance from which taunts can be heard"
183
184 seta cl_hitsound 1 "play a hit notifier sound when you have hit an enemy, 1: same pitch 2: increase pitch with more damage 3: decrease pitch with more damage"
185 set cl_hitsound_antispam_time 0.05 "don't play the hitsound more often than this"
186 seta cl_hitsound_min_pitch 0.75 "minimum pitch of hit sound"
187 seta cl_hitsound_max_pitch 1.5 "maximum pitch of hit sound"
188 seta cl_hitsound_nom_damage 25 "damage amount at which hitsound bases pitch off"
189
190 seta cl_eventchase_death 1 "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"
191 seta cl_eventchase_frozen 0 "camera goes into 3rd person mode when the player is frozen"
192 seta cl_eventchase_nexball 1 "camera goes into 3rd person mode when in nexball game-mode"
193 seta cl_eventchase_distance 140 "final camera distance"
194 seta cl_eventchase_generator_distance 400 "final camera distance while viewing generator explosion"
195 seta cl_eventchase_speed 1.3 "how fast the camera slides back, 0 is instant"
196 seta cl_eventchase_maxs "12 12 8" "max size of eventchase camera bbox"
197 seta cl_eventchase_mins "-12 -12 -8" "min size of eventchase camera bbox"
198 seta cl_eventchase_viewoffset "0 0 20" "viewoffset of eventchase camera"
199 seta cl_eventchase_generator_viewoffset "0 0 80" "viewoffset of eventchase camera while viewing generator explosion"
200 seta cl_eventchase_vehicle 1 "camera goes into 3rd person mode when inside a vehicle"
201 seta cl_eventchase_vehicle_viewoffset "0 0 80"
202 seta cl_eventchase_vehicle_distance 250
203
204 set _vehicles_shownchasemessage 0
205
206 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)"
207
208 seta cl_damageeffect 1 "enable weapon damage effects: 1 enables the feature on skeletal models, 2 on any model"
209 seta cl_damageeffect_ticrate 0.1 "particle spawn rate"
210 seta cl_damageeffect_bones 5 "how many damages to allow on a rigged mesh at once (non-skeletal objects are limited to one)"
211 seta cl_damageeffect_distribute 1 "divide particle intensity if multiple damages are present"
212 seta cl_damageeffect_lifetime 0.1 "how much a damage effect lasts, based on damage amount"
213 seta cl_damageeffect_lifetime_min 3 "minimum lifetime a damage effect may have"
214 seta cl_damageeffect_lifetime_max 6 "maximum lifetime a damage effect may have"
215
216 set cl_deathglow 0.8 "number of seconds during which dead bodies glow out"
217
218 cl_movement 1
219 cl_movement_track_canjump 0
220 cl_stairsmoothspeed 200
221
222 // FIXME test
223 alias g_waypointeditor_spawn "impulse 103"
224 alias g_waypointeditor_remove "impulse 104"
225 alias g_waypointeditor_relinkall "impulse 105"
226 alias g_waypointeditor_saveall "impulse 106"
227 alias g_waypointeditor_unreachable "impulse 107"
228
229 seta menu_sandbox_spawn_model ""
230 seta menu_sandbox_attach_bone ""
231 seta menu_sandbox_edit_skin 0
232 seta menu_sandbox_edit_alpha 1
233 seta menu_sandbox_edit_color_main "1 1 1"
234 seta menu_sandbox_edit_color_glow "1 1 1"
235 seta menu_sandbox_edit_frame 0
236 seta menu_sandbox_edit_scale 1
237 seta menu_sandbox_edit_solidity 1
238 seta menu_sandbox_edit_physics 1
239 seta menu_sandbox_edit_force 1
240 seta menu_sandbox_edit_material ""
241
242 seta menu_monsters_edit_spawn ""
243 seta menu_monsters_edit_skin 0
244 seta menu_monsters_edit_movetarget 1