123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910 |
- memzone_t* mainzone;
- idFile * wadFileHandles[MAXWADFILES];
- int numWadFiles;
- int cheating ;
- int grid ;
- int leveljuststarted ;
- qboolean automapactive ;
- int finit_width ;
- int finit_height ;
- int f_x;
- int f_y;
- int f_w;
- int f_h;
- int lightlev;
- byte* fb;
- int amclock;
- mpoint_t m_paninc;
- fixed_t mtof_zoommul;
- fixed_t ftom_zoommul;
- fixed_t m_x, m_y;
- fixed_t m_x2, m_y2;
- fixed_t m_w;
- fixed_t m_h;
- fixed_t min_x;
- fixed_t min_y;
- fixed_t max_x;
- fixed_t max_y;
- fixed_t max_w;
- fixed_t max_h;
- fixed_t min_w;
- fixed_t min_h;
- fixed_t min_scale_mtof;
- fixed_t max_scale_mtof;
- fixed_t old_m_w, old_m_h;
- fixed_t old_m_x, old_m_y;
- mpoint_t f_oldloc;
- fixed_t scale_mtof ;
- fixed_t scale_ftom;
- player_t *amap_plr;
- patch_t *marknums[10];
- mpoint_t markpoints[AM_NUMMARKPOINTS];
- int markpointnum ;
- int followplayer ;
- qboolean stopped ;
- int lastlevel ;
- int lastepisode ;
- int cheatstate;
- int bigstate;
- char buffer[20];
- int nexttic ;
- int litelevelscnt ;
- fixed_t realoffset;
- fixed_t viewxoffset;
- fixed_t viewyoffset;
- GameMode_t gamemode ;
- int gamemission ;
- Language_t language ;
- qboolean modifiedgame;
- qboolean devparm;
- qboolean nomonsters;
- qboolean respawnparm;
- qboolean fastparm;
- qboolean drone;
- qboolean singletics ;
- skill_t startskill;
- int startepisode;
- int startmap;
- qboolean autostart;
- FILE* debugfile;
- qboolean advancedemo;
- char wadfile[1024];
- char mapdir[1024];
- char basedefault[1024];
- event_t events[MAXEVENTS];
- int eventhead;
- int eventtail;
- gamestate_t wipegamestate ;
- qboolean viewactivestate ;
- qboolean menuactivestate ;
- qboolean inhelpscreensstate ;
- qboolean fullscreen ;
- int borderdrawcount;
- qboolean wipe ;
- int wipestart;
- qboolean wipedone;
- int demosequence;
- int pagetic;
- char *pagename;
- char title[128];
- doomcom_t doomcom;
- doomdata_t* netbuffer;
- ticcmd_t localcmds[BACKUPTICS];
- ticcmd_t netcmds[MAXPLAYERS][BACKUPTICS];
- int nettics[MAXNETNODES];
- qboolean nodeingame[MAXNETNODES];
- qboolean remoteresend[MAXNETNODES];
- int resendto[MAXNETNODES];
- int resendcount[MAXNETNODES];
- int nodeforplayer[MAXPLAYERS];
- int maketic;
- int lastnettic;
- int skiptics;
- int ticdup;
- int maxsend;
- qboolean reboundpacket;
- doomdata_t reboundstore;
- char exitmsg[80];
- int gametime;
- qboolean gotinfo[MAXNETNODES];
- int frametics[4];
- int frameon;
- int frameskip[4];
- int oldnettics;
- int oldtrt_entertics;
- int trt_phase ;
- int trt_lowtic;
- int trt_entertic;
- int trt_realtics;
- int trt_availabletics;
- int trt_counts;
- int trt_numplaying;
- int finalestage;
- int finalecount;
- int castnum;
- int casttics;
- state_t* caststate;
- qboolean castdeath;
- int castframes;
- int castonmelee;
- int caststartmenu;
- qboolean castattacking;
- int laststage;
- qboolean go ;
- byte* wipe_scr_start;
- byte* wipe_scr_end;
- byte* wipe_scr;
- void *g_tempPointer;
- int* wipe_y;
- gameaction_t gameaction;
- gamestate_t gamestate;
- gamestate_t oldgamestate;
- skill_t gameskill;
- qboolean respawnmonsters;
- int gameepisode;
- int gamemap;
- qboolean paused;
- qboolean sendpause;
- qboolean sendsave;
- qboolean usergame;
- qboolean timingdemo;
- qboolean nodrawers;
- qboolean noblit;
- int starttime;
- qboolean viewactive;
- qboolean deathmatch;
- qboolean netgame;
- qboolean playeringame[MAXPLAYERS];
- player_t players[MAXPLAYERS];
- int consoleplayer;
- int displayplayer;
- int gametic;
- int levelstarttic;
- int totalkills, totalitems, totalsecret;
- char demoname[32];
- qboolean demoplayback;
- qboolean demorecording;
- qboolean netdemo;
- byte* demobuffer;
- byte* demo_p;
- byte* demoend;
- qboolean singledemo;
- qboolean precache ;
- wbstartstruct_t wminfo;
- short consistancy[MAXPLAYERS][BACKUPTICS];
- byte* savebuffer;
- int savebufferSize;
- int key_right;
- int key_left;
- int key_up;
- int key_down;
- int key_strafeleft;
- int key_straferight;
- int key_fire;
- int key_use;
- int key_strafe;
- int key_speed;
- int mousebfire;
- int mousebstrafe;
- int mousebforward;
- int joybfire;
- int joybstrafe;
- int joybuse;
- int joybspeed;
- fixed_t forwardmove[2];
- fixed_t sidemove[2];
- fixed_t angleturn[3];
- qboolean gamekeydown[NUMKEYS];
- int turnheld;
- qboolean mousearray[4];
- qboolean* mousebuttons ;
- int mousex;
- int mousey;
- int dclicktime;
- int dclickstate;
- int dclicks;
- int dclicktime2;
- int dclickstate2;
- int dclicks2;
- int joyxmove;
- int joyymove;
- qboolean joyarray[5];
- qboolean* joybuttons ;
- int savegameslot;
- char savedescription[32];
- mobj_t* bodyque[BODYQUESIZE];
- int bodyqueslot;
- char turbomessage[80];
- qboolean secretexit;
- char savename[256];
- skill_t d_skill;
- int d_episode;
- int d_map;
- int d_mission;
- char* defdemoname;
- qboolean lastautomapactive ;
- char chat_char;
- player_t* plr;
- patch_t* hu_font[HU_FONTSIZE];
- hu_textline_t w_title;
- qboolean chat_on;
- hu_itext_t w_chat;
- qboolean always_off ;
- char chat_dest[MAXPLAYERS];
- hu_itext_t w_inputbuffer[MAXPLAYERS];
- qboolean message_on;
- qboolean message_dontfuckwithme;
- qboolean message_nottobefuckedwith;
- hu_stext_t w_message;
- int message_counter;
- qboolean headsupactive ;
- char chatchars[QUEUESIZE];
- int head ;
- int tail ;
- char lastmessage[HU_MAXLINELENGTH+1];
- qboolean shiftdown ;
- qboolean altdown ;
- int num_nobrainers ;
- InputEvent mouseEvents[2];
- InputEvent joyEvents[18];
- int sendsocket;
- int insocket;
- struct sockaddr_in sendaddress[MAXNETNODES];
- int mb_used ;
- ticcmd_t emptycmd;
- int current_time ;
- unsigned int XColorMap[256];
- unsigned int *ImageBuff;
- unsigned int *ImageBuffs[2];
- int myargc;
- char** myargv;
- int firsttime ;
- unsigned char cheat_xlate_table[256];
- unsigned char cheatbuffer[256];
- int usedcheatbuffer ;
- int mouseSensitivity;
- int showMessages;
- int detailLevel;
- int screenblocks;
- int screenSize;
- int quickSaveSlot;
- int messageToPrint;
- char* messageString;
- int messx;
- int messy;
- int messageLastMenuActive;
- qboolean messageNeedsInput;
- messageRoutine_t messageRoutine;
- int saveStringEnter;
- int saveSlot;
- int saveCharIndex;
- char saveOldString[SAVESTRINGSIZE];
- qboolean inhelpscreens;
- qboolean menuactive;
- char savegamestrings[10][SAVESTRINGSIZE];
- char savegamepaths[10][MAX_PATH];
- char endstring[160];
- short itemOn;
- short skullAnimCounter;
- short whichSkull;
- menu_t* currentMenu;
- menuitem_t MainMenu[5];
- menu_t QuitDef;
- menuitem_t QuitMenu[3];
- menu_t MainDef;
- menuitem_t EpisodeMenu[4];
- menu_t EpiDef;
- menuitem_t ExpansionMenu[2];
- menu_t ExpDef;
- menuitem_t NewGameMenu[5];
- menu_t NewDef;
- menuitem_t OptionsMenu[8];
- menu_t OptionsDef;
- menuitem_t SoundMenu[4];
- menu_t SoundDef;
- menuitem_t LoadMenu[6];
- menu_t LoadDef;
- menuitem_t LoadExpMenu[2];
- menu_t LoadExpDef;
- menuitem_t SaveMenu[6];
- menu_t SaveDef;
- char tempstring[80];
- int epi;
- int exp;
- int quitsounds[8];
- int quitsounds2[8];
- int joywait ;
- int mousewait ;
- int mmenu_mousey ;
- int lasty ;
- int mmenu_mousex ;
- int lastx ;
- short md_x;
- short md_y;
- const char * g_pszSaveFile ;
- const char * g_pszImagePath ;
- const char * g_pszImageMeta ;
- int usemouse;
- int usejoystick;
- char* mousetype;
- char* mousedev;
- default_t defaults[35];
- int numdefaults;
- const char* defaultfile;
- int rndindex ;
- int prndindex ;
- ceiling_t* activeceilings[MAXCEILINGS];
- mobj_t* soundtarget;
- int TRACEANGLE ;
- mobj_t* corpsehit;
- mobj_t* vileobj;
- fixed_t viletryx;
- fixed_t viletryy;
- mobj_t* braintargets[32];
- int numbraintargets;
- int braintargeton;
- int easy ;
- fixed_t tmbbox[4];
- mobj_t* tmthing;
- int tmflags;
- fixed_t tmx;
- fixed_t tmy;
- qboolean floatok;
- fixed_t tmfloorz;
- fixed_t tmceilingz;
- fixed_t tmdropoffz;
- line_t* ceilingline;
- line_t* spechit[MAXSPECIALCROSS];
- int numspechit;
- fixed_t bestslidefrac;
- fixed_t secondslidefrac;
- line_t* bestslideline;
- line_t* secondslideline;
- mobj_t* slidemo;
- fixed_t tmxmove;
- fixed_t tmymove;
- mobj_t* linetarget;
- mobj_t* shootthing;
- fixed_t shootz;
- int la_damage;
- fixed_t attackrange;
- fixed_t aimslope;
- mobj_t* usething;
- mobj_t* bombsource;
- mobj_t* bombspot;
- int bombdamage;
- qboolean crushchange;
- qboolean nofit;
- fixed_t opentop;
- fixed_t openbottom;
- fixed_t openrange;
- fixed_t lowfloor;
- intercept_t intercepts[MAXINTERCEPTS];
- intercept_t* intercept_p;
- divline_t trace;
- qboolean earlyout;
- int ptflags;
- int test;
- mapthing_t itemrespawnque[ITEMQUESIZE];
- int itemrespawntime[ITEMQUESIZE];
- int iquehead;
- int iquetail;
- plat_t* activeplats[MAXPLATS];
- fixed_t swingx;
- fixed_t swingy;
- fixed_t bulletslope;
- byte* save_p;
- int numvertexes;
- vertex_t* vertexes;
- int numsegs;
- seg_t* segs;
- int numsectors;
- sector_t* sectors;
- int numsubsectors;
- subsector_t* subsectors;
- int numnodes;
- node_t* nodes;
- int numlines;
- line_t* lines;
- int numsides;
- side_t* sides;
- int bmapwidth;
- int bmapheight;
- short* blockmap;
- short* blockmaplump;
- fixed_t bmaporgx;
- fixed_t bmaporgy;
- mobj_t** blocklinks;
- mapthing_t deathmatchstarts[MAX_DEATHMATCH_STARTS];
- mapthing_t* deathmatch_p;
- mapthing_t playerstarts[MAXPLAYERS];
- fixed_t sightzstart;
- fixed_t topslope;
- fixed_t bottomslope;
- divline_t strace;
- fixed_t t2x;
- fixed_t t2y;
- int sightcounts[2];
- anim_t2 anims[MAXANIMS];
- anim_t2* lastanim;
- qboolean levelTimer;
- int levelTimeCount;
- int levelFragCount;
- short numlinespecials;
- line_t* linespeciallist[MAXLINEANIMS];
- int switchlist[MAXSWITCHES * 2];
- int numswitches;
- button_t buttonlist[MAXBUTTONS];
- int leveltime;
- thinker_t thinkercap;
- qboolean onground;
- seg_t* curline;
- side_t* sidedef;
- line_t* linedef;
- sector_t* frontsector;
- sector_t* backsector;
- drawseg_t drawsegs[MAXDRAWSEGS];
- drawseg_t* ds_p;
- cliprange_t* newend;
- cliprange_t solidsegs[MAXSEGS];
- int checkcoord[12][4];
- int firstflat;
- int lastflat;
- int numflats;
- int firstpatch;
- int lastpatch;
- int numpatches;
- int firstspritelump;
- int lastspritelump;
- int numspritelumps;
- int* flattranslation;
- int* texturetranslation;
- fixed_t* spritewidth;
- fixed_t* spriteoffset;
- fixed_t* spritetopoffset;
- lighttable_t *colormaps;
- int flatmemory;
- int texturememory;
- int spritememory;
- byte* viewimage;
- int viewwidth;
- int scaledviewwidth;
- int viewheight;
- int viewwindowx;
- int viewwindowy;
- byte* ylookup[MAXHEIGHT];
- int columnofs[MAXWIDTH];
- byte translations[3][256];
- lighttable_t* dc_colormap;
- int dc_x;
- int dc_yl;
- int dc_yh;
- fixed_t dc_iscale;
- fixed_t dc_texturemid;
- byte* dc_source;
- int dccount;
- int fuzzoffset[FUZZTABLE];
- int fuzzpos ;
- byte* dc_translation;
- byte* translationtables;
- int ds_y;
- int ds_x1;
- int ds_x2;
- lighttable_t* ds_colormap;
- fixed_t ds_xfrac;
- fixed_t ds_yfrac;
- fixed_t ds_xstep;
- fixed_t ds_ystep;
- byte* ds_source;
- int dscount;
- int viewangleoffset;
- int validcount ;
- lighttable_t* fixedcolormap;
- int centerx;
- int centery;
- fixed_t centerxfrac;
- fixed_t centeryfrac;
- fixed_t projection;
- int framecount;
- int sscount;
- int linecount;
- int loopcount;
- fixed_t viewx;
- fixed_t viewy;
- fixed_t viewz;
- angle_t viewangle;
- fixed_t viewcos;
- fixed_t viewsin;
- player_t* viewplayer;
- int detailshift;
- angle_t clipangle;
- int viewangletox[FINEANGLES/2];
- angle_t xtoviewangle[SCREENWIDTH+1];
- lighttable_t* scalelight[LIGHTLEVELS][MAXLIGHTSCALE];
- lighttable_t* scalelightfixed[MAXLIGHTSCALE];
- lighttable_t* zlight[LIGHTLEVELS][MAXLIGHTZ];
- int extralight;
- qboolean setsizeneeded;
- int setblocks;
- int setdetail;
- planefunction_t floorfunc;
- planefunction_t ceilingfunc;
- short openings[MAXOPENINGS];
- short* lastopening;
- short floorclip[SCREENWIDTH];
- short ceilingclip[SCREENWIDTH];
- int spanstart[SCREENHEIGHT];
- int spanstop[SCREENHEIGHT];
- lighttable_t** planezlight;
- fixed_t planeheight;
- fixed_t yslope[SCREENHEIGHT];
- fixed_t distscale[SCREENWIDTH];
- fixed_t basexscale;
- fixed_t baseyscale;
- fixed_t cachedheight[SCREENHEIGHT];
- fixed_t cacheddistance[SCREENHEIGHT];
- fixed_t cachedxstep[SCREENHEIGHT];
- fixed_t cachedystep[SCREENHEIGHT];
- qboolean segtextured;
- qboolean markfloor;
- qboolean markceiling;
- qboolean maskedtexture;
- int toptexture;
- int bottomtexture;
- int midtexture;
- angle_t rw_normalangle;
- int rw_angle1;
- int rw_x;
- int rw_stopx;
- angle_t rw_centerangle;
- fixed_t rw_offset;
- fixed_t rw_distance;
- fixed_t rw_scale;
- fixed_t rw_scalestep;
- fixed_t rw_midtexturemid;
- fixed_t rw_toptexturemid;
- fixed_t rw_bottomtexturemid;
- int worldtop;
- int worldbottom;
- int worldhigh;
- int worldlow;
- fixed_t pixhigh;
- fixed_t pixlow;
- fixed_t pixhighstep;
- fixed_t pixlowstep;
- fixed_t topfrac;
- fixed_t topstep;
- fixed_t bottomfrac;
- fixed_t bottomstep;
- lighttable_t** walllights;
- short* maskedtexturecol;
- int skyflatnum;
- int skytexture;
- int skytexturemid;
- fixed_t pspritescale;
- fixed_t pspriteiscale;
- lighttable_t** spritelights;
- short negonearray[SCREENWIDTH];
- short screenheightarray[SCREENWIDTH];
- spritedef_t* sprites;
- int numsprites;
- spriteframe_t sprtemp[29];
- int maxframe;
- vissprite_t vissprites[MAXVISSPRITES];
- vissprite_t* vissprite_p;
- int newvissprite;
- vissprite_t overflowsprite;
- short* mfloorclip;
- short* mceilingclip;
- fixed_t spryscale;
- fixed_t sprtopscreen;
- vissprite_t vsprsortedhead;
- musicinfo_t S_music[80];
- patch_t* sttminus;
- player_t* plyr;
- qboolean st_firsttime;
- int veryfirsttime ;
- int lu_palette;
- unsigned int st_clock;
- int st_msgcounter;
- st_chatstateenum_t st_chatstate;
- st_stateenum_t st_gamestate;
- qboolean st_statusbaron;
- qboolean st_chat;
- qboolean st_oldchat;
- qboolean st_cursoron;
- qboolean st_notdeathmatch;
- qboolean st_armson;
- qboolean st_fragson;
- patch_t* sbar;
- patch_t* tallnum[10];
- patch_t* tallpercent;
- patch_t* shortnum[10];
- patch_t* keys[NUMCARDS];
- patch_t* faces[ST_NUMFACES];
- patch_t* faceback;
- patch_t* armsbg;
- patch_t* arms[6][2];
- st_number_t w_ready;
- st_number_t w_frags;
- st_percent_t w_health;
- st_binicon_t w_armsbg;
- st_multicon_t w_arms[6];
- st_multicon_t w_faces;
- st_multicon_t w_keyboxes[3];
- st_percent_t w_armor;
- st_number_t w_ammo[4];
- st_number_t w_maxammo[4];
- int st_fragscount;
- int st_oldhealth ;
- qboolean oldweaponsowned[NUMWEAPONS];
- int st_facecount ;
- int st_faceindex ;
- int keyboxes[3];
- int st_randomnumber;
- cheatseq_t cheat_powerup[7];
- int lastcalc;
- int oldhealth ;
- int lastattackdown ;
- int priority ;
- int largeammo ;
- int st_palette ;
- qboolean st_stopped ;
- channel_t* channels;
- qboolean mus_paused;
- qboolean mus_looping;
- musicinfo_t* mus_playing;
- int numChannels;
- int nextcleanup;
- byte* screens[5];
- int dirtybox[4];
- int usegamma;
- anim_t epsd0animinfo[10];
- anim_t epsd1animinfo[9];
- anim_t epsd2animinfo[6];
- anim_t* wi_stuff_anims[NUMEPISODES];
- int NUMANIMS[NUMEPISODES];
- const char* chat_macros[10];
- int acceleratestage;
- int me;
- stateenum_t state;
- wbstartstruct_t* wbs;
- int cnt;
- int bcnt;
- int firstrefresh;
- int cnt_kills[MAXPLAYERS];
- int cnt_items[MAXPLAYERS];
- int cnt_secret[MAXPLAYERS];
- int cnt_time;
- int cnt_par;
- int cnt_pause;
- int NUMCMAPS;
- patch_t* colon;
- qboolean snl_pointeron ;
- int dm_state;
- int dm_frags[MAXPLAYERS][MAXPLAYERS];
- int dm_totals[MAXPLAYERS];
- int cnt_frags[MAXPLAYERS];
- int dofrags;
- int ng_state;
- int sp_state;
- int reloadlump;
- int sizes[NUM_ZONES+1];
- memzone_t* zones[NUM_ZONES] ;
- int NumAlloc ;
- state_t states[NUMSTATES];
- byte* rejectmatrix;
- int s_numtextures;
- texture_t** s_textures;
- int* s_texturewidthmask;
- fixed_t* s_textureheight;
- short** s_texturecolumnlump;
- unsigned short** s_texturecolumnofs;
- byte** s_texturecomposite;
- int* s_texturecompositesize;
- visplane_t visplanes[MAXVISPLANES];
- visplane_t* lastvisplane;
- visplane_t* floorplane;
- visplane_t* ceilingplane;
- patch_t* bg;
- patch_t* yah[2];
- patch_t* splat;
- patch_t* percent;
- patch_t* num[10];
- patch_t* wiminus;
- patch_t* finished;
- patch_t* entering;
- patch_t* sp_secret;
-
- patch_t* kills;
- patch_t* secret;
- patch_t* items;
- patch_t* wistuff_frags;
- patch_t* time;
- patch_t* par;
- patch_t* sucks;
- patch_t* killers;
- patch_t* victims;
- patch_t* total;
- patch_t* star;
- patch_t* bstar;
- patch_t* wistuff_p[MAXPLAYERS];
- patch_t* wistuff_bp[MAXPLAYERS];
-
- patch_t** lnames;
- const char* spritename;
|