![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
#include "quakedef.h"
Go to the source code of this file.
Functions | |
float | BuffBigFloat (const unsigned char *buffer) |
Extract a big endian 32bit float from the given buffer . | |
int | BuffBigLong (const unsigned char *buffer) |
Extract a big endian 32bit int from the given buffer . | |
short | BuffBigShort (const unsigned char *buffer) |
Extract a big endian 16bit short from the given buffer . | |
float | BuffLittleFloat (const unsigned char *buffer) |
Extract a little endian 32bit float from the given buffer . | |
int | BuffLittleLong (const unsigned char *buffer) |
Extract a little endian 32bit int from the given buffer . | |
short | BuffLittleShort (const unsigned char *buffer) |
Extract a little endian 16bit short from the given buffer . | |
void | MSG_BeginReading (sizebuf_t *sb) |
void | MSG_InitReadBuffer (sizebuf_t *buf, unsigned char *data, int size) |
float | MSG_ReadAngle (sizebuf_t *sb, protocolversion_t protocol) |
float | MSG_ReadAngle16i (sizebuf_t *sb) |
float | MSG_ReadAngle32f (sizebuf_t *sb) |
float | MSG_ReadAngle8i (sizebuf_t *sb) |
float | MSG_ReadBigFloat (sizebuf_t *sb) |
int | MSG_ReadBigLong (sizebuf_t *sb) |
int | MSG_ReadBigShort (sizebuf_t *sb) |
size_t | MSG_ReadBytes (sizebuf_t *sb, size_t numbytes, unsigned char *out) |
float | MSG_ReadCoord (sizebuf_t *sb, protocolversion_t protocol) |
float | MSG_ReadCoord13i (sizebuf_t *sb) |
float | MSG_ReadCoord16i (sizebuf_t *sb) |
float | MSG_ReadCoord32f (sizebuf_t *sb) |
float | MSG_ReadLittleFloat (sizebuf_t *sb) |
int | MSG_ReadLittleLong (sizebuf_t *sb) |
int | MSG_ReadLittleShort (sizebuf_t *sb) |
char * | MSG_ReadString (sizebuf_t *sb, char *string, size_t maxstring) |
size_t | MSG_ReadString_len (sizebuf_t *sb, char *string, size_t maxstring) |
Same as MSG_ReadString except it returns the number of bytes written to *string excluding the \0 terminator. | |
void | MSG_ReadVector (sizebuf_t *sb, vec3_t v, protocolversion_t protocol) |
void | MSG_WriteAngle (sizebuf_t *sb, float f, protocolversion_t protocol) |
void | MSG_WriteAngle16i (sizebuf_t *sb, float f) |
void | MSG_WriteAngle32f (sizebuf_t *sb, float f) |
void | MSG_WriteAngle8i (sizebuf_t *sb, float f) |
void | MSG_WriteByte (sizebuf_t *sb, int c) |
void | MSG_WriteChar (sizebuf_t *sb, int c) |
void | MSG_WriteCoord (sizebuf_t *sb, float f, protocolversion_t protocol) |
void | MSG_WriteCoord13i (sizebuf_t *sb, float f) |
void | MSG_WriteCoord16i (sizebuf_t *sb, float f) |
void | MSG_WriteCoord32f (sizebuf_t *sb, float f) |
void | MSG_WriteFloat (sizebuf_t *sb, float f) |
void | MSG_WriteLong (sizebuf_t *sb, int c) |
void | MSG_WriteShort (sizebuf_t *sb, int c) |
void | MSG_WriteString (sizebuf_t *sb, const char *s) |
void | MSG_WriteUnterminatedString (sizebuf_t *sb, const char *s) |
void | MSG_WriteVector (sizebuf_t *sb, const vec3_t v, protocolversion_t protocol) |
void | StoreBigLong (unsigned char *buffer, unsigned int i) |
Encode a big endian 32bit int to the given buffer . | |
void | StoreBigShort (unsigned char *buffer, unsigned short i) |
Encode a big endian 16bit int to the given buffer . | |
void | StoreLittleLong (unsigned char *buffer, unsigned int i) |
Encode a little endian 32bit int to the given buffer . | |
void | StoreLittleShort (unsigned char *buffer, unsigned short i) |
Encode a little endian 16bit int to the given buffer . | |
float BuffBigFloat | ( | const unsigned char * | buffer | ) |
int BuffBigLong | ( | const unsigned char * | buffer | ) |
Extract a big endian 32bit int from the given buffer
.
Definition at line 49 of file com_msg.c.
References buffer.
Referenced by Crypto_DecryptPacket(), Crypto_EncryptPacket(), NetConn_ClientParsePacket(), NetConn_ReceivedMessage(), NetConn_ServerParsePacket(), PK3_BuildFileList(), PK3_GetEndOfCentralDir(), and PK3_GetTrueFileOffset().
short BuffBigShort | ( | const unsigned char * | buffer | ) |
float BuffLittleFloat | ( | const unsigned char * | buffer | ) |
int BuffLittleLong | ( | const unsigned char * | buffer | ) |
Extract a little endian 32bit int from the given buffer
.
Definition at line 71 of file com_msg.c.
References buffer.
Referenced by Crypto_ClientParsePacket(), GetLittleLong(), GetMapList(), Mod_Q1BSP_LoadFaces(), PK3_BuildFileList(), and R_LoadTextureDDSFile().
short BuffLittleShort | ( | const unsigned char * | buffer | ) |
Extract a little endian 16bit short from the given buffer
.
Definition at line 76 of file com_msg.c.
References buffer.
Referenced by GetLittleShort(), Mod_Q1BSP_LoadFaces(), Mod_VBSP_LoadFaces(), PK3_BuildFileList(), and PK3_GetTrueFileOffset().
Definition at line 257 of file com_msg.c.
References sizebuf_t::badread, and sizebuf_t::readcount.
Referenced by CL_ReadDemoMessage(), MSG_InitReadBuffer(), NetConn_ClientParsePacket(), NetConn_ReceivedMessage(), NetConn_ServerParsePacket(), and W_ConvertWAD3TextureBGRA().
Definition at line 249 of file com_msg.c.
References buf, data, MSG_BeginReading(), and size.
Referenced by Mod_Q1BSP_Load(), Mod_Q1BSP_LoadTextures(), Mod_Q2BSP_Load(), Mod_VBSP_Load(), and W_GetTextureBGRA().
float MSG_ReadAngle | ( | sizebuf_t * | sb, |
protocolversion_t | protocol ) |
Definition at line 424 of file com_msg.c.
References MSG_ReadAngle16i(), MSG_ReadAngle8i(), PROTOCOL_DARKPLACES1, PROTOCOL_DARKPLACES2, PROTOCOL_DARKPLACES3, PROTOCOL_DARKPLACES4, PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PROTOCOL_NEHAHRAMOVIE, PROTOCOL_QUAKE, PROTOCOL_QUAKEDP, and PROTOCOL_QUAKEWORLD.
Referenced by CL_ParseBaseline(), CL_ParseServerMessage(), EntityFrameQuake_ReadEntity(), and VM_CL_ReadAngle().
Definition at line 414 of file com_msg.c.
References MSG_ReadShort.
Referenced by CL_ParseClientdata(), EntityState5_ReadUpdate(), EntityState_ReadFields(), EntityStateQW_ReadPlayerUpdate(), MSG_ReadAngle(), and SV_ReadClientMove().
Definition at line 419 of file com_msg.c.
References MSG_ReadFloat.
Referenced by SV_ReadClientMove().
Definition at line 409 of file com_msg.c.
References MSG_ReadByte.
Referenced by EntityState5_ReadUpdate(), EntityState_ReadFields(), EntityStateQW_ReadEntityUpdate(), MSG_ReadAngle(), and SV_ReadClientMove().
Definition at line 324 of file com_msg.c.
References sizebuf_t::badread, sizebuf_t::cursize, sizebuf_t::data, f, and sizebuf_t::readcount.
Definition at line 296 of file com_msg.c.
References sizebuf_t::badread, sizebuf_t::cursize, sizebuf_t::data, and sizebuf_t::readcount.
Definition at line 274 of file com_msg.c.
References sizebuf_t::badread, sizebuf_t::cursize, sizebuf_t::data, and sizebuf_t::readcount.
size_t MSG_ReadBytes | ( | sizebuf_t * | sb, |
size_t | numbytes, | ||
unsigned char * | out ) |
Definition at line 364 of file com_msg.c.
References MSG_ReadByte_opt.
Referenced by CL_ParseDownload(), Mod_Q1BSP_LoadEntities(), Mod_Q1BSP_LoadVisibility(), Mod_Q2BSP_LoadLighting(), Mod_Q2BSP_LoadTexinfo(), Mod_VBSP_LoadEntities(), QW_CL_ParseDownload(), VM_CL_ReadPicture(), and W_ConvertWAD3TextureBGRA().
float MSG_ReadCoord | ( | sizebuf_t * | sb, |
protocolversion_t | protocol ) |
Definition at line 389 of file com_msg.c.
References MSG_ReadCoord13i(), MSG_ReadCoord16i(), MSG_ReadCoord32f(), PROTOCOL_DARKPLACES1, PROTOCOL_DARKPLACES2, PROTOCOL_DARKPLACES3, PROTOCOL_DARKPLACES4, PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PROTOCOL_NEHAHRAMOVIE, PROTOCOL_QUAKE, PROTOCOL_QUAKEDP, and PROTOCOL_QUAKEWORLD.
Referenced by CL_ParseBaseline(), CL_ParseServerMessage(), CL_ParseTempEntity(), EntityFrameQuake_ReadEntity(), MSG_ReadVector(), and VM_CL_ReadCoord().
Definition at line 374 of file com_msg.c.
References MSG_ReadLittleShort().
Referenced by EntityState5_ReadUpdate(), EntityStateQW_ReadEntityUpdate(), and MSG_ReadCoord().
Definition at line 379 of file com_msg.c.
References MSG_ReadLittleShort().
Referenced by CL_ParseClientdata(), EntityState_ReadFields(), MSG_ReadCoord(), and SV_ReadClientMove().
Definition at line 384 of file com_msg.c.
References MSG_ReadLittleFloat().
Referenced by CL_ParseClientdata(), EntityState5_ReadUpdate(), EntityState_ReadFields(), and MSG_ReadCoord().
Definition at line 307 of file com_msg.c.
References sizebuf_t::badread, sizebuf_t::cursize, sizebuf_t::data, f, and sizebuf_t::readcount.
Referenced by Mod_BSP_LoadSubmodels(), Mod_Q1BSP_LoadLeafs(), Mod_Q1BSP_LoadNodes(), Mod_Q1BSP_LoadPlanes(), Mod_Q1BSP_LoadTexinfo(), Mod_Q1BSP_LoadVertexes(), Mod_Q2BSP_LoadTexinfo(), Mod_VBSP_LoadPlanes(), Mod_VBSP_LoadTexinfo(), Mod_VBSP_LoadVertexes(), and MSG_ReadCoord32f().
Definition at line 285 of file com_msg.c.
References sizebuf_t::badread, sizebuf_t::cursize, sizebuf_t::data, and sizebuf_t::readcount.
Referenced by Mod_BSP_LoadSubmodels(), Mod_Q1BSP_Load(), Mod_Q1BSP_LoadClipnodes(), Mod_Q1BSP_LoadEdges(), Mod_Q1BSP_LoadFaces(), Mod_Q1BSP_LoadLeaffaces(), Mod_Q1BSP_LoadLeafs(), Mod_Q1BSP_LoadNodes(), Mod_Q1BSP_LoadPlanes(), Mod_Q1BSP_LoadSurfedges(), Mod_Q1BSP_LoadTexinfo(), Mod_Q1BSP_LoadTextures(), Mod_Q2BSP_Load(), Mod_Q2BSP_LoadBrushes(), Mod_Q2BSP_LoadLeafs(), Mod_Q2BSP_LoadNodes(), Mod_Q2BSP_LoadTexinfo(), Mod_Q2BSP_LoadVisibility(), Mod_VBSP_Load(), Mod_VBSP_LoadFaces(), Mod_VBSP_LoadPlanes(), Mod_VBSP_LoadSurfedges(), Mod_VBSP_LoadTexinfo(), and W_ConvertWAD3TextureBGRA().
Definition at line 263 of file com_msg.c.
References sizebuf_t::badread, sizebuf_t::cursize, sizebuf_t::data, and sizebuf_t::readcount.
Referenced by Mod_Q1BSP_LoadClipnodes(), Mod_Q1BSP_LoadEdges(), Mod_Q1BSP_LoadFaces(), Mod_Q1BSP_LoadLeaffaces(), Mod_Q1BSP_LoadLeafs(), Mod_Q1BSP_LoadNodes(), Mod_Q2BSP_LoadBrushSides(), Mod_Q2BSP_LoadLeafBrushes(), Mod_Q2BSP_LoadLeafs(), Mod_Q2BSP_LoadNodes(), Mod_VBSP_LoadEdges(), Mod_VBSP_LoadFaces(), MSG_ReadCoord13i(), and MSG_ReadCoord16i().
char * MSG_ReadString | ( | sizebuf_t * | sb, |
char * | string, | ||
size_t | maxstring ) |
Definition at line 341 of file com_msg.c.
References MSG_ReadByte_opt, and string.
Referenced by CL_ParseServerInfo(), CL_ParseServerMessage(), CL_ParseTempEntity(), NetConn_ClientParsePacket(), NetConn_ServerParsePacket(), QW_CL_ParseModelList(), QW_CL_ParseSoundList(), QW_CL_ServerInfo(), QW_CL_SetInfo(), QW_CL_UpdateUserInfo(), SHOWLMP_decodehide(), SHOWLMP_decodeshow(), and SV_ReadClientMessage().
size_t MSG_ReadString_len | ( | sizebuf_t * | sb, |
char * | string, | ||
size_t | maxstring ) |
Same as MSG_ReadString except it returns the number of bytes written to *string excluding the \0 terminator.
Definition at line 352 of file com_msg.c.
References MSG_ReadByte_opt.
Referenced by CL_ParseServerMessage(), SV_ReadClientMessage(), VM_CL_ReadPicture(), and VM_CL_ReadString().
void MSG_ReadVector | ( | sizebuf_t * | sb, |
vec3_t | v, | ||
protocolversion_t | protocol ) |
Definition at line 401 of file com_msg.c.
References MSG_ReadCoord(), and v.
Referenced by CL_ParseBeam(), CL_ParseEffect(), CL_ParseEffect2(), CL_ParseParticleEffect(), CL_ParsePointParticles(), CL_ParsePointParticles1(), CL_ParseServerMessage(), CL_ParseStartSoundPacket(), CL_ParseStaticSound(), CL_ParseTempEntity(), CL_ParseTrailParticles(), EntityStateQW_ReadPlayerUpdate(), and V_ParseDamage().
void MSG_WriteAngle | ( | sizebuf_t * | sb, |
float | f, | ||
protocolversion_t | protocol ) |
Definition at line 237 of file com_msg.c.
References f, MSG_WriteAngle16i(), MSG_WriteAngle8i(), PROTOCOL_DARKPLACES1, PROTOCOL_DARKPLACES2, PROTOCOL_DARKPLACES3, PROTOCOL_DARKPLACES4, PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PROTOCOL_NEHAHRAMOVIE, PROTOCOL_QUAKE, PROTOCOL_QUAKEDP, and PROTOCOL_QUAKEWORLD.
Referenced by EntityFrameQuake_WriteFrame(), SV_CreateBaseline(), SV_Spawn_f(), SV_WriteClientdataToMessage(), VM_M_WriteAngle(), VM_SV_makestatic(), and VM_SV_WriteAngle().
Definition at line 227 of file com_msg.c.
References f, MSG_WriteShort(), and Q_rint.
Referenced by CL_SendMove(), EntityState5_WriteUpdate(), EntityState_WriteFields(), MSG_WriteAngle(), QW_MSG_WriteDeltaUsercmd(), and SV_WriteClientdataToMessage().
Definition at line 232 of file com_msg.c.
References f, and MSG_WriteFloat().
Referenced by CL_SendMove().
Definition at line 222 of file com_msg.c.
References f, MSG_WriteByte(), and Q_rint.
Referenced by CL_SendMove(), EntityState5_WriteUpdate(), EntityState_WriteFields(), and MSG_WriteAngle().
Definition at line 130 of file com_msg.c.
References buf, and SZ_GetSpace().
Referenced by CL_DisconnectEx(), CL_ForwardToServer(), CL_ParseServerInfo(), CL_PQRcon_f(), CL_SendMove(), CL_SendPlayerInfo(), CL_SetInfo(), CL_SignonReply(), CL_Stop_f(), Cvar_SetQuick_Internal(), EntityFrame4_WriteFrame(), EntityFrame5_WriteFrame(), EntityFrame_WriteFrame(), EntityFrameCSQC_WriteFrame(), EntityFrameQuake_WriteFrame(), EntityState5_WriteUpdate(), EntityState_WriteExtendBits(), EntityState_WriteFields(), MakeDownloadPacket(), MSG_WriteAngle8i(), NetConn_ClientFrame(), NetConn_ServerParsePacket(), Protocol_WriteStatsReliable(), QW_CL_CheckOrDownloadFile(), QW_CL_NextUpload_f(), QW_CL_ParseDownload(), QW_CL_ParseModelList(), QW_CL_ParseSoundList(), QW_CL_RequestNextDownload(), QW_MSG_WriteDeltaUsercmd(), Sbar_DeathmatchOverlay(), SV_BroadcastPrint(), SV_ClientCommands(), SV_ClientPrint(), SV_Color_f(), SV_CreateBaseline(), SV_DropClient(), SV_ModelIndex(), SV_Name(), SV_Pause_f(), SV_Pings_f(), SV_PreSpawn_f(), SV_SendClientDatagram(), SV_SendServerinfo(), SV_SoundIndex(), SV_Spawn_f(), SV_SpawnServer(), SV_StartEffect(), SV_StartParticle(), SV_StartPointSound(), SV_StartSound(), SV_StopDemoRecording(), SV_UpdateToReliableMessages(), SV_WriteClientdataToMessage(), SV_WriteNetnameIntoDemo(), VM_M_WriteByte(), VM_SV_ambientsound(), VM_SV_makestatic(), VM_SV_pointparticles(), VM_SV_setcolor(), VM_SV_setpause(), VM_SV_te_beam(), VM_SV_te_blood(), VM_SV_te_bloodshower(), VM_SV_te_customflash(), VM_SV_te_explosion(), VM_SV_te_explosion2(), VM_SV_te_explosionquad(), VM_SV_te_explosionrgb(), VM_SV_te_flamejet(), VM_SV_te_gunshot(), VM_SV_te_gunshotquad(), VM_SV_te_knightspike(), VM_SV_te_lavasplash(), VM_SV_te_lightning1(), VM_SV_te_lightning2(), VM_SV_te_lightning3(), VM_SV_te_particlecube(), VM_SV_te_particlerain(), VM_SV_te_particlesnow(), VM_SV_te_plasmaburn(), VM_SV_te_smallflash(), VM_SV_te_spark(), VM_SV_te_spike(), VM_SV_te_spikequad(), VM_SV_te_superspike(), VM_SV_te_superspikequad(), VM_SV_te_tarexplosion(), VM_SV_te_teleport(), VM_SV_te_wizspike(), VM_SV_trailparticles(), and VM_SV_WriteByte().
Definition at line 122 of file com_msg.c.
References buf, and SZ_GetSpace().
Referenced by CL_KeepaliveMessage(), CL_Reconnect_f(), MSG_WriteString(), NetConn_ConnectionEstablished(), SV_SendClientDatagram(), SV_StartParticle(), SV_StartSound(), SV_WriteClientdataToMessage(), VM_M_WriteChar(), VM_sprint(), VM_SV_centerprint(), VM_SV_lightstyle(), VM_SV_sprint(), VM_SV_te_blood(), VM_SV_te_spark(), and VM_SV_WriteChar().
void MSG_WriteCoord | ( | sizebuf_t * | sb, |
float | f, | ||
protocolversion_t | protocol ) |
Definition at line 202 of file com_msg.c.
References f, MSG_WriteCoord13i(), MSG_WriteCoord16i(), MSG_WriteCoord32f(), PROTOCOL_DARKPLACES1, PROTOCOL_DARKPLACES2, PROTOCOL_DARKPLACES3, PROTOCOL_DARKPLACES4, PROTOCOL_NEHAHRABJP, PROTOCOL_NEHAHRABJP2, PROTOCOL_NEHAHRABJP3, PROTOCOL_NEHAHRAMOVIE, PROTOCOL_QUAKE, PROTOCOL_QUAKEDP, and PROTOCOL_QUAKEWORLD.
Referenced by EntityFrameQuake_WriteFrame(), MSG_WriteVector(), SV_CreateBaseline(), SV_StartEffect(), SV_StartParticle(), SV_StartPointSound(), SV_StartSound(), SV_WriteClientdataToMessage(), VM_M_WriteCoord(), VM_SV_makestatic(), VM_SV_te_beam(), VM_SV_te_blood(), VM_SV_te_bloodshower(), VM_SV_te_customflash(), VM_SV_te_explosion(), VM_SV_te_explosion2(), VM_SV_te_explosionquad(), VM_SV_te_explosionrgb(), VM_SV_te_flamejet(), VM_SV_te_gunshot(), VM_SV_te_gunshotquad(), VM_SV_te_knightspike(), VM_SV_te_lavasplash(), VM_SV_te_lightning1(), VM_SV_te_lightning2(), VM_SV_te_lightning3(), VM_SV_te_particlecube(), VM_SV_te_particlerain(), VM_SV_te_particlesnow(), VM_SV_te_plasmaburn(), VM_SV_te_smallflash(), VM_SV_te_spark(), VM_SV_te_spike(), VM_SV_te_spikequad(), VM_SV_te_superspike(), VM_SV_te_superspikequad(), VM_SV_te_tarexplosion(), VM_SV_te_teleport(), VM_SV_te_wizspike(), and VM_SV_WriteCoord().
Definition at line 187 of file com_msg.c.
References f, MSG_WriteShort(), and Q_rint.
Referenced by EntityState5_WriteUpdate(), and MSG_WriteCoord().
Definition at line 192 of file com_msg.c.
References f, MSG_WriteShort(), and Q_rint.
Referenced by CL_SendMove(), EntityState_WriteFields(), MSG_WriteCoord(), and SV_WriteClientdataToMessage().
Definition at line 197 of file com_msg.c.
References f, and MSG_WriteFloat().
Referenced by EntityState5_WriteUpdate(), EntityState_WriteFields(), MSG_WriteCoord(), and SV_WriteClientdataToMessage().
Definition at line 158 of file com_msg.c.
References f, LittleLong, and SZ_Write().
Referenced by CL_SendMove(), EntityFrame_WriteFrame(), EntityFrameQuake_WriteFrame(), MSG_WriteAngle32f(), MSG_WriteCoord32f(), SV_SendClientDatagram(), and SV_Spawn_f().
Definition at line 147 of file com_msg.c.
References buf, and SZ_GetSpace().
Referenced by CL_PQRcon_f(), CL_SendMove(), EntityFrame4_WriteFrame(), EntityFrame5_WriteFrame(), EntityFrame_WriteFrame(), EntityState5_WriteUpdate(), MakeDownloadPacket(), NetConn_ClientFrame(), NetConn_ServerParsePacket(), Protocol_WriteStatsReliable(), SCR_CaptureVideo_RIFF_IndexEntry(), SCR_CaptureVideo_RIFF_Write32(), SV_SendClientDatagram(), SV_SendServerinfo(), SV_Spawn_f(), SV_WriteClientdataToMessage(), VM_M_WriteLong(), and VM_SV_WriteLong().
Definition at line 138 of file com_msg.c.
References buf, and SZ_GetSpace().
Referenced by CL_SendMove(), EntityFrame4_WriteFrame(), EntityFrame5_WriteFrame(), EntityFrame_WriteFrame(), EntityFrameCSQC_WriteFrame(), EntityFrameQuake_WriteFrame(), EntityState5_WriteUpdate(), EntityState_WriteFields(), EntityState_WriteUpdate(), MakeDownloadPacket(), MSG_WriteAngle16i(), MSG_WriteCoord13i(), MSG_WriteCoord16i(), QW_CL_NextUpload_f(), QW_MSG_WriteDeltaUsercmd(), SCR_CaptureVideo_RIFF_Write16(), SV_CreateBaseline(), SV_DropClient(), SV_ModelIndex(), SV_Pings_f(), SV_SendClientDatagram(), SV_SendServerinfo(), SV_SoundIndex(), SV_Spawn_f(), SV_StartEffect(), SV_StartPointSound(), SV_StartSound(), SV_UpdateToReliableMessages(), SV_WriteClientdataToMessage(), VM_M_WriteEntity(), VM_M_WriteShort(), VM_SV_ambientsound(), VM_SV_makestatic(), VM_SV_pointparticles(), VM_SV_te_beam(), VM_SV_te_bloodshower(), VM_SV_te_lightning1(), VM_SV_te_lightning2(), VM_SV_te_lightning3(), VM_SV_te_particlecube(), VM_SV_te_particlerain(), VM_SV_te_particlesnow(), VM_SV_trailparticles(), VM_SV_WriteEntity(), VM_SV_WritePicture(), and VM_SV_WriteShort().
Definition at line 173 of file com_msg.c.
References MSG_WriteChar(), strlen(), and SZ_Write().
Referenced by CL_DisconnectEx(), CL_ParseServerInfo(), CL_PQRcon_f(), CL_Reconnect_f(), CL_SendPlayerInfo(), CL_SetInfo(), CL_SignonReply(), Cvar_SetQuick_Internal(), MakeDownloadPacket(), NetConn_ClientFrame(), NetConn_ServerParsePacket(), QW_CL_CheckOrDownloadFile(), QW_CL_ParseDownload(), QW_CL_ParseModelList(), QW_CL_ParseSoundList(), QW_CL_RequestNextDownload(), Sbar_DeathmatchOverlay(), SCR_CaptureVideo_RIFF_WriteTerminatedString(), SV_BroadcastPrint(), SV_ClientCommands(), SV_ClientPrint(), SV_DropClient(), SV_ModelIndex(), SV_Name(), SV_Pings_f(), SV_SendServerinfo(), SV_SoundIndex(), SV_Spawn_f(), SV_SpawnServer(), SV_WriteNetnameIntoDemo(), VM_M_WriteString(), VM_sprint(), VM_SV_centerprint(), VM_SV_lightstyle(), VM_SV_sprint(), VM_SV_WritePicture(), and VM_SV_WriteString().
Definition at line 181 of file com_msg.c.
References strlen(), and SZ_Write().
Referenced by NetConn_ServerParsePacket(), SCR_CaptureVideo_RIFF_IndexEntry(), SCR_CaptureVideo_RIFF_WriteFourCC(), SV_Pings_f(), SV_WriteNetnameIntoDemo(), and VM_SV_WriteUnterminatedString().
void MSG_WriteVector | ( | sizebuf_t * | sb, |
const vec3_t | v, | ||
protocolversion_t | protocol ) |
Definition at line 214 of file com_msg.c.
References MSG_WriteCoord(), and v.
Referenced by VM_SV_ambientsound(), VM_SV_pointparticles(), and VM_SV_trailparticles().
Encode a big endian 32bit int to the given buffer
.
Definition at line 81 of file com_msg.c.
Referenced by CL_PQRcon_f(), Con_Rcon_Redirect_Flush(), NetConn_ClientFrame(), NetConn_ReceivedMessage(), NetConn_SendUnreliableMessage(), and NetConn_ServerParsePacket().
void StoreBigShort | ( | unsigned char * | buffer, |
unsigned short | i ) |
Encode a little endian 32bit int to the given buffer
.
Definition at line 95 of file com_msg.c.
Referenced by NetConn_SendUnreliableMessage(), and R_SaveTextureDDSFile().