]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'master' into terencehill/quickmenu
authorterencehill <piuntn@gmail.com>
Tue, 19 Mar 2013 16:34:21 +0000 (17:34 +0100)
committerterencehill <piuntn@gmail.com>
Tue, 19 Mar 2013 16:34:21 +0000 (17:34 +0100)
Conflicts:
qcsrc/client/View.qc
qcsrc/client/autocvars.qh

18 files changed:
1  2 
_hud_common.cfg
_hud_descriptions.cfg
defaultXonotic.cfg
hud_luminos.cfg
hud_luminos_minimal.cfg
hud_luminos_minimal_xhair.cfg
hud_luminos_old.cfg
hud_nexuiz.cfg
qcsrc/client/Main.qc
qcsrc/client/View.qc
qcsrc/client/autocvars.qh
qcsrc/client/command/cl_cmd.qc
qcsrc/client/hud.qc
qcsrc/client/hud.qh
qcsrc/client/hud_config.qc
qcsrc/common/constants.qh
qcsrc/common/util.qh
qcsrc/menu/classes.c

diff --cc _hud_common.cfg
index 1dfc3b2cea89a7679f4947966225d0dccadb96e7,ca90bc9da204f14dc8af7cf536336699cb230363..4e5b7328f03d078c371b9076f662e4fde428e129
@@@ -26,13 -37,11 +37,13 @@@ seta hud_panel_engineinfo_framecounter_
  seta hud_panel_engineinfo_framecounter_exponentialmovingaverage_new_weight 0.1 "weight of latest data point"
  seta hud_panel_engineinfo_framecounter_exponentialmovingaverage_instantupdate_change_threshold 0.5 "threshold for fps change when to update instantly, to make big fps changes update faster"
  
 +seta hud_panel_quickmenu_file quickmenu.txt "load the quick menu from this file"
 +
  // hud panel aliases
  alias hud_panel_radar_rotate "toggle hud_panel_radar_rotation 0 1 2 3 4"
- alias +hud_panel_radar_maximized "cl_cmd hud_panel_radar_maximized 1"
- alias -hud_panel_radar_maximized "cl_cmd hud_panel_radar_maximized 0"
- alias hud_panel_radar_maximized "cl_cmd hud_panel_radar_maximized"
+ alias +hud_panel_radar_maximized "cl_cmd hud radar 1"
+ alias -hud_panel_radar_maximized "cl_cmd hud radar 0"
+ alias hud_panel_radar_maximized "cl_cmd hud radar"
  
  // other hud cvars
  seta hud_showbinds 1  "what to show in the HUD to indicate certain keys to press: 0 display commands, 1 bound keys, 2 both"
Simple merge
Simple merge
diff --cc hud_luminos.cfg
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc hud_nexuiz.cfg
Simple merge
Simple merge
index 7f5879157f903f91dc68eacad52d73cb2b2d184f,3362ce42231193210b22b6ad0fe52f5cf8cbd1bd..dd9bfa8275ea1358608c15bcf75b8d4aed3ebfa2
@@@ -473,9 -492,16 +492,16 @@@ void CSQC_UpdateView(float w, float h
                        eventchase_current_distance = 0; // start from 0 next time
                }
        }
-       
+       // workaround for camera stuck between player's legs when using chase_active 1
+       // because the engine stops updating the chase_active camera when the game ends
+       else if(intermission)
+       {
+               cvar_settemp("chase_active", "-1");
+               eventchase_current_distance = 0;
+       }
        // do lockview after event chase camera so that it still applies whenever necessary.
-       if(autocvar_cl_lockview || (autocvar__hud_configure && spectatee_status <= 0) || intermission > 1 || HUD_QuickMenu_IsOpened())
 -      if(autocvar_cl_lockview || (!autocvar_hud_cursormode && (autocvar__hud_configure && spectatee_status <= 0 || intermission > 1)))
