|
Xonotic
|
#include "chat.qh"#include <common/gamemodes/_mod.qh>#include <common/mapobjects/target/location.qh>#include <common/mapobjects/triggers.qh>#include <common/teams.qh>#include <common/util.qh>#include <common/weapons/weapon.qh>#include <common/wepent.qh>#include <server/command/common.qh>#include <server/gamelog.qh>#include <server/main.qh>#include <server/mapvoting.qh>#include <server/mutators/_mod.qh>#include <server/weapons/tracing.qh>#include <server/world.qh>
Include dependency graph for chat.qc:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| ERASEABLE void | DebugPrintToChat (entity client, string text) |
| Print the string to the client's chat if the server cvar "developer" is not 0. More... | |
| ERASEABLE void | DebugPrintToChatAll (string text) |
| Prints the string to all clients' chat if the server cvar "developer" is not 0. More... | |
| ERASEABLE void | DebugPrintToChatTeam (int team_num, string text) |
| Print the string to chat of all clients of the specified team if the server cvar "developer" is not 0. More... | |
| entity | findnearest (vector point, bool checkitems, vector axismod) |
| string | formatmessage (entity this, string msg) |
| string | NearestLocation (vector p) |
| string | PlayerHealth (entity this) |
| ERASEABLE void | PrintToChat (entity client, string text) |
| Print the string to the client's chat. More... | |
| ERASEABLE void | PrintToChatAll (string text) |
| Prints the string to all clients' chat. More... | |
| ERASEABLE void | PrintToChatTeam (int team_num, string text) |
| Print the string to chat of all clients of the specified team. More... | |
| int | Say (entity source, int teamsay, entity privatesay, string msgin, bool floodcontrol) |
| message "": do not say, just test flood control return value: 1 = accept 0 = reject -1 = fake accept More... | |
| string | WeaponNameFromWeaponentity (entity this,.entity weaponentity) |
Print the string to the client's chat if the server cvar "developer" is not 0.
| [in] | client | Client to print to. |
| [in] | text | Text to print. |
Definition at line 537 of file chat.qc.
References autocvar_developer, ERASEABLE, and PrintToChat().
Here is the call graph for this function:Prints the string to all clients' chat if the server cvar "developer" is not 0.
| [in] | text | Text to print. |
Definition at line 553 of file chat.qc.
References autocvar_developer, ERASEABLE, and PrintToChatAll().
Here is the call graph for this function:Print the string to chat of all clients of the specified team if the server cvar "developer" is not 0.
| [in] | team_num | Team to print to. See NUM_TEAM constants. |
| [in] | text | Text to print. |
Definition at line 575 of file chat.qc.
References autocvar_developer, and PrintToChatTeam().
Here is the call graph for this function:Definition at line 344 of file chat.qc.
References g_items, if(), IL_EACH, LOG_TRACE, LOG_TRACEF, nearest_entity, nearest_length, netname, NULL, NUM_NEAREST_ENTITIES, origin, trace_fraction, and vector().
Referenced by NearestLocation().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 451 of file chat.qc.
References ceil(), death_origin, entity(), ERASEABLE, floor(), ftos(), GetAmmoName(), GetResource(), M_ARGV, max(), min(), MUTATOR_CALLHOOK, NearestLocation(), NULL, origin, PlayerHealth(), seconds_tostring(), strcat(), strlen(), strstrofs, substring(), time, trace_endpos, trace_ent, vector(), velocity, vlen(), WarpZone_crosshair_trace_plusvisibletriggers(), weaponentities, and WeaponNameFromWeaponentity().
Referenced by Say().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 412 of file chat.qc.
References entity(), and findnearest().
Referenced by formatmessage(), and Obituary().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 427 of file chat.qc.
References floor(), ftos(), GetResource(), IS_DEAD, mapvote_initialized, myhealth, and RES_HEALTH.
Referenced by formatmessage().
Here is the call graph for this function:
Here is the caller graph for this function:Print the string to the client's chat.
| [in] | client | Client to print to. |
| [in] | text | Text to print. |
Definition at line 530 of file chat.qc.
References ERASEABLE, sprint(), and strcat().
Referenced by DebugPrintToChat().
Here is the call graph for this function:
Here is the caller graph for this function:Prints the string to all clients' chat.
| [in] | text | Text to print. |
Definition at line 546 of file chat.qc.
References bprint(), ERASEABLE, and strcat().
Referenced by DebugPrintToChatAll().
Here is the call graph for this function:
Here is the caller graph for this function:Print the string to chat of all clients of the specified team.
| [in] | team_num | Team to print to. See NUM_TEAM constants. |
| [in] | text | Text to print. |
Definition at line 562 of file chat.qc.
References ERASEABLE, FOREACH_CLIENT, IS_REAL_CLIENT, and strcat().
Referenced by DebugPrintToChatTeam().
Here is the call graph for this function:
Here is the caller graph for this function:message "": do not say, just test flood control return value: 1 = accept 0 = reject -1 = fake accept
Definition at line 25 of file chat.qc.
References active_minigame, autocvar_g_chat_flood_burst, autocvar_g_chat_flood_burst_team, autocvar_g_chat_flood_burst_tell, autocvar_g_chat_flood_lmax, autocvar_g_chat_flood_lmax_team, autocvar_g_chat_flood_lmax_tell, autocvar_g_chat_flood_notify_flooder, autocvar_g_chat_flood_spl, autocvar_g_chat_flood_spl_team, autocvar_g_chat_flood_spl_tell, autocvar_g_chat_teamcolors, autocvar_g_chat_tellprivacy, autocvar_sv_eventlog, centerprint(), CHAT_NOSPECTATORS, cons(), CS(), dedicated_print(), floodcontrol_chat, floodcontrol_chatteam, floodcontrol_chattell, FOREACH_CLIENT, FOREACH_WORD, formatmessage(), ftos(), GameLogEcho(), getWrappedLine_remaining, getWrappedLineLen(), INGAME, IS_PLAYER, IS_REAL_CLIENT, LOG_INFO, M_ARGV, max(), MUTATOR_CALLHOOK, MX_Say(), sprint(), strcat(), string_null, strlen(), strstrofs, substring(), Team_ColorCode(), teamplay, time, and TIMEOUT_ACTIVE.
Referenced by ClientCommand_say(), ClientCommand_say_team(), ClientCommand_tell(), and MX_Handle().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 439 of file chat.qc.
References entity().
Referenced by formatmessage().
Here is the call graph for this function:
Here is the caller graph for this function: