doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions | Variables
Physics_Player.cpp File Reference
#include "../../idlib/precompiled.h"
#include "../Game_local.h"

Go to the source code of this file.

Macros

#define MAX_CLIP_PLANES   5
 

Functions

void idPhysics_Player_SavePState (idSaveGame *savefile, const playerPState_t &state)
 
void idPhysics_Player_RestorePState (idRestoreGame *savefile, playerPState_t &state)
 

Variables

END_CLASS const float PM_STOPSPEED = 100.0f
 
const float PM_SWIMSCALE = 0.5f
 
const float PM_LADDERSPEED = 100.0f
 
const float PM_STEPSCALE = 1.0f
 
const float PM_ACCELERATE = 10.0f
 
const float PM_AIRACCELERATE = 1.0f
 
const float PM_WATERACCELERATE = 4.0f
 
const float PM_FLYACCELERATE = 8.0f
 
const float PM_FRICTION = 6.0f
 
const float PM_AIRFRICTION = 0.0f
 
const float PM_WATERFRICTION = 1.0f
 
const float PM_FLYFRICTION = 3.0f
 
const float PM_NOCLIPFRICTION = 12.0f
 
const float MIN_WALK_NORMAL = 0.7f
 
const float OVERCLIP = 1.001f
 
const int PMF_DUCKED = 1
 
const int PMF_JUMPED = 2
 
const int PMF_STEPPED_UP = 4
 
const int PMF_STEPPED_DOWN = 8
 
const int PMF_JUMP_HELD = 16
 
const int PMF_TIME_LAND = 32
 
const int PMF_TIME_KNOCKBACK = 64
 
const int PMF_TIME_WATERJUMP = 128
 
const int PMF_ALL_TIMES = (PMF_TIME_WATERJUMP|PMF_TIME_LAND|PMF_TIME_KNOCKBACK)
 
int c_pmove = 0
 
const float PLAYER_VELOCITY_MAX = 4000
 
const int PLAYER_VELOCITY_TOTAL_BITS = 16
 
const int PLAYER_VELOCITY_EXPONENT_BITS = idMath::BitsForInteger( idMath::BitsForFloat( PLAYER_VELOCITY_MAX ) ) + 1
 
const int PLAYER_VELOCITY_MANTISSA_BITS = PLAYER_VELOCITY_TOTAL_BITS - 1 - PLAYER_VELOCITY_EXPONENT_BITS
 
const int PLAYER_MOVEMENT_TYPE_BITS = 3
 
const int PLAYER_MOVEMENT_FLAGS_BITS = 8
 

Macro Definition Documentation

#define MAX_CLIP_PLANES   5

Definition at line 166 of file Physics_Player.cpp.

Function Documentation

void idPhysics_Player_RestorePState ( idRestoreGame savefile,
playerPState_t state 
)

Definition at line 1546 of file Physics_Player.cpp.

void idPhysics_Player_SavePState ( idSaveGame savefile,
const playerPState_t state 
)

Definition at line 1530 of file Physics_Player.cpp.

Variable Documentation

int c_pmove = 0

Definition at line 68 of file Physics_Player.cpp.

const float MIN_WALK_NORMAL = 0.7f

Definition at line 54 of file Physics_Player.cpp.

const float OVERCLIP = 1.001f

Definition at line 55 of file Physics_Player.cpp.

const int PLAYER_MOVEMENT_FLAGS_BITS = 8

Definition at line 1992 of file Physics_Player.cpp.

const int PLAYER_MOVEMENT_TYPE_BITS = 3

Definition at line 1991 of file Physics_Player.cpp.

const int PLAYER_VELOCITY_EXPONENT_BITS = idMath::BitsForInteger( idMath::BitsForFloat( PLAYER_VELOCITY_MAX ) ) + 1

Definition at line 1989 of file Physics_Player.cpp.

const int PLAYER_VELOCITY_MANTISSA_BITS = PLAYER_VELOCITY_TOTAL_BITS - 1 - PLAYER_VELOCITY_EXPONENT_BITS

Definition at line 1990 of file Physics_Player.cpp.

const float PLAYER_VELOCITY_MAX = 4000

Definition at line 1987 of file Physics_Player.cpp.

const int PLAYER_VELOCITY_TOTAL_BITS = 16

Definition at line 1988 of file Physics_Player.cpp.

const float PM_ACCELERATE = 10.0f

Definition at line 43 of file Physics_Player.cpp.

const float PM_AIRACCELERATE = 1.0f

Definition at line 44 of file Physics_Player.cpp.

const float PM_AIRFRICTION = 0.0f

Definition at line 49 of file Physics_Player.cpp.

const float PM_FLYACCELERATE = 8.0f

Definition at line 46 of file Physics_Player.cpp.

const float PM_FLYFRICTION = 3.0f

Definition at line 51 of file Physics_Player.cpp.

const float PM_FRICTION = 6.0f

Definition at line 48 of file Physics_Player.cpp.

const float PM_LADDERSPEED = 100.0f

Definition at line 40 of file Physics_Player.cpp.

const float PM_NOCLIPFRICTION = 12.0f

Definition at line 52 of file Physics_Player.cpp.

const float PM_STEPSCALE = 1.0f

Definition at line 41 of file Physics_Player.cpp.

END_CLASS const float PM_STOPSPEED = 100.0f

Definition at line 38 of file Physics_Player.cpp.

const float PM_SWIMSCALE = 0.5f

Definition at line 39 of file Physics_Player.cpp.

const float PM_WATERACCELERATE = 4.0f

Definition at line 45 of file Physics_Player.cpp.

const float PM_WATERFRICTION = 1.0f

Definition at line 50 of file Physics_Player.cpp.

Definition at line 66 of file Physics_Player.cpp.

const int PMF_DUCKED = 1

Definition at line 58 of file Physics_Player.cpp.

const int PMF_JUMP_HELD = 16

Definition at line 62 of file Physics_Player.cpp.

const int PMF_JUMPED = 2

Definition at line 59 of file Physics_Player.cpp.

const int PMF_STEPPED_DOWN = 8

Definition at line 61 of file Physics_Player.cpp.

const int PMF_STEPPED_UP = 4

Definition at line 60 of file Physics_Player.cpp.

const int PMF_TIME_KNOCKBACK = 64

Definition at line 64 of file Physics_Player.cpp.

const int PMF_TIME_LAND = 32

Definition at line 63 of file Physics_Player.cpp.

const int PMF_TIME_WATERJUMP = 128

Definition at line 65 of file Physics_Player.cpp.