]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/player.qh
Merged master
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / player.qh
index 08702316d40deab492adbe66cdae7d30dd15fa85..dfa485e5f11fddad33799689e9d354fae640e572 100644 (file)
@@ -35,6 +35,19 @@ void PrintToChatAll(string text);
 /// \return No return.
 void DebugPrintToChatAll(string text);
 
+/// \brief Print the string to chat of all players of the specified team.
+/// \param[in] teamnum Team to print to. See NUM_TEAM constants.
+/// \param[in] text Text to print.
+/// \return No return.
+void PrintToChatTeam(int teamnum, string text);
+
+/// \brief Print the string to chat of all players of the specified team if the
+/// server cvar "developer" is not 0.
+/// \param[in] teamnum Team to print to. See NUM_TEAM constants.
+/// \param[in] text Text to print.
+/// \return No return.
+void DebugPrintToChatTeam(int teamnum, string text);
+
 void player_setupanimsformodel(entity this);
 
 void player_anim(entity this);
@@ -56,10 +69,13 @@ void calculate_player_respawn_time(entity this);
 
 void ClientKill_Now_TeamChange(entity this);
 
-void MoveToTeam(entity client, float team_colour, float type);
+/// \brief Moves player to the specified team.
+/// \param[in,out] client Client to move.
+/// \param[in] team_colour Color of the team.
+/// \param[in] type ???
+/// \return True on success, false otherwise.
+bool MoveToTeam(entity client, float team_colour, float type);
 
 void PlayerDamage(entity this, entity inflictor, entity attacker, float damage, int deathtype, vector hitloc, vector force);
 
-/** to be used by `prvm_edictset server playernumber muted 1` */
-.float muted;
 int Say(entity source, float teamsay, entity privatesay, string msgin, float floodcontrol);