icculus quake2 doxygen
1.0 dev
|
|
Go to the documentation of this file.
47 "svc_deltapacketentities",
55 if (strncmp(fn,
"players", 7) == 0)
75 if (strstr (filename,
".."))
77 Com_Printf (
"Refusing to download a path with ..\n");
83 while ((ptr=strchr(filename,
'\\'))) {
107 fp = fopen (
name,
"r+b");
110 fseek(fp, 0, SEEK_END);
150 if (strstr (filename,
".."))
152 Com_Printf (
"Refusing to download a path with ..\n");
218 Com_Printf (
"Server does not have this file.\n");
278 r = rename (oldn, newn);
353 Com_Printf(
"\n\n\35\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\37\n\n");
373 memset (&nullstate, 0,
sizeof(nullstate));
401 strncpy(ci->
name, s,
sizeof(ci->
name));
403 t = strstr (s,
"\\");
412 Com_sprintf (model_filename,
sizeof(model_filename),
"players/male/tris.md2");
413 Com_sprintf (weapon_filename,
sizeof(weapon_filename),
"players/male/weapon.md2");
414 Com_sprintf (skin_filename,
sizeof(skin_filename),
"players/male/grunt.pcx");
425 strcpy (model_name, s);
426 t = strstr(model_name,
"/");
428 t = strstr(model_name,
"\\");
434 strcpy (skin_name, s + strlen(model_name) + 1);
437 Com_sprintf (model_filename,
sizeof(model_filename),
"players/%s/tris.md2", model_name);
441 strcpy(model_name,
"male");
442 Com_sprintf (model_filename,
sizeof(model_filename),
"players/male/tris.md2");
447 Com_sprintf (skin_filename,
sizeof(skin_filename),
"players/%s/%s.pcx", model_name, skin_name);
455 strcpy(model_name,
"male");
456 Com_sprintf (model_filename,
sizeof(model_filename),
"players/male/tris.md2");
460 Com_sprintf (skin_filename,
sizeof(skin_filename),
"players/%s/%s.pcx", model_name, skin_name);
468 Com_sprintf (skin_filename,
sizeof(skin_filename),
"players/%s/grunt.pcx", model_name, skin_name);
476 if (!ci->
weaponmodel[
i] && strcmp(model_name,
"cyborg") == 0) {
538 olds[
sizeof(olds) - 1] = 0;
722 Com_Printf (
"Server disconnected, reconnecting\n");
struct image_s *(* RegisterSkin)(char *name)
void CL_ParseInventory(void)
void CL_ParseClientinfo(int player)
void CL_RegisterSounds(void)
qboolean CL_CheckOrDownloadFile(char *filename)
void CL_WriteDemoMessage(void)
int MSG_ReadShort(sizebuf_t *msg_read)
void CL_ParseDownload(void)
struct image_s *(* RegisterPic)(char *name)
int CL_ParseEntityBits(unsigned *bits)
just for protocol profiling
#define DEFAULT_SOUND_PACKET_VOLUME
void COM_StripExtension(char *in, char *out)
void CL_ParseStartSoundPacket(void)
void CL_RegisterTEntSounds(void)
void CL_ParseConfigString(void)
struct cmodel_s * model_clip[MAX_MODELS]
struct sfx_s * sound_precache[MAX_SOUNDS]
void FS_CreatePath(char *path)
void CL_RequestNextDownload(void)
clientinfo_t clientinfo[MAX_CLIENTS]
char * va(char *format,...)
void CDAudio_Play(int track, qboolean looping)
void SZ_Print(sizebuf_t *buf, char *data)
struct model_s * model_draw[MAX_MODELS]
sfx_t * S_RegisterSound(char *name)
void CL_ParseBaseline(void)
void S_EndRegistration(void)
void CL_ParseMuzzleFlash2(void)
void Sys_SendKeyEvents(void)
void SCR_PlayCinematic(char *arg)
int FS_LoadFile(char *path, void **buffer)
#define DEFAULT_SOUND_PACKET_ATTENUATION
void Cbuf_AddText(char *text)
int MSG_ReadByte(sizebuf_t *msg_read)
@ svc_deltapacketentities
void MSG_WriteString(sizebuf_t *sb, char *s)
void CL_ParseMuzzleFlash(void)
char cl_weaponmodels[MAX_CLIENTWEAPONMODELS][MAX_QPATH]
void MSG_WriteByte(sizebuf_t *sb, int c)
void Com_Error(int code, char *fmt,...)
void CL_ParseServerMessage(void)
struct model_s *(* RegisterModel)(char *name)
cmodel_t * CM_InlineModel(char *name)
int Q_stricmp(char *s1, char *s2)
#define MAX_CONFIGSTRINGS
struct image_s * image_precache[MAX_IMAGES]
void CL_ParseServerData(void)
struct model_s * weaponmodel[MAX_CLIENTWEAPONMODELS]
void S_BeginRegistration(void)
int MSG_ReadLong(sizebuf_t *msg_read)
char * MSG_ReadString(sizebuf_t *msg_read)
void CL_AddNetgraph(void)
int Com_ServerState(void)
void SCR_CenterPrint(char *str)
char configstrings[MAX_CONFIGSTRINGS][MAX_QPATH]
cvar_t * Cvar_Set(char *var_name, char *value)
void Com_DPrintf(char *fmt,...)
void MSG_ReadPos(sizebuf_t *msg_read, vec3_t pos)
char downloadname[MAX_OSPATH]
void S_StartLocalSound(char *sound)
void Com_Printf(char *fmt,...)
void CL_SetLightstyle(int i)
void CL_LoadClientinfo(clientinfo_t *ci, char *s)
char downloadtempname[MAX_OSPATH]
centity_t cl_entities[MAX_EDICTS]
void CL_DownloadFileName(char *dest, int destlen, char *fn)
void CL_ParseDelta(entity_state_t *from, entity_state_t *to, int number, int bits)
void Com_sprintf(char *dest, int size, char *fmt,...)
void S_StartSound(vec3_t origin, int entnum, int entchannel, sfx_t *sfx, float fvol, float attenuation, float timeofs)