]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'master' into Lyberta/TeamplayOverhaul
authorLyberta <lyberta@lyberta.net>
Mon, 11 Jun 2018 10:15:27 +0000 (13:15 +0300)
committerLyberta <lyberta@lyberta.net>
Mon, 11 Jun 2018 10:15:27 +0000 (13:15 +0300)
1  2 
qcsrc/common/t_items.qc
qcsrc/server/bot/default/bot.qc
qcsrc/server/client.qc
qcsrc/server/command/cmd.qc
qcsrc/server/command/sv_cmd.qc
qcsrc/server/g_world.qc
qcsrc/server/g_world.qh
qcsrc/server/player.qc
qcsrc/server/player.qh
qcsrc/server/teamplay.qc

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 693a9d29501508282412729f0abd74e7f4824cf9,4d59943b682dfb89a81d68e274100e2b1f1d0a86..03e0bfb64f6d6a80d2977ae34c31bf0bae6624af
@@@ -663,60 -664,21 +664,6 @@@ void PlayerDamage(entity this, entity i
        }
  }
  
- /** print(), but only print if the server is not local */
- void dedicated_print(string input)
- {
-       if (server_is_dedicated) print(input);
- }
- void PrintToChat(entity player, string text)
- {
-       text = strcat("\{1}^7", text, "\n");
-       sprint(player, text);
- }
- void DebugPrintToChat(entity player, string text)
- {
-       if (autocvar_developer)
-       {
-               PrintToChat(player, text);
-       }
- }
- void PrintToChatAll(string text)
- {
-       text = strcat("\{1}^7", text, "\n");
-       bprint(text);
- }
- void DebugPrintToChatAll(string text)
- {
-       if (autocvar_developer)
-       {
-               PrintToChatAll(text);
-       }
- }
- void PrintToChatTeam(int teamnum, string text)
- {
-       text = strcat("\{1}^7", text, "\n");
-       FOREACH_CLIENT(IS_REAL_CLIENT(it),
-       {
-               if (it.team == teamnum)
-               {
-                       sprint(it, text);
-               }
-       });
- }
- void DebugPrintToChatTeam(int teamnum, string text)
 -bool MoveToTeam(entity client, int team_colour, int type)
--{
-       if (autocvar_developer)
 -      int lockteams_backup = lockteams;  // backup any team lock
 -      lockteams = 0;  // disable locked teams
 -      TeamchangeFrags(client);  // move the players frags
 -      if (!SetPlayerTeamSimple(client, team_colour))
--      {
-               PrintToChatTeam(teamnum, text);
 -              return false;
--      }
 -      Damage(client, client, client, 100000, DEATH_AUTOTEAMCHANGE.m_id, DMG_NOWEP, client.origin, '0 0 0');  // kill the player
 -      lockteams = lockteams_backup;  // restore the team lock
 -      LogTeamchange(client.playerid, client.team, type);
 -      return true;
--}
--
  /**
   * message "": do not say, just test flood control
   * return value:
Simple merge
Simple merge