Nuclide
Software Development Kit for id Tech
pmove.qc File Reference

Macros

#define CUSTOMPLAYERPHYSICS
 
#define PMOVE_STEPHEIGHT   18
 
#define PMOVE_AIRSTEPHEIGHT   18
 
#define PMOVE_FRICTION   4
 
#define PMOVE_EDGEFRICTION   1
 
#define PMOVE_STOPSPEED   75
 
#define PMOVE_GRAVITY   800
 
#define PMOVE_AIRACCELERATE   10
 
#define PMOVE_WATERACCELERATE   8
 
#define PMOVE_ACCELERATE   8
 
#define PMOVE_STEP_WALKSPEED   190
 
#define PMOVE_STEP_RUNSPEED   (PMOVE_STEP_WALKSPEED * 1.5)
 
#define PMOVE_STEP_CROUCHSPEED   (PMOVE_STEP_WALKSPEED * 0.65f)
 
#define PMOVE_STEP_PRONESPEED   (PMOVE_STEP_WALKSPEED * 0.15)
 
#define PMOVE_STAMINA   24
 
#define PMOVE_STAMINARATE   0.75
 
#define PMOVE_STAMINATHRESHOLD   4
 
#define PMOVE_NOCLIPSPEED   500
 
#define PMOVE_NOCLIPACCELERATE   5
 
#define PMOVE_JUMP_HEIGHT   240
 
#define PMOVE_WATERJUMP_HEIGHT   350
 
#define PMOVE_BOXCENTER   true
 
#define PMOVE_BOXWIDTH   32
 
#define PMOVE_NORMAL_HEIGHT   74
 
#define PMOVE_NORMAL_VIEWHEIGHT   68
 
#define PMOVE_CROUCH_HEIGHT   38
 
#define PMOVE_CROUCH_VIEWHEIGHT   32
 
#define PMOVE_PRONE_HEIGHT   20
 
#define PMOVE_PRONE_VIEWHEIGHT   16
 
#define PMOVE_FORWARD_SPEED   190.0f
 
#define PMOVE_SIDE_SPEED   152.0f
 
#define PMOVE_BACK_SPEED   133.0f
 
#define PMOVEVARS_UPDATE   1
 

Functions

void PMoveCustom_Init (void)
 
void PMove_Init (void)
 Called by Nuclide. More...
 
bool PMove_IsStuck (entity eTarget, vector testOrg, vector vecMins, vector vecMaxs)
 

Variables

var int autocvar_pm_stepsize = 18
 
var int autocvar_pm_airstepsize = 18
 
var float autocvar_pm_friction = 4
 
var float autocvar_pm_edgefriction = 1
 
var float autocvar_pm_stopspeed = 75
 
var float autocvar_pm_gravity = 800
 
var float autocvar_pm_airaccelerate = 10
 
var float autocvar_pm_wateraccelerate = 8
 
var float autocvar_pm_accelerate = 8
 
var float autocvar_pm_walkspeed = 190
 
var float autocvar_pm_runspeed = ( 190 * 1.5)
 
var float autocvar_pm_crouchspeed = ( 190 * 0.65f)
 
var float autocvar_pm_pronespeed = ( 190 * 0.15)
 
var float autocvar_pm_stamina = 24
 
var float autocvar_pm_staminarate = 0.75
 
var float autocvar_pm_staminathreshold = 4
 
var float autocvar_pm_noclipspeed = 500
 
var float autocvar_pm_noclipaccelerate = 5
 
var float autocvar_pm_jumpheight = 240
 
var float autocvar_pm_waterjumpheight = 350
 
var bool autocvar_pm_boxcenter = true
 
var float autocvar_pm_boxwidth = 32
 
var float autocvar_pm_maxviewpitch = 89
 
var float autocvar_pm_minviewpitch = -89
 
var float autocvar_pm_normalheight = 74
 
var float autocvar_pm_normalviewheight = 68
 
var float autocvar_pm_crouchheight = 38
 
var float autocvar_pm_crouchviewheight = 32
 
var float autocvar_pm_proneheight = 20
 
var float autocvar_pm_proneviewheight = 16
 
var float autocvar_g_gravity = 800
 
var bool autocvar_pm_nospeedcap = false
 

Macro Definition Documentation

◆ CUSTOMPLAYERPHYSICS

#define CUSTOMPLAYERPHYSICS

◆ PMOVE_ACCELERATE

#define PMOVE_ACCELERATE   8

◆ PMOVE_AIRACCELERATE

#define PMOVE_AIRACCELERATE   10

◆ PMOVE_AIRSTEPHEIGHT

#define PMOVE_AIRSTEPHEIGHT   18

◆ PMOVE_BACK_SPEED

#define PMOVE_BACK_SPEED   133.0f

◆ PMOVE_BOXCENTER

#define PMOVE_BOXCENTER   true

◆ PMOVE_BOXWIDTH

#define PMOVE_BOXWIDTH   32

◆ PMOVE_CROUCH_HEIGHT

#define PMOVE_CROUCH_HEIGHT   38

◆ PMOVE_CROUCH_VIEWHEIGHT

#define PMOVE_CROUCH_VIEWHEIGHT   32

◆ PMOVE_EDGEFRICTION

#define PMOVE_EDGEFRICTION   1

◆ PMOVE_FORWARD_SPEED

#define PMOVE_FORWARD_SPEED   190.0f

◆ PMOVE_FRICTION

#define PMOVE_FRICTION   4

◆ PMOVE_GRAVITY

#define PMOVE_GRAVITY   800

