Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
chat.qh
Go to the documentation of this file.
1#pragma once
2
21
22const float NUM_NEAREST_ENTITIES = 4;
25
29
30#define CHAT_NOSPECTATORS() ((autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !warmup_stage))
31
32int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodcontrol);
33
34string NearestLocation(vector p);
35
36string formatmessage(entity this, string msg);
37
41void PrintToChat(entity client, string text);
42
47void DebugPrintToChat(entity client, string text);
48
51void PrintToChatAll(string text);
52
56void DebugPrintToChatAll(string text);
57
61void PrintToChatTeam(int team_num, string text);
62
67void DebugPrintToChatTeam(int team_num, string text);
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
vector
Definition self.qh:92
bool autocvar_g_chat_allowed
Definition chat.qh:13
bool autocvar_g_chat_team_allowed
Definition chat.qh:16
void PrintToChatAll(string text)
Prints the string to all clients' chat.
Definition chat.qc:610
bool autocvar_g_chat_flood_notify_flooder
Definition chat.qh:9
void PrintToChatTeam(int team_num, string text)
Print the string to chat of all clients of the specified team.
Definition chat.qc:626
float autocvar_g_chat_flood_lmax
Definition chat.qh:6
void PrintToChat(entity client, string text)
Print the string to the client's chat.
Definition chat.qc:594
float floodcontrol_chat
Definition chat.qh:26
float autocvar_g_chat_flood_burst_tell
Definition chat.qh:5
float autocvar_g_chat_flood_lmax_team
Definition chat.qh:7
string NearestLocation(vector p)
Definition chat.qc:446
int autocvar_g_chat_nospectators
Definition chat.qh:17
bool autocvar_g_chat_show_playerid
Definition chat.qh:20
float autocvar_g_chat_flood_lmax_tell
Definition chat.qh:8
entity nearest_entity[NUM_NEAREST_ENTITIES]
Definition chat.qh:23
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:639
float autocvar_g_chat_flood_spl_tell
Definition chat.qh:12
string formatmessage(entity this, string msg)
Definition chat.qc:498
bool autocvar_g_chat_teamcolors
Definition chat.qh:18
float autocvar_g_chat_flood_spl
Definition chat.qh:10
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:27
float autocvar_g_chat_flood_spl_team
Definition chat.qh:11
bool autocvar_g_chat_spectator_allowed
Definition chat.qh:15
float autocvar_g_chat_flood_burst_team
Definition chat.qh:4
void DebugPrintToChatAll(string text)
Prints the string to all clients' chat if the server cvar "developer" is not 0.
Definition chat.qc:617
float floodcontrol_chattell
Definition chat.qh:28
bool autocvar_g_chat_tellprivacy
Definition chat.qh:19
float nearest_length[NUM_NEAREST_ENTITIES]
Definition chat.qh:24
const float NUM_NEAREST_ENTITIES
Definition chat.qh:22
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:601
float autocvar_g_chat_flood_burst
Definition chat.qh:3
bool autocvar_g_chat_private_allowed
Definition chat.qh:14
float floodcontrol_chatteam
Definition chat.qh:27