]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge remote branch 'origin/master' into terencehill/centerprint_stuff
authorSamual <samual@xonotic.org>
Thu, 7 Jul 2011 22:15:25 +0000 (18:15 -0400)
committerSamual <samual@xonotic.org>
Thu, 7 Jul 2011 22:15:25 +0000 (18:15 -0400)
14 files changed:
1  2 
defaultXonotic.cfg
qcsrc/client/View.qc
qcsrc/client/miscfunctions.qc
qcsrc/client/vehicles/vehicles.qc
qcsrc/common/constants.qh
qcsrc/common/util.qh
qcsrc/server/arena.qc
qcsrc/server/cl_client.qc
qcsrc/server/ctf.qc
qcsrc/server/miscfunctions.qc
qcsrc/server/mutators/gamemode_keepaway.qc
qcsrc/server/mutators/gamemode_keyhunt.qc
qcsrc/server/t_items.qc
qcsrc/server/w_minstanex.qc

Simple merge
Simple merge
index 0ecb2b89a5aa7d0c2ea8517fc1a5a2fcb9376c1e,da09230dbc1965cab6b3f3310fe633b4e43f24c2..77f40992590ba0d6a780ac31f3734165755e21c4
@@@ -20,9 -20,9 +20,9 @@@ void restartAnnouncer_Think() 
        countdown_rounded = floor(0.5 + countdown);
        if(countdown <= 0) {
                if (!spectatee_status) //do cprint only for players
 -                      centerprint(_("^1Begin!"));
 +                      centerprint_generic(CPID_GAME_STARTING, _("^1Begin!"), 1, 0);
  
-               sound(world, CHAN_AUTO, strcat("announcer/", autocvar_cl_announcer, "/begin.wav"), VOL_BASEVOICE, ATTN_NONE);
+               sound(world, CH_INFO, strcat("announcer/", autocvar_cl_announcer, "/begin.wav"), VOL_BASEVOICE, ATTN_NONE);
                //reset maptime announcers now as well
                announcer_5min = announcer_1min = FALSE;
  
        }
        else {
                if (!spectatee_status) //do cprint only for players
 -                      centerprint(sprintf(_("^1Game starts in %d seconds"), countdown_rounded));
 +                      centerprint_generic(CPID_GAME_STARTING, _("^1Game starts in %d seconds"), 1, countdown_rounded);
  
                if(countdown_rounded <= 3 && countdown_rounded >= 1) {
-                       sound(world, CHAN_AUTO, strcat("announcer/", autocvar_cl_announcer, "/", ftos(countdown_rounded), ".wav"), VOL_BASEVOICE, ATTN_NONE);
+                       sound(world, CH_INFO, strcat("announcer/", autocvar_cl_announcer, "/", ftos(countdown_rounded), ".wav"), VOL_BASEVOICE, ATTN_NONE);
                }
  
                self.nextthink = getstatf(STAT_GAMESTARTTIME) - (countdown - 1);
Simple merge
Simple merge
Simple merge
Simple merge
index 144e849e1d7e712f134253cc145baeba8d1f3763,5b9c8d907eab2796fef9b546761472e28b32f450..3ccd515fc297505496965905a877bfdbcd665d92
@@@ -2001,9 -1987,50 +2001,9 @@@ void play_countdown(float finished, str
        if(clienttype(self) == CLIENTTYPE_REAL)
                if(floor(finished - time - frametime) != floor(finished - time))
                        if(finished - time < 6)
-                               sound (self, CHAN_AUTO, samp, VOL_BASE, ATTN_NORM);
+                               sound (self, CH_INFO, samp, VOL_BASE, ATTN_NORM);
  }
  
 -/**
 - * When sv_timeout is used this function returs strings like
 - * "Timeout begins in 2 seconds!\n" or "Timeout ends in 23 seconds!\n".
 - * Called by centerprint functions
 - * @param addOneSecond boolean, set to 1 if the welcome-message centerprint asks for the text
 - */
 -string getTimeoutText(float addOneSecond) {
 -      if (!autocvar_sv_timeout || !timeoutStatus)
 -              return "";
 -
 -      local string retStr;
 -      if (timeoutStatus == 1) {
 -              if (addOneSecond == 1) {
 -                      retStr = strcat("Timeout begins in ", ftos(remainingLeadTime + 1), " seconds!\n");
 -              }
 -              else {
 -                      retStr = strcat("Timeout begins in ", ftos(remainingLeadTime), " seconds!\n");
 -              }
 -              return retStr;
 -      }
 -      else if (timeoutStatus == 2) {
 -              if (addOneSecond) {
 -                      retStr = strcat("Timeout ends in ", ftos(remainingTimeoutTime + 1), " seconds!\n");
 -                      //don't show messages like "Timeout ends in 0 seconds"...
 -                      if ((remainingTimeoutTime + 1) > 0)
 -                              return retStr;
 -                      else
 -                              return "";
 -              }
 -              else {
 -                      retStr = strcat("Timeout ends in ", ftos(remainingTimeoutTime), " seconds!\n");
 -                      //don't show messages like "Timeout ends in 0 seconds"...
 -                      if (remainingTimeoutTime > 0)
 -                              return retStr;
 -                      else
 -                              return "";
 -              }
 -      }
 -      else return "";
 -}
 -
  void player_powerups (void)
  {
        // add a way to see what the items were BEFORE all of these checks for the mutator hook
Simple merge
Simple merge
index 5a3c42e3f192c3e52b16e364a50cae7eb15cf895,ac6d5dccdb86fa63bcd504b0f1a9bbc13718efc1..85e77fe771fcd8880fd97297617d6533faeb4b1f
@@@ -127,8 -127,8 +127,8 @@@ void ka_TouchEvent() // runs any time t
        // messages and sounds
        Send_KillNotification(other.netname, "", "", KA_PICKUPBALL, MSG_KA);
        WriteByte(MSG_BROADCAST, SVC_CENTERPRINT);
 -      WriteString(MSG_BROADCAST, strcat("\n\n", other.netname, "^7 has picked up the ball!\n"));
 +      WriteString(MSG_BROADCAST, strcat(other.netname, "^7 has picked up the ball!"));
-       sound(self.owner, CHAN_AUTO, "keepaway/pickedup.wav", VOL_BASE, ATTN_NONE); // ATTN_NONE (it's a sound intended to be heard anywhere) 
+       sound(self.owner, CH_TRIGGER, "keepaway/pickedup.wav", VOL_BASE, ATTN_NONE); // ATTN_NONE (it's a sound intended to be heard anywhere) 
        
        // scoring
        PlayerScore_Add(other, SP_KEEPAWAY_PICKUPS, 1);
@@@ -169,8 -169,8 +169,13 @@@ void ka_DropEvent(entity plyr) // runs 
        // messages and sounds
        Send_KillNotification(plyr.netname, "", "", KA_DROPBALL, MSG_KA);
        WriteByte(MSG_BROADCAST, SVC_CENTERPRINT);
++<<<<<<< HEAD
+       WriteString(MSG_BROADCAST, strcat("\n\n", plyr.netname, "^7 has dropped the ball!\n"));
+       sound(plyr, CH_TRIGGER, "keepaway/dropped.wav", VOL_BASE, ATTN_NONE);   // ATTN_NONE (it's a sound intended to be heard anywhere) 
++=======
 +      WriteString(MSG_BROADCAST, strcat(plyr.netname, "^7 has dropped the ball!"));
 +      sound(other, CHAN_AUTO, "keepaway/dropped.wav", VOL_BASE, ATTN_NONE);   // ATTN_NONE (it's a sound intended to be heard anywhere) 
++>>>>>>> terencehill/centerprint_stuff
        
        // scoring
        // PlayerScore_Add(plyr, SP_KEEPAWAY_DROPS, 1); Not anymore, this is 100% the same as pickups and is useless.
Simple merge
Simple merge