3 const float NUM_NEAREST_ENTITIES = 4;
4 entity nearest_entity[NUM_NEAREST_ENTITIES];
5 float nearest_length[NUM_NEAREST_ENTITIES];
7 .float floodcontrol_chat;
8 .float floodcontrol_chatteam;
9 .float floodcontrol_chattell;
10 .float floodcontrol_voice;
11 .float floodcontrol_voiceteam;
13 #define CHAT_NOSPECTATORS() ((autocvar_g_chat_nospectators == 1) || (autocvar_g_chat_nospectators == 2 && !warmup_stage))
15 int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodcontrol);
17 string NearestLocation(vector p);
19 string formatmessage(entity this, string msg);
21 /// \brief Print the string to the client's chat.
22 /// \param[in] client Client to print to.
23 /// \param[in] text Text to print.
24 void PrintToChat(entity client, string text);
26 /// \brief Print the string to the client's chat if the server cvar "developer"
28 /// \param[in] client Client to print to.
29 /// \param[in] text Text to print.
30 void DebugPrintToChat(entity client, string text);
32 /// \brief Prints the string to all clients' chat.
33 /// \param[in] text Text to print.
34 void PrintToChatAll(string text);
36 /// \brief Prints the string to all clients' chat if the server cvar "developer"
38 /// \param[in] text Text to print.
39 void DebugPrintToChatAll(string text);
41 /// \brief Print the string to chat of all clients of the specified team.
42 /// \param[in] team_num Team to print to. See NUM_TEAM constants.
43 /// \param[in] text Text to print.
44 void PrintToChatTeam(int team_num, string text);
46 /// \brief Print the string to chat of all clients of the specified team if the
47 /// server cvar "developer" is not 0.
48 /// \param[in] team_num Team to print to. See NUM_TEAM constants.
49 /// \param[in] text Text to print.
50 void DebugPrintToChatTeam(int team_num, string text);