]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - defaultXonotic.cfg
more cvars
[xonotic/xonotic-data.pk3dir.git] / defaultXonotic.cfg
1 // Xonotic version (formatted for machines)
2 // used to determine if a client version is compatible
3 // this doesn't have to be bumped with every release
4 // bump when clients become incompatible or any other perfectly good reason
5 // (e.g. game data incompatibility, engine version incompatibility, etc
6 // note: this automatically filters the server browser, clients of the new
7 // version won't see old servers, and clients of the old version won't see new
8 // servers either
9 //
10 // e.g. Xonotic 1.5.1 RC1 will be 15101
11 set g_xonoticversion git "Xonotic version (formatted for humans)"
12
13 gameversion 802 // 0.8.2
14 gameversion_min 0 // git builds see all versions
15 gameversion_max 65535 // git builds see all versions
16
17 // compatibility guideline:
18 //   version a.b.c   = a0b0c
19 //   gameversion_min = a0(b-1)00 // show servers of the previous "line"
20 //   gameversion_max = a0(b+1)99 // show servers of the next "line"
21 // so, for a given gameversion, _min and _max calculate as follows:
22 //   gameversion_min = (gameversion / 100) * 100 - 100
23 //   gameversion_max = (gameversion / 100) * 100 + 199
24
25 seta g_configversion 0  "Configuration file version (used to upgrade settings) 0: first run, or previous start was <2.4.1  Later, it's overridden by config.cfg, version ranges are defined in config_update.cfg"
26
27 // FIXME i think this is client cvar but it's also marked BADCVAR in server
28 // merge lightmaps up to 2048x2048 textures
29 mod_q3bsp_lightmapmergepower 4
30
31 exec defaultClient.cfg
32 exec defaultServer.cfg
33
34 set ekg 0       "Throw huge amounts of gibs"
35
36 locs_enable 0
37 pausable 0
38 set samelevel 0 "when 1, always play the same level over and over again"
39
40 // misc
41 fs_empty_files_in_pack_mark_deletions 1 // makes patches able to delete files
42
43 // singleplayer campaign
44 set g_campaign 0
45 set g_campaign_forceteam 0 "Forces the player to a given team in campaign mode, 1 = red, 2 = blue, 3 = yellow, 4 = pink"
46 seta g_campaign_name "xonoticbeta"
47 seta g_campaign_skill -1 // -2 easy -1 medium 0 hard
48
49 alias singleplayer_start "g_campaign_index 0; set scmenu_campaign_goto 0"
50 alias singleplayer_continue "set scmenu_campaign_goto -1"
51 alias singleplayer_levellist "set scmenu_campaign_dump 1; togglemenu; wait; togglemenu"
52
53 // FIXME this is indeed ignored - remove?
54 // so it can be stuffcmd-ed still
55 set cl_gravity 800      "but ignored anyway"
56
57 // we must change its default from 1.0 to 1 to be consistent with menuqc
58 set slowmo 1
59
60 // ticrate
61 //sys_ticrate 0.0166667 // 60fps. This would be ideal, but kills home routers.
62 sys_ticrate 0.0333333 // Use 30fps instead.
63
64 // FIXME this is client i think?
65 // Audio track names (for old-style "cd loop NUMBER" usage)
66 set _cdtrack_first "1"
67 alias _cdtrack_0 "g_cdtracks_remaplist \"$g_cdtracks_remaplist $1\""
68 alias _cdtrack_1 "g_cdtracks_remaplist \"$1\"; set _cdtrack_first 0"
69 alias _cdtrack "_cdtrack_$_cdtrack_first $2"
70 set g_cdtracks_remaplist ""
71 exec cdtracks.cfg
72 unset _cdtrack_first
73 unalias _cdtrack_0
74 unalias _cdtrack_1
75 unalias _cdtrack
76
77 cd remap $g_cdtracks_remaplist
78 set sv_intermission_cdtrack ""
79
80 set g_cdtracks_dontusebydefault "rising-of-the-phoenix"
81 seta menu_cdtrack "rising-of-the-phoenix"
82
83 // these entities are not referenced by anything directly, they just represent
84 // teams and are found by find() when needed
85 prvm_leaktest_ignore_classnames "ctf_team dom_team tdm_team"
86 prvm_backtraceforwarnings 1
87
88 set _urllib_nextslot 0 "temp variable"
89
90 // FIXME indeed, grep says it does nothing
91 set the_goggles "they do nothing" "but the googles, they do"
92
93 // FIXME some of these are used in qcsrc/common though most of them are probably server only
94 set spawn_debug 0 "use all spawns one by one, then abort, to verify all spawnpoints"
95 set loddebug 0 "force this LOD level"
96 set spawn_debugview 0 "display spawnpoints and their rating on spawn to debug spawnpoint rating calculation" // FIXME not used?
97 set g_mutatormsg "" "mutator message"
98 set speedmeter 0 "print landing speeds"
99 set developer_csqcentities 0 "csqc entity spam"
100 set waypoint_benchmark 0 "quit after waypoint loading to benchmark bot navigation code"
101 set g_debug_bot_commands 0 "print scripted bot commands before executing"
102 set g_debug_defaultsounds 0 "always use default sounds"
103
104 // campaign internal, set when loading a campaign map1G
105 set _campaign_index ""
106 set _campaign_name ""
107 set _campaign_testrun 0 "To verify the campaign file, set this to 1, then start the first campaign level from the menu. If you end up in the menu again, it's good, if you get a QC crash, it's bad."
108
109 // define some engine cvars that we need even on dedicated server
110 set r_showbboxes 0
111
112 // FIXME maybe we have that workaround now? not used
113 // we REALLY need the end pos nudging DP bug workaround for trace-to-end-of-solid to work
114 collision_endposnudge 1
115
116 // support Q1BSP maps
117 mod_q1bsp_polygoncollisions 1
118
119 // match q3map2
120 mod_obj_orientation 0
121
122 // less "lagging" of other players, but also less PL tolerant... let's try this
123 sv_clmovement_inputtimeout 0.066 // slightly less than 2 frames, so only one frame can be compensated
124
125 // exact gloss looks better, e.g. on g-23
126 r_shadow_glossexact 1
127 r_shadow_glossintensity 1
128
129 // use fake light if map has no lightmaps
130 r_fakelight 1
131
132 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
133 r_water_refractdistort 0.019
134
135 set cl_rainsnow_maxdrawdist 2048
136
137 // strength sound settings
138 set sv_strengthsound_antispam_time 0.1 "minimum distance of strength sounds"
139 set sv_strengthsound_antispam_refire_threshold 0.04 "apply minimum distance only if refire of the gun is smaller than this"
140
141 // equalize looks better than fullbright
142 r_equalize_entities_fullbright 1
143
144 // UTF-8
145 utf8_enable 1
146
147 // safe font defaults
148 r_font_hinting 1
149 r_font_disable_freetype 0
150 r_font_size_snapping 4
151
152 // database management
153 set sv_db_saveasdump 0 "write server.db in dump format (loads slower, easier to read/parse)"
154 set cl_db_saveasdump 0 "write client.db in dump format (loads slower, easier to read/parse)"
155
156 // uid2name
157 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)"
158 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)"
159 // FIXME set to -1 before release, once we have a dialog for this!
160
161 // polygonoffset for submodel SUCKS SUCKS SUCKS (only a hack for quake1, we don't need that)
162 r_polygonoffset_submodel_offset 0
163 r_polygonoffset_submodel_factor 0
164 // decals: need a higher polygonoffset than default to not compete with _decal surfaces too much
165 r_polygonoffset_decals_offset -28
166 r_polygonoffset_decals_factor 0
167 // this is mainly for _decal entities (their shaders should use "polygonoffset" shader parameter) - this is "good enough" as it seems, but smaller than the decals one so these don't zfight decals
168 mod_q3shader_default_polygonoffset -14
169 mod_q3shader_default_polygonfactor 0
170
171 // allow fullbright
172 set sv_allow_fullbright 1 "when set, clients may use r_fullbright on this server without getting a night vision effect overlay"
173
174 // auto-teams (team selection by player ID)
175 // any player not listed is forced to spectate
176 set g_forced_team_red "" "list of player IDs for red team"
177 set g_forced_team_blue "" "list of player IDs for blue team"
178 set g_forced_team_yellow "" "list of player IDs for yellow team"
179 set g_forced_team_pink "" "list of player IDs for pink team"
180 set g_forced_team_otherwise "default" "action if a non listed player joins (can be default for default action, spectate for forcing to spectate, or red, blue, yellow, pink)"
181
182 // nice alias to set up a match
183 // example: g_forced_team_matchsetup stormkeep "mzDo0nO2y3XpFPNbQAyeUucyaejZ9xpiXLYMGU2x3qM=" "BRLOGENSHFEGLE/+Mq3x2UGMYLXipx9ZjeaycuUeyAQ="
184 // will set up a match on stormkeep where mzDo0nO2y3XpFPNbQAyeUucyaejZ9xpiXLYMGU2x3qM= and BRLOGENSHFEGLE/+Mq3x2UGMYLXipx9ZjeaycuUeyAQ= play against each other
185 alias g_forced_team_matchsetup "map $1; settemp g_forced_team_red \"$2\"; settemp g_forced_team_blue \"$3\"; settemp g_forced_team_yellow \"$4\"; settemp g_forced_team_pink \"$5\"; settemp g_forced_team_otherwise spectate"
186
187 // random charge stuff :P
188 set g_weapon_charge_colormod_hdrmultiplier 4 "how much to multiply the colors by in the colormod vector"
189 set g_weapon_charge_colormod_red_half 0
190 set g_weapon_charge_colormod_green_half 0.5
191 set g_weapon_charge_colormod_blue_half 1
192 set g_weapon_charge_colormod_red_full 1
193 set g_weapon_charge_colormod_green_full -0.5
194 set g_weapon_charge_colormod_blue_full -1
195
196 // frozen
197 set g_frozen_revive_falldamage 0 "Enable reviving from this amount of fall damage"
198 set g_frozen_revive_falldamage_health 40 "Amount of health player has if they revived from falling"
199 set g_frozen_damage_trigger 1 "if 1, frozen players falling into the void will die instead of teleporting to spawn"
200 set g_frozen_force 0.6 "How much to multiply the force on a frozen player with"
201
202 // player statistics
203 set g_playerstats_gamereport_uri "http://stats.xonotic.org/stats/submit" "Output player statistics information to either: URL (with ://), console (with a dash like this: -), or supply a filename to output to data directory."
204 set g_playerstats_gamereport_ladder ""
205 set g_playerstats_playerbasic_uri "http://stats.xonotic.org"
206 set g_playerstats_playerdetail_uri "http://stats.xonotic.org/player/me"
207 set g_playerstats_playerdetail_autoupdatetime 1800 // automatically update every 30 minutes anyway
208
209 // autoscreenshots
210 set g_max_info_autoscreenshot 3 "how many info_autoscreenshot entities are allowed"
211
212 // mod names for server browser
213 // note: the lowest of these that mismatches default is used
214 set g_mod_physics "" "Current physics config name"
215 set g_mod_balance "" "Current balance config name"
216 set g_mod_config  "" "Current config mod name"
217
218 // session locking
219 locksession 1
220
221 // create this cvar in case the engine did not
222 set snd_soundradius 1200
223 set snd_softclip 1
224 set snd_maxchannelvolume 0
225 set snd_streaming_length 2
226 seta menu_snd_sliderscale 2 "0: decibels; 1: linear percent; 2: 0..10 scale; 3: slider size percent"
227 seta menu_snd_attenuation_method 1 "Use exponential instead of linear falloff for sound attenuation"
228 alias snd_attenuation_method_0 "set menu_snd_attenuation_method 0; set snd_soundradius 1200; set snd_attenuation_exponent 1; set snd_attenuation_decibel 0" // Quake default
229 alias snd_attenuation_method_1 "set menu_snd_attenuation_method 1; set snd_soundradius 2400; set snd_attenuation_exponent 4; set snd_attenuation_decibel 0" // nice approximation for method 2
230 alias snd_attenuation_method_2 "set menu_snd_attenuation_method 2; set snd_soundradius 1200; set snd_attenuation_exponent 0; set snd_attenuation_decibel 10" // warning: plays sounds within up to 6000qu
231 snd_attenuation_method_1
232
233 // declare the channels we use
234 seta snd_channel8volume 1 "QuakeC controlled background music volume"
235 seta snd_channel9volume 1 "QuakeC controlled ambient sound volume"
236
237 // sound randomization
238 snd_identicalsoundrandomization_time -0.1
239 snd_identicalsoundrandomization_tics    1
240
241 // loading screen
242 scr_loadingscreen_background 0
243 scr_loadingscreen_barcolor "0 0.5 1"
244 scr_loadingscreen_barheight 12
245 scr_loadingscreen_count 1
246 scr_loadingscreen_firstforstartup 1
247 scr_loadingscreen_scale 999
248 scr_loadingscreen_scale_base 1
249 scr_loadingscreen_scale_limit 2
250
251 // other config files
252 exec balance-xonotic.cfg
253 exec effects-normal.cfg
254 exec physicsX.cfg
255 exec turrets.cfg
256 exec crosshairs.cfg
257 exec gamemodes.cfg
258 exec mutators.cfg
259 exec notifications.cfg
260 exec monsters.cfg
261 exec minigames.cfg
262 exec physics.cfg
263
264 // load console command aliases and settings
265 exec commands.cfg
266
267 // hud cvar descriptions and common settings
268 exec _hud_common.cfg
269 exec _hud_descriptions.cfg
270 // exec the default skin config
271 // please add any new cvars into the hud_save script in qcsrc/client/hud_config.qc for consistency
272 exec hud_luma.cfg
273
274
275 // ... and now that everything is configured/aliased, we can do some things:
276
277 // Change g_start_delay based upon if the server is local or not.
278 if_client set g_start_delay 0   "delay before the game starts, so everyone can join; recommended to set this to like 15 on a public server"
279 if_dedicated set g_start_delay 15       "delay before the game starts, so everyone can join; recommended to set this to like 15 on a public server"
280
281 // enable menu syncing
282 alias menu_sync "menu_cmd sync"
283
284 set sv_join_notices ""
285 set sv_join_notices_time 15
286
287 seta cl_items_nofade 0
288 seta cl_animate_items 1
289 seta cl_ghost_items 0.45 "enable ghosted items (when between 0 and 1, overrides the alpha value)"
290 seta cl_ghost_items_color "-1 -1 -1" "color of ghosted items, 0 0 0 leaves the color unchanged"
291 set sv_simple_items 1 "allow or forbid client use of simple items"
292 seta cl_simple_items 0 "enable simple items (if server allows)"
293 set cl_simpleitems_postfix "_luma" "posfix to add fo model name when simple items are enabled"
294 set cl_fullbright_items 0 "enable fullbright items (if server allows, controlled by g_fullbrightitems)"
295 set cl_weapon_stay_color "2 0.5 0.5" "Color of picked up weapons when g_weapon_stay > 0"
296 set cl_weapon_stay_alpha 0.75 "Alpha of picked up weapons when g_weapon_stay > 0"
297
298 set sv_showspectators 1 "Show who's spectating who in the player info panel when client has cl_showspectators on. Shouldn't be used on competitive servers, also disable when watching a suspected cheater"
299 seta cl_showspectators 0 "Show who's spectating you if server has sv_showspectators enabled"
300
301 // Facility for config.cfg use ONLY.
302 // Interpreted in post-config.cfg.
303 seta menu_forced_saved_cvars "" "These cvars will always be saved, despite engine/Xonotic cvar saving status"
304 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."