Merge remote branch 'origin/terencehill/newpanelhud-dom_points' into terencehill...
authorFruitieX <fruitiex@gmail.com>
Wed, 15 Dec 2010 12:04:55 +0000 (14:04 +0200)
committerFruitieX <fruitiex@gmail.com>
Wed, 15 Dec 2010 12:04:55 +0000 (14:04 +0200)
Conflicts:
qcsrc/client/hud.qc
qcsrc/server/domination.qc

1  2 
defaultXonotic.cfg
qcsrc/client/Defs.qc
qcsrc/client/Main.qc
qcsrc/client/hud.qc
qcsrc/common/constants.qh
qcsrc/server/cl_client.qc
qcsrc/server/domination.qc

Simple merge
Simple merge
Simple merge
@@@ -4736,14 -4482,13 +4835,14 @@@ float mod_change; // "time" when mod_ac
  
  void HUD_ModIcons(void)
  {
 -      if(!autocvar_hud_panel_modicons && !autocvar__hud_configure)
 -              return;
 -
 -      if (gametype != GAME_KEYHUNT && gametype != GAME_CTF && gametype != GAME_NEXBALL && gametype != GAME_CTS && gametype != GAME_RACE && gametype != GAME_CA && gametype != GAME_DOMINATION && !autocvar__hud_configure)
 -              return;
 +      if(!autocvar__hud_configure)
 +      {
 +              if(!autocvar_hud_panel_modicons) return;
-               if (gametype != GAME_CTF && gametype != GAME_KEYHUNT && gametype != GAME_NEXBALL && gametype != GAME_CTS && gametype != GAME_RACE && gametype != GAME_CA && gametype != GAME_FREEZETAG && gametype != GAME_KEEPAWAY) return;
++              if (gametype != GAME_CTF && gametype != GAME_KEYHUNT && gametype != GAME_NEXBALL && gametype != GAME_CTS && gametype != GAME_RACE && gametype != GAME_CA && gametype != GAME_FREEZETAG && gametype != GAME_KEEPAWAY && gametype != GAME_DOMINATION) return;
 +      }
 +      else
 +              hud_configure_active_panel = HUD_PANEL_MODICONS;
  
 -      active_panel = HUD_PANEL_MODICONS;
        HUD_Panel_UpdateCvars(modicons);
        vector pos, mySize;
        pos = panel_pos;
                HUD_Mod_NexBall(pos, mySize);
        else if(gametype == GAME_CTS || gametype == GAME_RACE)
                HUD_Mod_Race(pos, mySize);
 -      else if(gametype == GAME_CA)
 -              HUD_Mod_CA(pos, mySize);
 +      else if(gametype == GAME_CA || gametype == GAME_FREEZETAG)
 +              HUD_Mod_CA(pos, mySize);
+       else if(gametype == GAME_DOMINATION)
+               HUD_Mod_Dom(pos, mySize);
 +      else if(gametype == GAME_KEEPAWAY)
 +              HUD_Mod_Keepaway(pos, mySize);
  }
  
  // Draw pressed keys (#11)
Simple merge
@@@ -1738,9 -1600,11 +1739,11 @@@ void ClientConnect (void
                        race_SendRankings(i, 0, 0, MSG_ONE);
                }
        }
 -      else if(cvar("sv_teamnagger") && !(cvar("bot_vs_human") && (c3==-1 && c4==-1)) && !g_ca) // teamnagger is currently bad for ca
 +      else if(autocvar_sv_teamnagger && !(autocvar_bot_vs_human && (c3==-1 && c4==-1)) && !g_ca) // teamnagger is currently bad for ca
                send_CSQC_teamnagger();
  
+       if (g_domination)
+               send_CSQC_dom_all();
        send_CSQC_cr_maxbullets(self);
  
        CheatInitClient();
@@@ -648,5 -725,12 +722,8 @@@ void dom_init(
        precache_model("models/domination/dom_unclaimed.md3");
        precache_sound("domination/claim.wav");
        InitializeEntity(world, dom_delayedinit, INITPRIO_GAMETYPE);
 -
 -      // teamplay is always on in domination, defaults to hurt self but not teammates
 -      //if(!teams_matter)
 -      //      cvar_set("teamplay", "3");
+       g_domination_point_rate = cvar("g_domination_point_rate");
+       g_domination_point_amt = cvar("g_domination_point_amt");
  };