Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
step.qc File Reference
#include "step.qh"
Include dependency graph for step.qc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void _Movetype_Physics_Step (entity this, float dt)

Function Documentation

◆ _Movetype_Physics_Step()

void _Movetype_Physics_Step ( entity this,
float dt )

Definition at line 3 of file step.qc.

4{
5 if(IS_ONGROUND(this))
6 {
7 if(this.velocity_z >= (1.0 / 32.0) && UPWARD_VELOCITY_CLEARS_ONGROUND(this))
8 {
9 UNSET_ONGROUND(this);
10 _Movetype_FlyMove(this, dt, true, false, 0);
11 _Movetype_LinkEdict(this, true);
12 }
13 }
14 else
15 {
16 _Movetype_FlyMove(this, dt, true, false, 0);
17 _Movetype_LinkEdict(this, true);
18
19 // TODO? movetypesteplandevent
20 }
21
23}
int _Movetype_FlyMove(entity this, float dt, bool applygravity, bool applystepnormal, float stepheight)
Definition movetypes.qc:120
void _Movetype_LinkEdict(entity this, bool touch_triggers)
Definition movetypes.qc:516
void _Movetype_CheckWaterTransition(entity ent)
Definition movetypes.qc:368
#define UPWARD_VELOCITY_CLEARS_ONGROUND(s)
Definition movetypes.qh:34
#define UNSET_ONGROUND(s)
Definition movetypes.qh:18
#define IS_ONGROUND(s)
Definition movetypes.qh:16

References _Movetype_CheckWaterTransition(), _Movetype_FlyMove(), _Movetype_LinkEdict(), entity(), IS_ONGROUND, UNSET_ONGROUND, and UPWARD_VELOCITY_CLEARS_ONGROUND.

Referenced by _Movetype_Physics_ClientFrame(), and _Movetype_Physics_Frame().