Quake-III-Arena

Quake III Arena GPL Source Release
Log | Files | Refs

aas_cfg.h (2273B)


      1 /*
      2 ===========================================================================
      3 Copyright (C) 1999-2005 Id Software, Inc.
      4 
      5 This file is part of Quake III Arena source code.
      6 
      7 Quake III Arena source code is free software; you can redistribute it
      8 and/or modify it under the terms of the GNU General Public License as
      9 published by the Free Software Foundation; either version 2 of the License,
     10 or (at your option) any later version.
     11 
     12 Quake III Arena source code is distributed in the hope that it will be
     13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 GNU General Public License for more details.
     16 
     17 You should have received a copy of the GNU General Public License
     18 along with Foobar; if not, write to the Free Software
     19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     20 ===========================================================================
     21 */
     22 
     23 #define BBOXFL_GROUNDED			1	//bounding box only valid when on ground
     24 #define BBOXFL_NOTGROUNDED		2	//bounding box only valid when NOT on ground
     25 
     26 typedef struct cfg_s
     27 {
     28 	int numbboxes;						//number of bounding boxes
     29 	aas_bbox_t bboxes[AAS_MAX_BBOXES];	//all the bounding boxes
     30 	int allpresencetypes;				//or of all presence types
     31 	// aas settings
     32 	vec3_t phys_gravitydirection;
     33 	float phys_friction;
     34 	float phys_stopspeed;
     35 	float phys_gravity;
     36 	float phys_waterfriction;
     37 	float phys_watergravity;
     38 	float phys_maxvelocity;
     39 	float phys_maxwalkvelocity;
     40 	float phys_maxcrouchvelocity;
     41 	float phys_maxswimvelocity;
     42 	float phys_walkaccelerate;
     43 	float phys_airaccelerate;
     44 	float phys_swimaccelerate;
     45 	float phys_maxstep;
     46 	float phys_maxsteepness;
     47 	float phys_maxwaterjump;
     48 	float phys_maxbarrier;
     49 	float phys_jumpvel;
     50 	float phys_falldelta5;
     51 	float phys_falldelta10;
     52 	float rs_waterjump;
     53 	float rs_teleport;
     54 	float rs_barrierjump;
     55 	float rs_startcrouch;
     56 	float rs_startgrapple;
     57 	float rs_startwalkoffledge;
     58 	float rs_startjump;
     59 	float rs_rocketjump;
     60 	float rs_bfgjump;
     61 	float rs_jumppad;
     62 	float rs_aircontrolledjumppad;
     63 	float rs_funcbob;
     64 	float rs_startelevator;
     65 	float rs_falldamage5;
     66 	float rs_falldamage10;
     67 	float rs_maxjumpfallheight;
     68 } cfg_t;
     69 
     70 extern cfg_t cfg;
     71 
     72 void DefaultCfg(void);
     73 int LoadCfgFile(char *filename);