Remove .move_* fields and MOVETYPE_PUSH logic (doesn't work)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / physics / movetypes / step.qc
1 void _Movetype_Physics_Step(entity this, float dt) // SV_Physics_Step
2 {
3         if(this.flags & FL_ONGROUND)
4         {
5                 if(this.velocity_z >= (1.0 / 32.0) && UPWARD_VELOCITY_CLEARS_ONGROUND(this))
6                 {
7                         this.flags &= ~FL_ONGROUND;
8                         _Movetype_CheckVelocity(this);
9                         _Movetype_FlyMove(this, dt, true, '0 0 0', 0);
10                         _Movetype_LinkEdict(this, true);
11                 }
12         }
13         else
14         {
15                 _Movetype_CheckVelocity(this);
16                 _Movetype_FlyMove(this, dt, true, '0 0 0', 0);
17                 _Movetype_LinkEdict(this, true);
18
19                 // TODO? movetypesteplandevent
20         }
21
22         _Movetype_CheckWaterTransition(this);
23 }