]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - defaultXonotic.cfg
remove what i believe isn't used
[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
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 // we must change its default from 1.0 to 1 to be consistent with menuqc
54 set slowmo 1
55
56 // ticrate
57 //sys_ticrate 0.0166667 // 60fps. This would be ideal, but kills home routers.
58 sys_ticrate 0.0333333 // Use 30fps instead.
59
60 // FIXME this is client i think?
61 // Audio track names (for old-style "cd loop NUMBER" usage)
62 set _cdtrack_first "1"
63 alias _cdtrack_0 "g_cdtracks_remaplist \"$g_cdtracks_remaplist $1\""
64 alias _cdtrack_1 "g_cdtracks_remaplist \"$1\"; set _cdtrack_first 0"
65 alias _cdtrack "_cdtrack_$_cdtrack_first $2"
66 set g_cdtracks_remaplist ""
67 exec cdtracks.cfg
68 unset _cdtrack_first
69 unalias _cdtrack_0
70 unalias _cdtrack_1
71 unalias _cdtrack
72
73 cd remap $g_cdtracks_remaplist
74 set sv_intermission_cdtrack ""
75
76 set g_cdtracks_dontusebydefault "rising-of-the-phoenix"
77 seta menu_cdtrack "rising-of-the-phoenix"
78
79 // these entities are not referenced by anything directly, they just represent
80 // teams and are found by find() when needed
81 prvm_leaktest_ignore_classnames "ctf_team dom_team tdm_team"
82 prvm_backtraceforwarnings 1
83
84 set _urllib_nextslot 0 "temp variable"
85
86 // FIXME some of these are used in qcsrc/common though most of them are probably server only
87 set spawn_debug 0 "use all spawns one by one, then abort, to verify all spawnpoints"
88 set loddebug 0 "force this LOD level"
89 set g_mutatormsg "" "mutator message"
90 set speedmeter 0 "print landing speeds"
91 set developer_csqcentities 0 "csqc entity spam"
92 set waypoint_benchmark 0 "quit after waypoint loading to benchmark bot navigation code"
93 set g_debug_bot_commands 0 "print scripted bot commands before executing"
94 set g_debug_defaultsounds 0 "always use default sounds"
95
96 // campaign internal, set when loading a campaign map1G
97 set _campaign_index ""
98 set _campaign_name ""
99 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."
100
101 // define some engine cvars that we need even on dedicated server
102 set r_showbboxes 0
103
104 // support Q1BSP maps
105 mod_q1bsp_polygoncollisions 1
106
107 // match q3map2
108 mod_obj_orientation 0
109
110 // UTF-8
111 utf8_enable 1
112
113 // 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
114 mod_q3shader_default_polygonoffset -14
115 mod_q3shader_default_polygonfactor 0
116
117 // random charge stuff :P
118 set g_weapon_charge_colormod_hdrmultiplier 4 "how much to multiply the colors by in the colormod vector"
119 set g_weapon_charge_colormod_red_half 0
120 set g_weapon_charge_colormod_green_half 0.5
121 set g_weapon_charge_colormod_blue_half 1
122 set g_weapon_charge_colormod_red_full 1
123 set g_weapon_charge_colormod_green_full -0.5
124 set g_weapon_charge_colormod_blue_full -1
125
126 // session locking
127 locksession 1
128
129 // create this cvar in case the engine did not
130 set snd_soundradius 1200
131 set snd_softclip 1
132 set snd_maxchannelvolume 0
133 set snd_streaming_length 2
134 seta menu_snd_sliderscale 2 "0: decibels; 1: linear percent; 2: 0..10 scale; 3: slider size percent"
135 seta menu_snd_attenuation_method 1 "Use exponential instead of linear falloff for sound attenuation"
136 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
137 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
138 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
139 snd_attenuation_method_1
140
141 // declare the channels we use
142 seta snd_channel8volume 1 "QuakeC controlled background music volume"
143 seta snd_channel9volume 1 "QuakeC controlled ambient sound volume"
144
145 // sound randomization
146 snd_identicalsoundrandomization_time -0.1
147 snd_identicalsoundrandomization_tics    1
148
149 // load console command aliases and settings
150 exec commands.cfg
151
152 // ... and now that everything is configured/aliased, we can do some things:
153
154 // Change g_start_delay based upon if the server is local or not.
155 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"
156 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"