bg_local.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // bg_local.h -- local definitions for the bg (both games) files
  2. #define TIMER_LAND 130
  3. #define TIMER_GESTURE (34*66+50)
  4. #define OVERCLIP 1.001F
  5. // all of the locals will be zeroed before each
  6. // pmove, just to make damn sure we don't have
  7. // any differences when running on client or server
  8. typedef struct {
  9. vec3_t forward, right, up;
  10. float frametime;
  11. int msec;
  12. qboolean walking;
  13. qboolean groundPlane;
  14. trace_t groundTrace;
  15. float impactSpeed;
  16. vec3_t previous_origin;
  17. vec3_t previous_velocity;
  18. int previous_waterlevel;
  19. } pml_t;
  20. extern pmove_t *pm;
  21. extern pml_t pml;
  22. // movement parameters
  23. extern const float pm_stopspeed;
  24. extern const float pm_duckScale;
  25. extern const float pm_swimScale;
  26. extern const float pm_wadeScale;
  27. extern const float pm_accelerate;
  28. extern const float pm_airaccelerate;
  29. extern const float pm_wateraccelerate;
  30. extern const float pm_flyaccelerate;
  31. extern const float pm_friction;
  32. extern const float pm_waterfriction;
  33. extern const float pm_flightfriction;
  34. extern int c_pmove;
  35. void PM_ClipVelocity( vec3_t in, vec3_t normal, vec3_t out, float overbounce );
  36. void PM_AddTouchEnt( int entityNum );
  37. void PM_AddEvent( int newEvent );
  38. qboolean PM_SlideMove( float gravity );
  39. void PM_StepSlideMove( float gravity );