📄 duke3d.h
字号:
};
extern struct animwalltype animwall[MAXANIMWALLS];
extern short numanimwalls,probey,lastprobey;
extern char *mymembuf;
extern char typebuflen,typebuf[41];
extern char MusicPtr[72000];
extern long msx[2048],msy[2048];
extern short cyclers[MAXCYCLERS][6],numcyclers;
extern char myname[32];
typedef struct user_defs
{
char god,warp_on,cashman,eog,showallmap;
char show_help,scrollmode,clipping;
char user_name[MAXPLAYERS][32];
char ridecule[10][40];
char savegame[10][22];
char pwlockout[128],rtsname[128];
char overhead_on,last_overhead,showweapons;
short pause_on,from_bonus;
short camerasprite,last_camsprite;
short last_level,secretlevel;
long const_visibility,uw_framerate;
long camera_time,folfvel,folavel,folx,foly,fola;
long reccnt;
int32 entered_name,screen_tilting,shadows,fta_on,executions,auto_run;
int32 coords,tickrate,m_coop,coop,screen_size,lockout,crosshair;
int32 wchoice[MAXPLAYERS][MAX_WEAPONS],playerai;
int32 respawn_monsters,respawn_items,respawn_inventory,recstat,monsters_off,brightness;
int32 m_respawn_items,m_respawn_monsters,m_respawn_inventory,m_recstat,m_monsters_off,detail;
int32 m_ffire,ffire,m_player_skill,m_level_number,m_volume_number,multimode;
int32 player_skill,level_number,volume_number,m_marker,marker,mouseflip;
};
typedef struct player_orig
{
long ox,oy,oz;
short oa,os;
};
extern char numplayersprites;
extern char picsiz[MAXTILES];
void add_ammo( short, short, short, short );
extern long fricxv,fricyv;
typedef struct player_struct
{
long zoom,exitx,exity,loogiex[64],loogiey[64],numloogs,loogcnt;
long posx, posy, posz, horiz, ohoriz, ohorizoff, invdisptime;
long bobposx,bobposy,oposx,oposy,oposz,pyoff,opyoff;
long posxv,posyv,poszv,last_pissed_time,truefz,truecz;
long player_par,visibility;
long bobcounter,weapon_sway;
long pals_time,randomflamex,crack_time;
int32 aim_mode;
short ang,oang,angvel,cursectnum,look_ang,last_extra,subweapon;
short ammo_amount[MAX_WEAPONS],wackedbyactor,frag,fraggedself;
short curr_weapon, last_weapon, tipincs, horizoff, wantweaponfire;
short holoduke_amount,newowner,hurt_delay,hbomb_hold_delay;
short jumping_counter,airleft,knee_incs,access_incs;
short fta,ftq,access_wallnum,access_spritenum;
short kickback_pic,got_access,weapon_ang,firstaid_amount;
short somethingonplayer,on_crane,i,one_parallax_sectnum;
short over_shoulder_on,random_club_frame,fist_incs;
short one_eighty_count,cheat_phase;
short dummyplayersprite,extra_extra8,quick_kick;
short heat_amount,actorsqu,timebeforeexit,customexitsound;
short weaprecs[16],weapreccnt,interface_toggle_flag;
short rotscrnang,dead_flag,show_empty_weapon;
short scuba_amount,jetpack_amount,steroids_amount,shield_amount;
short holoduke_on,pycount,weapon_pos,frag_ps;
short transporter_hold,last_full_weapon,footprintshade,boot_amount;
int scream_voice;
char gm,on_warping_sector,footprintcount;
char hbomb_on,jumping_toggle,rapid_fire_hold,on_ground;
char name[32],inven_icon,buttonpalette;
char jetpack_on,spritebridge,lastrandomspot;
char scuba_on,footprintpal,heat_on;
char holster_weapon,falling_counter;
char gotweapon[MAX_WEAPONS],refresh_inventory,*palette;
char toggle_key_flag,knuckle_incs; // ,select_dir;
char walking_snd_toggle, palookup, hard_landing;
char max_secret_rooms,secret_rooms,/*fire_flag,*/pals[3];
char max_actors_killed,actors_killed,return_to_center;
};
extern unsigned char tempbuf[2048], packbuf[576];
extern long gc,max_player_health,max_armour_amount,max_ammo_amount[MAX_WEAPONS];
extern long impact_damage,respawnactortime,respawnitemtime;
#define MOVFIFOSIZ 256
extern short spriteq[1024],spriteqloc,spriteqamount;
extern struct player_struct ps[MAXPLAYERS];
extern struct player_orig po[MAXPLAYERS];
extern struct user_defs ud;
extern short int moustat;
extern short int global_random;
extern long scaredfallz;
extern char buf[80]; //My own generic input buffer
extern char fta_quotes[NUMOFFIRSTTIMEACTIVE][64];
extern char scantoasc[128],ready2send;
extern char scantoascwithshift[128];
extern fx_device device;
extern SAMPLE Sound[ NUM_SOUNDS ];
extern int32 VoiceToggle,AmbienceToggle;
extern SOUNDOWNER SoundOwner[NUM_SOUNDS][4];
extern char playerreadyflag[MAXPLAYERS],playerquitflag[MAXPLAYERS];
extern char sounds[NUM_SOUNDS][14];
extern long script[MAXSCRIPTSIZE],*scriptptr,*insptr,*labelcode,labelcnt;
extern char *label,*textptr,error,warning,killit_flag;
extern long *actorscrptr[MAXTILES],*parsing_actor;
extern char actortype[MAXTILES];
extern char *music_pointer;
extern char ipath[80],opath[80];
extern char music_fn[4][11][13],music_select;
extern char env_music_fn[4][13];
extern short camsprite;
// extern char gotz;
extern char inspace(short sectnum);
typedef struct weaponhit
{
char cgg;
short picnum,ang,extra,owner,movflag;
short tempang,actorstayput,dispicnum;
short timetosleep;
long floorz,ceilingz,lastvx,lastvy,bposx,bposy,bposz;
long temp_data[6];
};
extern struct weaponhit hittype[MAXSPRITES];
extern input loc;
extern input recsync[RECSYNCBUFSIZ];
extern long avgfvel, avgsvel, avgavel, avghorz, avgbits;
extern short numplayers, myconnectindex;
extern short connecthead, connectpoint2[MAXPLAYERS]; //Player linked list variables (indeces, not connection numbers)
extern short screenpeek;
extern int current_menu;
extern long tempwallptr,animatecnt;
extern long lockclock,frameplace;
extern char display_mirror,loadfromgrouponly,rtsplaying;
extern long movefifoend[MAXPLAYERS], groupfile;
extern long ototalclock;
extern long *animateptr[MAXANIMATES], animategoal[MAXANIMATES];
extern long animatevel[MAXANIMATES];
// extern long oanimateval[MAXANIMATES];
extern short neartagsector, neartagwall, neartagsprite;
extern long neartaghitdist;
extern short animatesect[MAXANIMATES];
extern long movefifoplc, vel,svel,angvel,horiz;
extern short mirrorwall[64], mirrorsector[64], mirrorcnt;
extern void TestCallBack(unsigned long);
#define NUMKEYS 19
extern long frameplace, chainplace, chainnumpages;
extern volatile long checksume;
#include "funct.h"
extern char screencapt;
extern short soundps[NUM_SOUNDS],soundpe[NUM_SOUNDS],soundvo[NUM_SOUNDS];
extern char soundpr[NUM_SOUNDS],soundm[NUM_SOUNDS];
extern long soundsiz[NUM_SOUNDS];
extern char level_names[44][33];
extern long partime[44],designertime[44];
extern char volume_names[4][33];
extern char skill_names[5][33];
extern char level_file_names[44][128];
extern int32 SoundToggle,MusicToggle;
extern short last_threehundred,lastsavedpos;
extern char restorepalette;
extern short buttonstat;
extern long cachecount;
extern char boardfilename[128],waterpal[768],slimepal[768],titlepal[768],drealms[768],endingpal[768];
extern char betaname[80];
extern char cachedebug,earthquaketime;
extern char networkmode;
extern char lumplockbyte[11];
//DUKE3D.H - replace the end "my's" with this
extern long myx, omyx, myxvel, myy, omyy, myyvel, myz, omyz, myzvel;
extern short myhoriz, omyhoriz, myhorizoff, omyhorizoff, globalskillsound;
extern short myang, omyang, mycursectnum, myjumpingcounter;
extern char myjumpingtoggle, myonground, myhardlanding,myreturntocenter;
extern long fakemovefifoplc;
extern long myxbak[MOVEFIFOSIZ], myybak[MOVEFIFOSIZ], myzbak[MOVEFIFOSIZ];
extern long myhorizbak[MOVEFIFOSIZ];
extern short myangbak[MOVEFIFOSIZ];
extern short weaponsandammosprites[15];
//DUKE3D.H:
typedef struct
{
short frag[MAXPLAYERS], got_access, last_extra, shield_amount, curr_weapon;
short ammo_amount[MAX_WEAPONS], holoduke_on;
char gotweapon[MAX_WEAPONS], inven_icon, jetpack_on, heat_on;
short firstaid_amount, steroids_amount, holoduke_amount, jetpack_amount;
short heat_amount, scuba_amount, boot_amount;
short last_weapon, weapon_pos, kickback_pic;
} STATUSBARTYPE;
extern STATUSBARTYPE sbar;
extern short frags[MAXPLAYERS][MAXPLAYERS];
extern long cameradist, cameraclock, dukefriction,show_shareware;
extern char networkmode, movesperpacket;
extern char gamequit;
extern char pus,pub,camerashitable,freezerhurtowner,lasermode;
extern char syncstat, syncval[MAXPLAYERS][MOVEFIFOSIZ];
extern signed char multiwho, multipos, multiwhat, multiflag;
extern long syncvalhead[MAXPLAYERS], syncvaltail, syncvaltottail;
extern long numfreezebounces,rpgblastradius,pipebombblastradius,tripbombblastradius,shrinkerblastradius,morterblastradius,bouncemineblastradius,seenineblastradius;
extern char stereo,eightytwofifty,playerswhenstarted,playonten,everyothertime;
extern long myminlag[MAXPLAYERS], mymaxlag, otherminlag, bufferjitter;
extern long numinterpolations, startofdynamicinterpolations;
extern long oldipos[MAXINTERPOLATIONS];
extern long bakipos[MAXINTERPOLATIONS];
extern long *curipos[MAXINTERPOLATIONS];
extern short numclouds,clouds[128],cloudx[128],cloudy[128];
extern long cloudtotalclock,totalmemory;
extern long stereomode, stereowidth, stereopixelwidth;
extern long myaimmode, myaimstat, omyaimstat;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -