X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fplayer.qh;h=ee073ccb4498a960b757409fd055cec5d3c8062d;hb=fbbd6e567b89e6a2f5f4b9c134fbd3d809ae026d;hp=f527e17689f58754135c74450f4be38d106d5d2e;hpb=8ab019133d20ec2f8291f85ad7ff2d58ba4594d0;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/player.qh b/qcsrc/server/player.qh index f527e1768..ee073ccb4 100644 --- a/qcsrc/server/player.qh +++ b/qcsrc/server/player.qh @@ -17,11 +17,42 @@ void dedicated_print(string input); /// \return No return. void PrintToChat(entity player, string text); +/// \brief Print the string to player's chat if the server cvar "developer" is +/// not 0. +/// \param[in] player Player to print to. +/// \param[in] text Text to print. +/// \return No return. +void DebugPrintToChat(entity player, string text); + +/// \brief Prints the string to all players' chat. +/// \param[in] text Text to print. +/// \return No return. +void PrintToChatAll(string text); + +/// \brief Prints the string to all players' chat if the server cvar "developer" +/// is not 0. +/// \param[in] text Text to print. +/// \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); -void PlayerCorpseDamage(entity this, entity inflictor, entity attacker, float damage, int deathtype, vector hitloc, vector force); +void PlayerCorpseDamage(entity this, entity inflictor, entity attacker, float damage, int deathtype, .entity weaponentity, vector hitloc, vector force); // g__str: // If 0, default is used. @@ -45,8 +76,6 @@ void ClientKill_Now_TeamChange(entity this); /// \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); +void PlayerDamage(entity this, entity inflictor, entity attacker, float damage, int deathtype, .entity weaponentity, 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);