Xonotic
|
Go to the source code of this file.
Macros | |
#define | CHAT_NOSPECTATORS() ((autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !warmup_stage)) |
Functions | |
void | DebugPrintToChat (entity client, string text) |
Print the string to the client's chat if the server cvar "developer" is not 0. More... | |
void | DebugPrintToChatAll (string text) |
Prints the string to all clients' chat if the server cvar "developer" is not 0. More... | |
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... | |
string | formatmessage (entity this, string msg) |
string | NearestLocation (vector p) |
void | PrintToChat (entity client, string text) |
Print the string to the client's chat. More... | |
void | PrintToChatAll (string text) |
Prints the string to all clients' chat. More... | |
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... | |
#define CHAT_NOSPECTATORS | ( | ) | ((autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !warmup_stage)) |
Definition at line 27 of file chat.qh.
Referenced by PutObserverInServer(), and Say().
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().
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().
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().
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().
Definition at line 412 of file chat.qc.
References entity(), and findnearest().
Referenced by formatmessage(), and Obituary().
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().
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().
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().
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().
bool autocvar_g_chat_flood_notify_flooder |
entity nearest_entity[NUM_NEAREST_ENTITIES] |
Definition at line 18 of file chat.qh.
Referenced by findnearest().
float nearest_length[NUM_NEAREST_ENTITIES] |
Definition at line 19 of file chat.qh.
Referenced by findnearest().
const float NUM_NEAREST_ENTITIES = 4 |
Definition at line 17 of file chat.qh.
Referenced by findnearest().