Xonotic
chat.qh
Go to the documentation of this file.
1 #pragma once
2 
16 
17 const float NUM_NEAREST_ENTITIES = 4;
20 
26 
27 #define CHAT_NOSPECTATORS() ((autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !warmup_stage))
28 
29 int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodcontrol);
30 
31 string NearestLocation(vector p);
32 
33 string formatmessage(entity this, string msg);
34 
38 void PrintToChat(entity client, string text);
39 
44 void DebugPrintToChat(entity client, string text);
45 
48 void PrintToChatAll(string text);
49 
53 void DebugPrintToChatAll(string text);
54 
58 void PrintToChatTeam(int team_num, string text);
59 
64 void DebugPrintToChatTeam(int team_num, string text);
float nearest_length[NUM_NEAREST_ENTITIES]
Definition: chat.qh:19
float autocvar_g_chat_flood_spl_team
Definition: chat.qh:11
float autocvar_g_chat_flood_lmax_team
Definition: chat.qh:7
entity() spawn
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...
Definition: chat.qc:575
float floodcontrol_voice
Definition: chat.qh:24
float floodcontrol_chatteam
Definition: chat.qh:22
float autocvar_g_chat_flood_lmax_tell
Definition: chat.qh:8
bool autocvar_g_chat_flood_notify_flooder
Definition: chat.qh:9
bool autocvar_g_chat_teamcolors
Definition: chat.qh:14
string formatmessage(entity this, string msg)
Definition: chat.qc:451
void PrintToChatTeam(int team_num, string text)
Print the string to chat of all clients of the specified team.
Definition: chat.qc:562
entity nearest_entity[NUM_NEAREST_ENTITIES]
Definition: chat.qh:18
float autocvar_g_chat_flood_burst_team
Definition: chat.qh:4
bool autocvar_g_chat_tellprivacy
Definition: chat.qh:15
float autocvar_g_chat_flood_burst
Definition: chat.qh:3
float autocvar_g_chat_flood_spl_tell
Definition: chat.qh:12
float floodcontrol_chat
Definition: chat.qh:21
const float NUM_NEAREST_ENTITIES
Definition: chat.qh:17
vector(float skel, float bonenum) _skel_get_boneabs_hidden
float floodcontrol_voiceteam
Definition: chat.qh:25
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 ...
Definition: chat.qc:25
void PrintToChat(entity client, string text)
Print the string to the client's chat.
Definition: chat.qc:530
int autocvar_g_chat_nospectators
Definition: chat.qh:13
void DebugPrintToChatAll(string text)
Prints the string to all clients' chat if the server cvar "developer" is not 0.
Definition: chat.qc:553
float autocvar_g_chat_flood_spl
Definition: chat.qh:10
string NearestLocation(vector p)
Definition: chat.qc:412
void PrintToChatAll(string text)
Prints the string to all clients' chat.
Definition: chat.qc:546
float autocvar_g_chat_flood_lmax
Definition: chat.qh:6
float autocvar_g_chat_flood_burst_tell
Definition: chat.qh:5
void DebugPrintToChat(entity client, string text)
Print the string to the client's chat if the server cvar "developer" is not 0.
Definition: chat.qc:537
float floodcontrol_chattell
Definition: chat.qh:23