++      if(autocvar_cl_lockview || (!autocvar_hud_cursormode && (autocvar__hud_configure && spectatee_status <= 0 || intermission > 1 || HUD_QuickMenu_IsOpened())))
        {
                setproperty(VF_ORIGIN, freeze_org);
                setproperty(VF_ANGLES, freeze_ang);
  
        if(autocvar__hud_configure)
                HUD_Panel_Mouse();
 -    
 -    if(hud && !intermission)
 -    {        
 -        if(hud == HUD_SPIDERBOT)
 -            CSQC_SPIDER_HUD();
 -        else if(hud == HUD_WAKIZASHI)
 -            CSQC_WAKIZASHI_HUD();
 -        else if(hud == HUD_RAPTOR)
 -            CSQC_RAPTOR_HUD();
 -        else if(hud == HUD_BUMBLEBEE)
 -            CSQC_BUMBLE_HUD();
 -        else if(hud == HUD_BUMBLEBEE_GUN)
 -            CSQC_BUMBLE_GUN_HUD();
 -    }
 -      
 +      else if (HUD_QuickMenu_IsOpened())
 +              HUD_QuickMenu_Mouse();
 +
 +      if(hud && !intermission)
 +      {
 +              if(hud == HUD_SPIDERBOT)
 +                      CSQC_SPIDER_HUD();
 +              else if(hud == HUD_WAKIZASHI)
 +                      CSQC_WAKIZASHI_HUD();
 +              else if(hud == HUD_RAPTOR)
 +                      CSQC_RAPTOR_HUD();
 +              else if(hud == HUD_BUMBLEBEE)
 +                      CSQC_BUMBLE_HUD();
++              else if(hud == HUD_BUMBLEBEE_GUN)
++                      CSQC_BUMBLE_GUN_HUD();
 +      }
 +
        cl_notice_run();
 -      
 +
        // let's reset the view back to normal for the end
        setproperty(VF_MIN, '0 0 0');
        setproperty(VF_SIZE, '1 0 0' * w + '0 1 0' * h);
index cc5a7f7807ef5b6eae2e3fce37b9432ca54e86ab,ba6abadc018868762228d1875b5180244fe9ce2a..5532736d6afb06491416e7079adcf4bd7dbc9ae4
@@@ -279,7 -283,7 +283,8 @@@ string autocvar_hud_panel_powerups_prog
  float autocvar_hud_panel_powerups_text;
  float autocvar_hud_panel_pressedkeys;
  float autocvar_hud_panel_pressedkeys_aspect;
+ float autocvar_hud_panel_pressedkeys_attack;
 +string autocvar_hud_panel_quickmenu_file;
  float autocvar_hud_panel_racetimer;
  float autocvar_hud_panel_radar;
  float autocvar_hud_panel_radar_foreground_alpha;
@@@ -318,8 -323,10 +324,12 @@@ float autocvar_hud_panel_weapons_label
  float autocvar_hud_panel_weapons_onlyowned;
  float autocvar_hud_panel_weapons_timeout;
  float autocvar_hud_panel_weapons_timeout_effect;
+ float autocvar_hud_panel_weapons_timeout_fadebgmin;
+ float autocvar_hud_panel_weapons_timeout_fadefgmin;
+ var float autocvar_hud_panel_weapons_timeout_speed_in = 0.25; 
+ var float autocvar_hud_panel_weapons_timeout_speed_out = 0.75;
 +float autocvar_hud_panel_quickmenu;
 +float autocvar_hud_panel_quickmenu_align;
  float autocvar_hud_progressbar_alpha;
  float autocvar_hud_showbinds;
  float autocvar_hud_showbinds_limit;
index 48dd4ae023e3e48b8ce42952db3eb2b1b800b698,acac8b3121574d22a2ec706a9f78849b5a404712..714ddc69c0523ab52ec00c1500ad8df4aaa064ba
@@@ -182,10 -211,13 +221,13 @@@ void LocalCommand_hud(float request, fl
                                        Cmd_HUD_Help();
                                        return;
                                }
 -                              
 +
                                case "radar":
                                {
-                                       hud_panel_radar_maximized = (argv(2) ? InterpretBoolean(argv(2)) : !hud_panel_radar_maximized);
+                                       if(argv(2))
+                                               hud_panel_radar_maximized = InterpretBoolean(argv(2));
+                                       else
+                                               hud_panel_radar_maximized = !hud_panel_radar_maximized;
                                        return;
                                }
                        }
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge