sv_send.c File Reference

Event message handling? More...

#include "server.h"
Include dependency graph for sv_send.c:

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.

Detailed Description

Event message handling?

Definition in file sv_send.c.


Function Documentation

void SV_BroadcastPrintf ( int  level,
const char *  fmt,
  ... 
)
void SV_ClientCommand ( client_t client,
const char *  fmt,
  ... 
)
See also:
SV_BroadcastCommand

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.

Parameters:
[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().

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.

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().


Generated by  doxygen 1.6.2