Definition at line 3 of file walk.qc.
4{
5
6 if (dt <= 0)
7 return;
8
11
13
14
16
19
21 {
24 else
26 }
27
29
31 {
32
33
34
37 int type;
46 else
48 tracebox(upmove, this.
mins, this.
maxs, downmove, type,
this);
50 {
51 clip |= 1;
52
54 }
55 }
56
57
58 if (!(clip & 1))
62
64
65 if (clip & 8)
66 return;
67
69 return;
70
72 return;
73
76
77 int originalflags = this.
flags;
79
80
81 if (clip & 2)
82 {
83
84 if (
fabs(start_velocity.x) < 0.03125 &&
fabs(start_velocity.y) < 0.03125)
85 return;
86
88 {
89
91 return;
92
93
96 return;
97 }
98
99
100
101 this.
origin = start_origin;
103
104
107 {
108
109 return;
110 }
111
112
113 this.velocity_z = 0;
115 this.velocity_z += start_velocity.z;
116 if (clip & 8)
117 {
118
119
120 return;
121 }
122
124
125
126
127 if (clip
128 &&
fabs(originalorigin.y -
this.origin.y) < 0.03125
129 &&
fabs(originalorigin.x -
this.origin.x) < 0.03125)
130 {
131
132
133 this.
origin = originalorigin;
135
136 this.
flags = originalflags;
138
139
140 return;
141 }
142
143
144
145
148 }
149
152 {
153 return;
154 }
155
156
157 vector downmove =
'0 0 0';
160 {
161
162 return;
163 }
164
166 {
167
168
169
170
172 {
175 }
176 }
177 else
178 {
179
180
181
182
183 this.
origin = originalorigin;
185 this.
flags = originalflags;
187 }
188
190}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
const float MOVE_NOMONSTERS
const float SOLID_TRIGGER
void _Movetype_CheckStuck(entity this)
int _Movetype_FlyMove(entity this, float dt, bool applygravity, bool applystepnormal, float stepheight)
bool _Movetype_CheckWater(entity this)
void _Movetype_LinkEdict(entity this, bool touch_triggers)
bool _Movetype_PushEntity(entity this, vector push, bool dolink)
void _Movetype_WallFriction(entity this, vector stepnormal)
#define GAMEPLAYFIX_STEPDOWN(s)
#define GAMEPLAYFIX_DOWNTRACEONGROUND(s)
#define GAMEPLAYFIX_UNSTICKPLAYERS(s)
#define PHYS_STEPHEIGHT(s)
const int MOVETYPE_FLYMISSILE
#define PHYS_WALLFRICTION(s)
const int MOVETYPE_FLY_WORLDONLY
#define UNSET_ONGROUND(s)
#define GAMEPLAYFIX_STEPMULTIPLETIMES(s)
#define GAMEPLAYFIX_STEPDOWN_MAXSPEED(s)
#define vdist(v, cmp, f)
Vector distance comparison, avoids sqrt()
References _Movetype_CheckStuck(), _Movetype_CheckWater(), _Movetype_FlyMove(), _Movetype_LinkEdict(), _Movetype_PushEntity(), _Movetype_WallFriction(), entity(), fabs(), FL_WATERJUMP, flags, GAMEPLAYFIX_DOWNTRACEONGROUND, GAMEPLAYFIX_STEPDOWN, GAMEPLAYFIX_STEPDOWN_MAXSPEED, GAMEPLAYFIX_STEPMULTIPLETIMES, GAMEPLAYFIX_UNSTICKPLAYERS, groundentity, IS_ONGROUND, IS_ONSLICK, max(), maxs, mins, MOVE_MISSILE, move_movetype, MOVE_NOMONSTERS, move_nomonsters, MOVE_NORMAL, move_stepnormal, MOVE_WORLDONLY, MOVETYPE_FLY, MOVETYPE_FLY_WORLDONLY, MOVETYPE_FLYMISSILE, MOVETYPE_WALK, origin, PHYS_JUMPSTEP, PHYS_NOSTEP, PHYS_STEPHEIGHT, PHYS_WALLCLIP, PHYS_WALLFRICTION, pm_time, SET_ONGROUND, solid, SOLID_NOT, SOLID_TRIGGER, trace_ent, trace_fraction, UNSET_ONGROUND, vdist, vector, velocity, and waterlevel.
Referenced by _Movetype_Physics_ClientFrame(), and _Movetype_Physics_Frame().