icculus quake2 doxygen
1.0 dev
|
|
Go to the documentation of this file.
50 start[2] =
mins[2] - 1;
51 for (
x=0 ;
x<=1 ;
x++)
52 for (
y=0 ;
y<=1 ;
y++)
71 start[0] = stop[0] = (
mins[0] +
maxs[0])*0.5;
72 start[1] = stop[1] = (
mins[1] +
maxs[1])*0.5;
81 for (
x=0 ;
x<=1 ;
x++)
82 for (
y=0 ;
y<=1 ;
y++)
84 start[0] = stop[0] =
x ?
maxs[0] :
mins[0];
85 start[1] = stop[1] =
y ?
maxs[1] :
mins[1];
115 vec3_t oldorg, neworg, end;
130 for (
i=0 ;
i<2 ;
i++)
165 test[0] = trace.
endpos[0];
166 test[1] = trace.
endpos[1];
179 test[0] = trace.
endpos[0];
180 test[1] = trace.
endpos[1];
212 neworg[2] += stepsize;
214 end[2] -= stepsize*2;
223 neworg[2] -= stepsize;
233 test[0] = trace.
endpos[0];
234 test[1] = trace.
endpos[1];
361 yaw = yaw*
M_PI*2 / 360;
362 move[0] = cos(yaw)*dist;
363 move[1] = sin(yaw)*dist;
370 if (delta > 45 && delta < 315)
407 float tdir, olddir, turnaround;
414 turnaround =
anglemod(olddir - 180);
435 tdir = d[2] == 90 ? 45 : 315;
437 tdir = d[2] == 90 ? 135 : 215;
444 if ( ((rand()&3) & 1) || abs(deltay)>abs(deltax))
451 if (d[1]!=
DI_NODIR && d[1]!=turnaround
455 if (d[2]!=
DI_NODIR && d[2]!=turnaround
466 for (tdir=0 ; tdir<=315 ; tdir += 45)
472 for (tdir=315 ; tdir >=0 ; tdir -= 45)
499 for (
i=0 ;
i<3 ;
i++)
549 yaw = yaw*
M_PI*2 / 360;
551 move[0] = cos(yaw)*dist;
552 move[1] = sin(yaw)*dist;
qboolean SV_CloseEnough(edict_t *ent, edict_t *goal, float dist)
#define MASK_MONSTERSOLID
trace_t(* trace)(vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end, edict_t *passent, int contentmask)
void M_ChangeYaw(edict_t *ent)
void G_TouchTriggers(edict_t *ent)
struct gclient_s * client
int groundentity_linkcount
qboolean M_walkmove(edict_t *ent, float yaw, float dist)
int(* pointcontents)(vec3_t point)
qboolean M_CheckBottom(edict_t *ent)
#define VectorAdd(a, b, c)
void SV_FixCheckBottom(edict_t *ent)
monsterinfo_t monsterinfo
void M_MoveToGoal(edict_t *ent, float dist)
qboolean SV_movestep(edict_t *ent, vec3_t move, qboolean relink)
void SV_NewChaseDir(edict_t *actor, edict_t *enemy, float dist)
qboolean SV_StepDirection(edict_t *ent, float yaw, float dist)
void(* linkentity)(edict_t *ent)