◆ PMOVE_JUMP_HEIGHT

#define PMOVE_JUMP_HEIGHT   240

◆ PMOVE_NOCLIPACCELERATE

#define PMOVE_NOCLIPACCELERATE   5

◆ PMOVE_NOCLIPSPEED

#define PMOVE_NOCLIPSPEED   500

◆ PMOVE_NORMAL_HEIGHT

#define PMOVE_NORMAL_HEIGHT   74

◆ PMOVE_NORMAL_VIEWHEIGHT

#define PMOVE_NORMAL_VIEWHEIGHT   68

◆ PMOVE_PRONE_HEIGHT

#define PMOVE_PRONE_HEIGHT   20

◆ PMOVE_PRONE_VIEWHEIGHT

#define PMOVE_PRONE_VIEWHEIGHT   16

◆ PMOVE_SIDE_SPEED

#define PMOVE_SIDE_SPEED   152.0f

◆ PMOVE_STAMINA

#define PMOVE_STAMINA   24

◆ PMOVE_STAMINARATE

#define PMOVE_STAMINARATE   0.75

◆ PMOVE_STAMINATHRESHOLD

#define PMOVE_STAMINATHRESHOLD   4

◆ PMOVE_STEP_CROUCHSPEED

#define PMOVE_STEP_CROUCHSPEED   (PMOVE_STEP_WALKSPEED * 0.65f)

◆ PMOVE_STEP_PRONESPEED

#define PMOVE_STEP_PRONESPEED   (PMOVE_STEP_WALKSPEED * 0.15)

◆ PMOVE_STEP_RUNSPEED

#define PMOVE_STEP_RUNSPEED   (PMOVE_STEP_WALKSPEED * 1.5)

◆ PMOVE_STEP_WALKSPEED

#define PMOVE_STEP_WALKSPEED   190

◆ PMOVE_STEPHEIGHT

#define PMOVE_STEPHEIGHT   18

◆ PMOVE_STOPSPEED

#define PMOVE_STOPSPEED   75

◆ PMOVE_WATERACCELERATE

#define PMOVE_WATERACCELERATE   8

◆ PMOVE_WATERJUMP_HEIGHT

#define PMOVE_WATERJUMP_HEIGHT   350

◆ PMOVEVARS_UPDATE

#define PMOVEVARS_UPDATE   1

Function Documentation

◆ PMove_IsStuck()

bool PMove_IsStuck ( entity  eTarget,
vector  testOrg,
vector  vecMins,
vector  vecMaxs 
)

◆ PMoveCustom_Init()

void PMoveCustom_Init ( void  )

Variable Documentation

◆ autocvar_g_gravity

var float autocvar_g_gravity = 800

◆ autocvar_pm_accelerate

var float autocvar_pm_accelerate = 8

◆ autocvar_pm_airaccelerate

var float autocvar_pm_airaccelerate = 10

◆ autocvar_pm_airstepsize

var int autocvar_pm_airstepsize = 18

◆ autocvar_pm_boxcenter

var bool autocvar_pm_boxcenter = true

◆ autocvar_pm_boxwidth

var float autocvar_pm_boxwidth = 32

◆ autocvar_pm_crouchheight

var float autocvar_pm_crouchheight = 38

◆ autocvar_pm_crouchspeed

var float autocvar_pm_crouchspeed = ( 190 * 0.65f)

◆ autocvar_pm_crouchviewheight

var float autocvar_pm_crouchviewheight = 32

◆ autocvar_pm_edgefriction

var float autocvar_pm_edgefriction = 1

◆ autocvar_pm_friction

var float autocvar_pm_friction = 4

◆ autocvar_pm_gravity

var float autocvar_pm_gravity = 800

◆ autocvar_pm_jumpheight

var float autocvar_pm_jumpheight = 240

◆ autocvar_pm_maxviewpitch

var float autocvar_pm_maxviewpitch = 89

◆ autocvar_pm_minviewpitch

var float autocvar_pm_minviewpitch = -89

◆ autocvar_pm_noclipaccelerate

var float autocvar_pm_noclipaccelerate = 5

◆ autocvar_pm_noclipspeed

var float autocvar_pm_noclipspeed = 500

◆ autocvar_pm_normalheight

var float autocvar_pm_normalheight = 74

◆ autocvar_pm_normalviewheight

var float autocvar_pm_normalviewheight = 68

◆ autocvar_pm_nospeedcap

var bool autocvar_pm_nospeedcap = false

◆ autocvar_pm_proneheight

var float autocvar_pm_proneheight = 20

◆ autocvar_pm_pronespeed

var float autocvar_pm_pronespeed = ( 190 * 0.15)

◆ autocvar_pm_proneviewheight

var float autocvar_pm_proneviewheight = 16

◆ autocvar_pm_runspeed

var float autocvar_pm_runspeed = ( 190 * 1.5)

◆ autocvar_pm_stamina

var float autocvar_pm_stamina = 24

◆ autocvar_pm_staminarate

var float autocvar_pm_staminarate = 0.75

◆ autocvar_pm_staminathreshold

var float autocvar_pm_staminathreshold = 4

◆ autocvar_pm_stepsize

var int autocvar_pm_stepsize = 18

◆ autocvar_pm_stopspeed

var float autocvar_pm_stopspeed = 75

◆ autocvar_pm_walkspeed

var float autocvar_pm_walkspeed = 190

◆ autocvar_pm_wateraccelerate

var float autocvar_pm_wateraccelerate = 8

◆ autocvar_pm_waterjumpheight

var float autocvar_pm_waterjumpheight = 350