00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #define BBOXFL_GROUNDED 1 //bounding box only valid when on ground
00024 #define BBOXFL_NOTGROUNDED 2 //bounding box only valid when NOT on ground
00025
00026 typedef struct cfg_s
00027 {
00028 int numbboxes;
00029 aas_bbox_t bboxes[AAS_MAX_BBOXES];
00030 int allpresencetypes;
00031
00032 vec3_t phys_gravitydirection;
00033 float phys_friction;
00034 float phys_stopspeed;
00035 float phys_gravity;
00036 float phys_waterfriction;
00037 float phys_watergravity;
00038 float phys_maxvelocity;
00039 float phys_maxwalkvelocity;
00040 float phys_maxcrouchvelocity;
00041 float phys_maxswimvelocity;
00042 float phys_walkaccelerate;
00043 float phys_airaccelerate;
00044 float phys_swimaccelerate;
00045 float phys_maxstep;
00046 float phys_maxsteepness;
00047 float phys_maxwaterjump;
00048 float phys_maxbarrier;
00049 float phys_jumpvel;
00050 float phys_falldelta5;
00051 float phys_falldelta10;
00052 float rs_waterjump;
00053 float rs_teleport;
00054 float rs_barrierjump;
00055 float rs_startcrouch;
00056 float rs_startgrapple;
00057 float rs_startwalkoffledge;
00058 float rs_startjump;
00059 float rs_rocketjump;
00060 float rs_bfgjump;
00061 float rs_jumppad;
00062 float rs_aircontrolledjumppad;
00063 float rs_funcbob;
00064 float rs_startelevator;
00065 float rs_falldamage5;
00066 float rs_falldamage10;
00067 float rs_maxjumpfallheight;
00068 } cfg_t;
00069
00070 extern cfg_t cfg;
00071
00072 void DefaultCfg(void);
00073 int LoadCfgFile(char *filename);