123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516 |
- typedef struct
- {
- char name[16];
- qboolean failedload;
- cache_user_t cache;
- } skin_t;
- typedef struct
- {
- int messagenum;
- double state_time;
-
- usercmd_t command;
- vec3_t origin;
- vec3_t viewangles;
- vec3_t velocity;
- int weaponframe;
- int modelindex;
- int frame;
- int skinnum;
- int effects;
- int flags;
- float waterjumptime;
- int onground;
- int oldbuttons;
- } player_state_t;
- #define MAX_SCOREBOARDNAME 16
- typedef struct player_info_s
- {
- int userid;
- char userinfo[MAX_INFO_STRING];
-
- char name[MAX_SCOREBOARDNAME];
- float entertime;
- int frags;
- int ping;
- byte pl;
-
- int topcolor;
- int bottomcolor;
- int _topcolor;
- int _bottomcolor;
- int spectator;
- byte translations[VID_GRADES*256];
- skin_t *skin;
- } player_info_t;
- typedef struct
- {
-
- usercmd_t cmd;
- double senttime;
- int delta_sequence;
-
- double receivedtime;
- player_state_t playerstate[MAX_CLIENTS];
-
- packet_entities_t packet_entities;
- qboolean invalid;
- } frame_t;
- typedef struct
- {
- int destcolor[3];
- int percent;
- } cshift_t;
- #define CSHIFT_CONTENTS 0
- #define CSHIFT_DAMAGE 1
- #define CSHIFT_BONUS 2
- #define CSHIFT_POWERUP 3
- #define NUM_CSHIFTS 4
- #define MAX_DLIGHTS 32
- typedef struct
- {
- int key;
- vec3_t origin;
- float radius;
- float die;
- float decay;
- float minlight;
- float color[4];
- } dlight_t;
- typedef struct
- {
- int length;
- char map[MAX_STYLESTRING];
- } lightstyle_t;
- #define MAX_EFRAGS 512
- #define MAX_DEMOS 8
- #define MAX_DEMONAME 16
- typedef enum {
- ca_disconnected,
- ca_demostart,
- ca_connected,
- ca_onserver,
- ca_active
- } cactive_t;
- typedef enum {
- dl_none,
- dl_model,
- dl_sound,
- dl_skin,
- dl_single
- } dltype_t;
- typedef struct
- {
- cactive_t state;
-
- netchan_t netchan;
- char userinfo[MAX_INFO_STRING];
- char servername[MAX_OSPATH];
- int qport;
- FILE *download;
- char downloadtempname[MAX_OSPATH];
- char downloadname[MAX_OSPATH];
- int downloadnumber;
- dltype_t downloadtype;
- int downloadpercent;
- int demonum;
- char demos[MAX_DEMOS][MAX_DEMONAME];
- qboolean demorecording;
- qboolean demoplayback;
- qboolean timedemo;
- FILE *demofile;
- float td_lastframe;
- int td_startframe;
- float td_starttime;
- int challenge;
- float latency;
- } client_static_t;
- extern client_static_t cls;
- typedef struct
- {
- int servercount;
- char serverinfo[MAX_SERVERINFO_STRING];
- int parsecount;
- int validsequence;
-
-
- int movemessages;
-
-
-
- int spectator;
- double last_ping_request;
- double last_servermessage;
- frame_t frames[UPDATE_BACKUP];
- int stats[MAX_CL_STATS];
- float item_gettime[32];
- float faceanimtime;
- cshift_t cshifts[NUM_CSHIFTS];
- cshift_t prev_cshifts[NUM_CSHIFTS];
- vec3_t viewangles;
- double time;
-
- vec3_t simorg;
- vec3_t simvel;
- vec3_t simangles;
- float pitchvel;
- qboolean nodrift;
- float driftmove;
- double laststop;
- float crouch;
- qboolean paused;
- float punchangle;
-
- int intermission;
- int completed_time;
-
- char model_name[MAX_MODELS][MAX_QPATH];
- char sound_name[MAX_SOUNDS][MAX_QPATH];
- struct model_s *model_precache[MAX_MODELS];
- struct sfx_s *sound_precache[MAX_SOUNDS];
- char levelname[40];
- int playernum;
- struct model_s *worldmodel;
- struct efrag_s *free_efrags;
- int num_entities;
- int num_statics;
- int cdtrack;
- entity_t viewent;
- player_info_t players[MAX_CLIENTS];
- } client_state_t;
- extern cvar_t cl_warncmd;
- extern cvar_t cl_upspeed;
- extern cvar_t cl_forwardspeed;
- extern cvar_t cl_backspeed;
- extern cvar_t cl_sidespeed;
- extern cvar_t cl_movespeedkey;
- extern cvar_t cl_yawspeed;
- extern cvar_t cl_pitchspeed;
- extern cvar_t cl_anglespeedkey;
- extern cvar_t cl_shownet;
- extern cvar_t cl_sbar;
- extern cvar_t cl_hudswap;
- extern cvar_t cl_pitchdriftspeed;
- extern cvar_t lookspring;
- extern cvar_t lookstrafe;
- extern cvar_t sensitivity;
- extern cvar_t m_pitch;
- extern cvar_t m_yaw;
- extern cvar_t m_forward;
- extern cvar_t m_side;
- extern cvar_t _windowed_mouse;
- extern cvar_t name;
- #define MAX_STATIC_ENTITIES 128
- extern client_state_t cl;
- extern entity_state_t cl_baselines[MAX_EDICTS];
- extern efrag_t cl_efrags[MAX_EFRAGS];
- extern entity_t cl_static_entities[MAX_STATIC_ENTITIES];
- extern lightstyle_t cl_lightstyle[MAX_LIGHTSTYLES];
- extern dlight_t cl_dlights[MAX_DLIGHTS];
- extern qboolean nomaster;
- extern float server_version;
- dlight_t *CL_AllocDlight (int key);
- void CL_DecayLights (void);
- void CL_Init (void);
- void Host_WriteConfiguration (void);
- void CL_EstablishConnection (char *host);
- void CL_Disconnect (void);
- void CL_Disconnect_f (void);
- void CL_NextDemo (void);
- qboolean CL_DemoBehind(void);
- void CL_BeginServerConnect(void);
- #define MAX_VISEDICTS 256
- extern int cl_numvisedicts, cl_oldnumvisedicts;
- extern entity_t *cl_visedicts, *cl_oldvisedicts;
- extern entity_t cl_visedicts_list[2][MAX_VISEDICTS];
- extern char emodel_name[], pmodel_name[], prespawn_name[], modellist_name[], soundlist_name[];
- typedef struct
- {
- int down[2];
- int state;
- } kbutton_t;
- extern kbutton_t in_mlook, in_klook;
- extern kbutton_t in_strafe;
- extern kbutton_t in_speed;
- void CL_InitInput (void);
- void CL_SendCmd (void);
- void CL_SendMove (usercmd_t *cmd);
- void CL_ParseTEnt (void);
- void CL_UpdateTEnts (void);
- void CL_ClearState (void);
- void CL_ReadPackets (void);
- int CL_ReadFromServer (void);
- void CL_WriteToServer (usercmd_t *cmd);
- void CL_BaseMove (usercmd_t *cmd);
- float CL_KeyState (kbutton_t *key);
- char *Key_KeynumToString (int keynum);
- void CL_StopPlayback (void);
- qboolean CL_GetMessage (void);
- void CL_WriteDemoCmd (usercmd_t *pcmd);
- void CL_Stop_f (void);
- void CL_Record_f (void);
- void CL_ReRecord_f (void);
- void CL_PlayDemo_f (void);
- void CL_TimeDemo_f (void);
- #define NET_TIMINGS 256
- #define NET_TIMINGSMASK 255
- extern int packet_latency[NET_TIMINGS];
- int CL_CalcNet (void);
- void CL_ParseServerMessage (void);
- void CL_NewTranslation (int slot);
- qboolean CL_CheckOrDownloadFile (char *filename);
- qboolean CL_IsUploading(void);
- void CL_NextUpload(void);
- void CL_StartUpload (byte *data, int size);
- void CL_StopUpload(void);
- void V_StartPitchDrift (void);
- void V_StopPitchDrift (void);
- void V_RenderView (void);
- void V_UpdatePalette (void);
- void V_Register (void);
- void V_ParseDamage (void);
- void V_SetContentsColor (int contents);
- void V_CalcBlend (void);
- void CL_InitTEnts (void);
- void CL_ClearTEnts (void);
- void CL_SetSolidPlayers (int playernum);
- void CL_SetUpPlayerPrediction(qboolean dopred);
- void CL_EmitEntities (void);
- void CL_ClearProjectiles (void);
- void CL_ParseProjectiles (void);
- void CL_ParsePacketEntities (qboolean delta);
- void CL_SetSolidEntities (void);
- void CL_ParsePlayerinfo (void);
- void CL_InitPrediction (void);
- void CL_PredictMove (void);
- void CL_PredictUsercmd (player_state_t *from, player_state_t *to, usercmd_t *u, qboolean spectator);
- #define CAM_NONE 0
- #define CAM_TRACK 1
- extern int autocam;
- extern int spec_track;
- qboolean Cam_DrawViewModel(void);
- qboolean Cam_DrawPlayer(int playernum);
- void Cam_Track(usercmd_t *cmd);
- void Cam_FinishMove(usercmd_t *cmd);
- void Cam_Reset(void);
- void CL_InitCam(void);
- typedef struct
- {
- char manufacturer;
- char version;
- char encoding;
- char bits_per_pixel;
- unsigned short xmin,ymin,xmax,ymax;
- unsigned short hres,vres;
- unsigned char palette[48];
- char reserved;
- char color_planes;
- unsigned short bytes_per_line;
- unsigned short palette_type;
- char filler[58];
- unsigned char data;
- } pcx_t;
- void Skin_Find (player_info_t *sc);
- byte *Skin_Cache (skin_t *skin);
- void Skin_Skins_f (void);
- void Skin_AllSkins_f (void);
- void Skin_NextDownload (void);
- #define RSSHOT_WIDTH 320
- #define RSSHOT_HEIGHT 200
|