|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "chat.qh"#include <common/gametypes/_mod.qh>#include <common/mapobjects/target/location.qh>#include <common/mapobjects/triggers.qh>#include <common/notifications/all.qh>#include <common/teams.qh>#include <common/util.qh>#include <common/weapons/weapon.qh>#include <common/wepent.qh>#include <server/command/cmd.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>Go to the source code of this file.
Macros | |
| #define | NO_SLASH() |
| #define | ON_SLASH() |
Functions | |
| string | AmmoNameFromWeaponentity (entity this,.entity weaponentity) |
| ERASEABLE void | DebugPrintToChat (entity client, string text) |
| Print the string to the client's chat if the server cvar "developer" is not 0. | |
| ERASEABLE void | DebugPrintToChatAll (string text) |
| Prints the string to all clients' chat if the server cvar "developer" is not 0. | |
| 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. | |
| 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. | |
| ERASEABLE void | PrintToChatAll (string text) |
| Prints the string to all clients' chat. | |
| ERASEABLE void | PrintToChatTeam (int team_num, string text) |
| Print the string to chat of all clients of the specified team. | |
| 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 | |
| string | WeaponNameFromWeaponentity (entity this,.entity weaponentity) |
| #define NO_SLASH | ( | ) |
Referenced by formatmessage().
| #define ON_SLASH | ( | ) |
Referenced by formatmessage().
Definition at line 485 of file chat.qc.
References entity(), and IS_PLAYER.
Referenced by formatmessage().
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 601 of file chat.qc.
References autocvar_developer, entity(), 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 617 of file chat.qc.
References autocvar_developer, 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 639 of file chat.qc.
References autocvar_developer, and PrintToChatTeam().
Definition at line 374 of file chat.qc.
References entity(), g_items, g_locations, if(), IL_EACH, nearest_entity, nearest_length, NUM_NEAREST_ENTITIES, and vector.
Referenced by NearestLocation().
Definition at line 498 of file chat.qc.
References AmmoNameFromWeaponentity(), autocvar_timelimit, ceil(), death_origin, entity(), floor(), ftos(), game_starttime, GetResource(), M_ARGV, max(), min(), MUTATOR_CALLHOOK, NearestLocation(), NO_SLASH, NULL, ON_SLASH, origin, PlayerHealth(), PrintToChat(), RES_ARMOR, seconds_tostring(), strcat(), strlen, strstrofs, substring(), time, trace_endpos, trace_ent, vector, velocity, vlen(), vtos(), WarpZone_crosshair_trace_plusvisibletriggers(), weaponentities, and WeaponNameFromWeaponentity().
Referenced by Say().
Definition at line 446 of file chat.qc.
References entity(), findnearest(), and vector.
Referenced by formatmessage(), and Obituary().
Definition at line 461 of file chat.qc.
References entity(), floor(), ftos(), GetResource(), IS_DEAD, mapvote_initialized, and myhealth.
Referenced by formatmessage().
Print the string to the client's chat.
| [in] | client | Client to print to. |
| [in] | text | Text to print. |
Definition at line 594 of file chat.qc.
References entity(), sprint(), and strcat().
Referenced by DebugPrintToChat(), and formatmessage().
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 626 of file chat.qc.
References FOREACH_CLIENT, IS_REAL_CLIENT, sprint(), 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 27 of file chat.qc.
References active_minigame, autocvar_g_chat_allowed, 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_private_allowed, autocvar_g_chat_show_playerid, autocvar_g_chat_spectator_allowed, autocvar_g_chat_team_allowed, autocvar_g_chat_teamcolors, autocvar_g_chat_tellprivacy, autocvar_sv_eventlog, centerprint(), CHAT_NOSPECTATORS, CS(), dedicated_print(), entity(), etof, floodcontrol_chat, floodcontrol_chatteam, floodcontrol_chattell, FOREACH_CLIENT, formatmessage(), ftos(), game_stopped, GameLogEcho(), gettime(), GETTIME_FRAMESTART, getWrappedLine_remaining, getWrappedLineLen(), ignore_playerinlist(), INGAME, IS_OBSERVER, IS_PLAYER, IS_REAL_CLIENT, itos, LOG_INFO, M_ARGV, max(), MUTATOR_CALLHOOK, MX_Say(), playername(), Send_Notification(), sprint(), strcat(), string_null, strlen, substring(), Team_ColorCode(), teamplay, and trigger_magicear_processmessage_forallears().
Referenced by ClientCommand_say(), ClientCommand_say_team(), ClientCommand_tell(), and MX_Handle().
Definition at line 473 of file chat.qc.
References entity(), and IS_PLAYER.
Referenced by formatmessage().