rpgxef/code/game/bg_local.h

63 lines
1.3 KiB
C
Raw Normal View History

// Copyright (C) 1999-2000 Id Software, Inc.
//
// bg_local.h -- local definitions for the bg (both games) files
#ifndef BG_LOCAL_H_
#define BG_LOCAL_H_
2014-10-13 21:44:29 +00:00
#ifdef _MSC_VER
#include <stddef.h>
#include <stdint.h>
#else
#include <stdint.h>
#endif
2014-10-13 21:44:29 +00:00
static const double MIN_WALK_NORMAL = 0.7; // can't walk on very steep slopes
2014-10-13 21:44:29 +00:00
static const uint32_t STEPSIZE = 18;
2014-10-13 21:44:29 +00:00
static const uint32_t JUMP_VELOCITY = 270;
2014-10-13 21:44:29 +00:00
static const uint32_t TIMER_LAND = 130;
static const uint32_t TIMER_GESTURE = (34 * 66 + 50);
2014-10-13 21:44:29 +00:00
static const double OVERCLIP = 1.001;
// all of the locals will be zeroed before each
// pmove, just to make damn sure we don't have
// any differences when running on client or server
typedef struct {
vec3_t forward, right, up;
2014-10-13 21:44:29 +00:00
double frametime;
2014-10-13 21:44:29 +00:00
int32_t msec;
qboolean walking;
qboolean groundPlane;
trace_t groundTrace;
2014-10-13 21:44:29 +00:00
double impactSpeed;
vec3_t previous_origin;
vec3_t previous_velocity;
2014-10-13 21:44:29 +00:00
int32_t previous_waterlevel;
} pml_t;
2014-10-13 21:44:29 +00:00
extern pmove_t* pm;
extern pml_t pml;
2014-10-13 21:44:29 +00:00
extern int32_t c_pmove;
2014-10-13 21:44:29 +00:00
void PM_ClipVelocity( vec3_t in, vec3_t normal, vec3_t out, double overbounce );
void PM_AddTouchEnt( int32_t entityNum );
void PM_AddEvent( int32_t newEvent );
2014-10-13 21:44:29 +00:00
qboolean PM_SlideMove( qboolean gravity );
void PM_StepSlideMove( qboolean gravity );
#endif /* BG_LOCAL_H_ */