Event message handling? More...
#include "server.h"
Go to the source code of this file.
Functions | |
void | SV_ClientCommand (client_t *client, const char *fmt,...) |
void | SV_ClientPrintf (client_t *cl, int level, const char *fmt,...) |
Sends text across to be displayed if the level passes. | |
void | SV_BroadcastPrintf (int level, const char *fmt,...) |
Sends text to all active clients. | |
void | SV_Multicast (int mask, struct dbuffer *msg) |
Sends the contents of msg to a subset of the clients, then frees msg. | |
void | SV_StartSound (int mask, const vec3_t origin, const edict_t *entity, const char *sound) |
If origin is NULL, the origin is determined from the entity origin or the midpoint of the entity box for bmodels. |
Event message handling?
Definition in file sv_send.c.
void SV_BroadcastPrintf | ( | int | level, | |
const char * | fmt, | |||
... | ||||
) |
Sends text to all active clients.
Definition at line 81 of file sv_send.c.
References cl, Com_Printf(), cs_connected, free_dbuffer(), i, cvar_s::integer, client_s::messagelevel, NET_VPrintf(), NET_WriteByte(), NET_WriteConstMsg(), new_dbuffer(), Q_vsnprintf(), client_s::state, client_s::stream, sv_dedicated, SV_GetNextClient(), and svc_print.
void SV_ClientCommand | ( | client_t * | client, | |
const char * | fmt, | |||
... | ||||
) |
Definition at line 40 of file sv_send.c.
References NET_VPrintf(), NET_WriteByte(), NET_WriteMsg(), new_dbuffer(), client_s::stream, and svc_stufftext.
void SV_ClientPrintf | ( | client_t * | cl, | |
int | level, | |||
const char * | fmt, | |||
... | ||||
) |
Sends text across to be displayed if the level passes.
Definition at line 58 of file sv_send.c.
References client_s::messagelevel, NET_VPrintf(), NET_WriteByte(), NET_WriteMsg(), new_dbuffer(), client_s::stream, and svc_print.
void SV_Multicast | ( | int | mask, | |
struct dbuffer * | msg | |||
) |
Sends the contents of msg to a subset of the clients, then frees msg.
[in] | mask | Bitmask of the players to send the multicast to |
[in,out] | msg | The message to send to the clients |
Definition at line 130 of file sv_send.c.
References cl, cs_connected, free_dbuffer(), NET_WriteConstMsg(), client_s::state, client_s::stream, and SV_GetNextClient().
Referenced by SV_Configstring(), SV_EndEvents(), SV_FindIndex(), and SV_StartSound().
If origin is NULL, the origin is determined from the entity origin or the midpoint of the entity box for bmodels.
Definition at line 155 of file sv_send.c.
References edict_s::maxs, edict_s::mins, NET_WriteByte(), NET_WritePos(), NET_WriteString(), new_dbuffer(), edict_s::origin, edict_s::solid, SOLID_BSP, SV_Multicast(), svc_sound, VectorAdd, VectorCenterFromMinsMaxs(), and VectorCopy.
Referenced by SV_InitGameProgs().