Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

bg_local.h

Go to the documentation of this file.
00001 /*
00002 ===========================================================================
00003 Copyright (C) 1999-2005 Id Software, Inc.
00004 
00005 This file is part of Quake III Arena source code.
00006 
00007 Quake III Arena source code is free software; you can redistribute it
00008 and/or modify it under the terms of the GNU General Public License as
00009 published by the Free Software Foundation; either version 2 of the License,
00010 or (at your option) any later version.
00011 
00012 Quake III Arena source code is distributed in the hope that it will be
00013 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Foobar; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020 ===========================================================================
00021 */
00022 //
00023 // bg_local.h -- local definitions for the bg (both games) files
00024 
00025 #define MIN_WALK_NORMAL 0.7f        // can't walk on very steep slopes
00026 
00027 #define STEPSIZE        18
00028 
00029 #define JUMP_VELOCITY   270
00030 
00031 #define TIMER_LAND      130
00032 #define TIMER_GESTURE   (34*66+50)
00033 
00034 #define OVERCLIP        1.001f
00035 
00036 // all of the locals will be zeroed before each
00037 // pmove, just to make damn sure we don't have
00038 // any differences when running on client or server
00039 typedef struct {
00040     vec3_t      forward, right, up;
00041     float       frametime;
00042 
00043     int         msec;
00044 
00045     qboolean    walking;
00046     qboolean    groundPlane;
00047     trace_t     groundTrace;
00048 
00049     float       impactSpeed;
00050 
00051     vec3_t      previous_origin;
00052     vec3_t      previous_velocity;
00053     int         previous_waterlevel;
00054 } pml_t;
00055 
00056 extern  pmove_t     *pm;
00057 extern  pml_t       pml;
00058 
00059 // movement parameters
00060 extern  float   pm_stopspeed;
00061 extern  float   pm_duckScale;
00062 extern  float   pm_swimScale;
00063 extern  float   pm_wadeScale;
00064 
00065 extern  float   pm_accelerate;
00066 extern  float   pm_airaccelerate;
00067 extern  float   pm_wateraccelerate;
00068 extern  float   pm_flyaccelerate;
00069 
00070 extern  float   pm_friction;
00071 extern  float   pm_waterfriction;
00072 extern  float   pm_flightfriction;
00073 
00074 extern  int     c_pmove;
00075 
00076 void PM_ClipVelocity( vec3_t in, vec3_t normal, vec3_t out, float overbounce );
00077 void PM_AddTouchEnt( int entityNum );
00078 void PM_AddEvent( int newEvent );
00079 
00080 qboolean    PM_SlideMove( qboolean gravity );
00081 void        PM_StepSlideMove( qboolean gravity );
00082 
00083 

Generated on Thu Aug 25 12:37:30 2005 for Quake III Arena by  doxygen 1.3.9.1