X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fplayer.qh;h=1c38a9fbebf3012b1d87029e26659457d7548a1c;hp=dfa485e5f11fddad33799689e9d354fae640e572;hb=69eda62d02bc02ff50547bad514af3f7ce487413;hpb=050fb0011ae5fb2b36c7c7f3d560f9453807a8ab diff --git a/qcsrc/server/player.qh b/qcsrc/server/player.qh index dfa485e5f1..1c38a9fbeb 100644 --- a/qcsrc/server/player.qh +++ b/qcsrc/server/player.qh @@ -9,50 +9,11 @@ void CopyBody_Think(entity this); void CopyBody(entity this, float keepvelocity); -void dedicated_print(string input); - -/// \brief Print the string to player's chat. -/// \param[in] player Player to print to. -/// \param[in] text Text to print. -/// \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. @@ -69,13 +30,8 @@ void calculate_player_respawn_time(entity this); void ClientKill_Now_TeamChange(entity this); -/// \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, .entity weaponentity, vector hitloc, vector force); -void PlayerDamage(entity this, entity inflictor, entity attacker, float damage, int deathtype, vector hitloc, vector force); +bool PlayerHeal(entity targ, entity inflictor, float amount, float limit); int Say(entity source, float teamsay, entity privatesay, string msgin, float floodcontrol);