X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fplayer.qh;h=2853f7f6d4c3887b2f6c4f8fcaf24c4624ed4e92;hb=4f07f47fa93fb083cb44cba05a614b91b6ae9211;hp=1834bb865ffbb668801e525eb40b7e90f5afa341;hpb=cabba6eeb71f3ca612aa30bb8c7dad9cbc9c0d52;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/player.qh b/qcsrc/server/player.qh index 1834bb865..2853f7f6d 100644 --- a/qcsrc/server/player.qh +++ b/qcsrc/server/player.qh @@ -2,57 +2,18 @@ .entity pusher; .float pushltime; -.float istypefrag; +.bool istypefrag; .float CopyBody_nextthink; .void(entity this) CopyBody_think; 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,8 +30,8 @@ void calculate_player_respawn_time(entity this); void ClientKill_Now_TeamChange(entity this); -void 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);