X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=defaultXonotic.cfg;h=d967d53d555dee2e8dd5f98b46f4c98f8ff1d9d1;hp=fd040499c9da8e5631b3d44fd337be08ad815415;hb=9120a47f091b6e2d0f5bb48914443b6dbd6c417d;hpb=15ad4872e872b28fca0591a7225091b4fe24cbe4 diff --git a/defaultXonotic.cfg b/defaultXonotic.cfg index fd040499c..d967d53d5 100644 --- a/defaultXonotic.cfg +++ b/defaultXonotic.cfg @@ -93,12 +93,16 @@ vid_fullscreen 1 vid_width 1024 vid_height 768 vid_pixelheight 1 +vid_resizable 0 // cannot be turned on before it is sure it cannot cause a r_restart +vid_desktopfullscreen 1 prvm_language en set _menu_prvm_language "" set _menu_vid_width "$vid_width" set _menu_vid_height "$vid_height" set _menu_vid_pixelheight "$vid_pixelheight" +set _menu_vid_desktopfullscreen "$vid_desktopfullscreen" seta menu_vid_scale 0 +seta menu_vid_allowdualscreenresolution 0 // 2D resolution 800x600 vid_conwidth 800 vid_conheight 600 @@ -109,6 +113,33 @@ v_deathtilt 0 // needed for spectators (who are dead to avoid prediction) exec sRGB-disable.cfg vid_sRGB_fallback 2 r_hdr_glowintensity 1 +// #define Image_LinearFloatFromsRGBFloat(c) (((c) <= 0.04045f) ? (c) * (1.0f / 12.92f) : (float)pow(((c) + 0.055f)*(1.0f/1.055f), 2.4f)) +set rpn_sRGB_to_linear "dup 0.055 add 1.055 div 2.4 pow exch 12.92 div dup 0.0031308 gt when" +// #define Image_sRGBFloatFromLinearFloat(c) (((c) < 0.0031308f) ? (c) * 12.92f : 1.055f * (float)pow((c), 1.0f/2.4f) - 0.055f) +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" + +// -nosRGB to -sRGB sky shader conversion: +// +// q3map_sunExt 1 0.6875 0.375 340 25 47 0 16 +// ^^ elevation +// ^^^ sunlight +// q3map_skylight 110 3 +// ^^^ skylight +// +// With that, do (the last parameter is the ratio of skylight you assume hits +// the surfaces, about 0.25 for inner surfaces near sky, about 1.00 on +// terrain): +// ]skybox_nosRGB_to_sRGB 340 47 110 0.25 +// rpn: still on stack: new_sunlight: +// rpn: still on stack: 380.464142 +// rpn: still on stack: new_skylight: +// rpn: still on stack: 9.32523632 +// +// The equivalent -sRGB shader then will have: +// +// q3map_sunExt 1 0.6875 0.375 380.464142 25 47 0 16 +// q3map_skylight 9.32523632 3 +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:" // these settings determine how much the view is affected by movement/damage 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 @@ -427,8 +458,6 @@ bind f7 menu_showsandboxtools set g_playerclip_collisions 1 "0 = disable collision testing against playerclips, might be useful on some defrag maps" set g_botclip_collisions 1 "0 = disable collision testing against botclips, might be useful on some defrag maps" -set welcome_message_time 8 - set g_grappling_hook 0 "let players spawn with the grappling hook which allows them to pull themselves up" set g_spawn_alloweffects 1 "allow clients to enable spawn point and event effects such as particles and sounds, see cl_spawn_ cvars for more info" @@ -919,7 +948,7 @@ seta scoreboard_border_thickness 1 "scoreboard border thickness" seta scoreboard_accuracy_border_thickness 1 "accuracy stats border thickness" seta scoreboard_accuracy_doublerows 0 "use two rows instead of one" seta scoreboard_accuracy_nocolors 0 "don't use colors displaying accuracy stats" -seta scoreboard_accuracy 0 "show weapon accuracy stats panel on scoreboard; colors can be configured with accuracy_color* cvars" +seta scoreboard_accuracy 1 "show weapon accuracy stats panel on scoreboard; colors can be configured with accuracy_color* cvars" seta scoreboard_color_bg_r 0 "red color component of the scoreboard background" seta scoreboard_color_bg_g 0.4 "green color component of the scoreboard background" seta scoreboard_color_bg_b 0.6 "blue color component of the scoreboard background" @@ -1014,8 +1043,8 @@ makesaved v_idlescale makesaved v_kicktime // ticrate -//sys_ticrate 0.0166667 -sys_ticrate 0.0333333 +//sys_ticrate 0.0166667 // 60fps. This would be ideal, but kills home routers. +sys_ticrate 0.0333333 // Use 30fps instead. cl_netfps 60 // should match or be a multiple sv_gameplayfix_delayprojectiles 0 sv_gameplayfix_q2airaccelerate 1