![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Macros | |
#define | DI_NODIR -1 |
Functions | |
qbool | SV_CheckBottom (prvm_edict_t *ent) |
static qbool | SV_CloseEnough (prvm_edict_t *ent, prvm_edict_t *goal, float dist) |
static void | SV_FixCheckBottom (prvm_edict_t *ent) |
qbool | SV_movestep (prvm_edict_t *ent, vec3_t move, qbool relink, qbool noenemy, qbool settrace) |
static void | SV_NewChaseDir (prvm_edict_t *actor, prvm_edict_t *enemy, float dist) |
static qbool | SV_StepDirection (prvm_edict_t *ent, float yaw, float dist) |
void | VM_SV_MoveToGoal (prvm_prog_t *prog) |
Variables | |
int | c_no |
int | c_yes |
#define DI_NODIR -1 |
Definition at line 309 of file sv_move.c.
Referenced by SV_NewChaseDir().
qbool SV_CheckBottom | ( | prvm_edict_t * | ent | ) |
Definition at line 36 of file sv_move.c.
References c_no, c_yes, collision_extendmovelength, trace_t::endpos, trace_t::fraction, maxs, mins, MOVE_NOMONSTERS, origin, PRVM_serveredictvector, SUPERCONTENTS_BODY, SUPERCONTENTS_SOLID, SV_GenericHitSuperContentsMask(), SV_PointSuperContents(), sv_stepheight, SV_TraceLine(), SVVM_prog, cvar_t::value, VectorAdd, x, and y.
Referenced by SV_movestep(), SV_NewChaseDir(), and VM_SV_checkbottom().
|
static |
Definition at line 400 of file sv_move.c.
References i, prvm_edict_t::priv, and prvm_edict_t::server.
Referenced by VM_SV_MoveToGoal().
|
static |
Definition at line 295 of file sv_move.c.
References FL_PARTIALGROUND, flags, int(), PRVM_serveredictfloat, and SVVM_prog.
Referenced by SV_NewChaseDir().
Definition at line 109 of file sv_move.c.
References collision_extendmovelength, prvm_prog_t::edicts, trace_t::endpos, enemy, trace_t::ent, FL_FLY, FL_PARTIALGROUND, FL_SWIM, flags, trace_t::fraction, groundentity, i, int(), cvar_t::integer, maxs, mins, MOVE_NORMAL, plane_t::normal, origin, trace_t::plane, PRVM_EDICT_TO_PROG, PRVM_PROG_TO_EDICT, PRVM_serveredictedict, PRVM_serveredictfloat, PRVM_serveredictvector, trace_t::startsolid, SUPERCONTENTS_LIQUIDSMASK, SV_CheckBottom(), sv_gameplayfix_nostepmoveonsteepslopes, SV_GenericHitSuperContentsMask(), SV_LinkEdict(), SV_LinkEdict_TouchAreaGrid(), SV_PointSuperContents(), sv_stepheight, SV_TraceBox(), SVVM_prog, cvar_t::value, VectorAdd, and VectorCopy.
Referenced by SV_StepDirection(), and VM_SV_walkmove().
|
static |
Definition at line 310 of file sv_move.c.
References ANGLEMOD, DI_NODIR, enemy, fabs(), ideal_yaw, origin, PRVM_serveredictfloat, PRVM_serveredictvector, SV_CheckBottom(), SV_FixCheckBottom(), SV_StepDirection(), and SVVM_prog.
Referenced by VM_SV_MoveToGoal().
|
static |
Definition at line 257 of file sv_move.c.
References angles, cos(), ideal_yaw, M_PI, oldorigin, origin, PRVM_serveredictfloat, PRVM_serveredictvector, sin(), SV_LinkEdict(), SV_LinkEdict_TouchAreaGrid(), SV_movestep(), SVVM_prog, VectorCopy, VM_changeyaw(), and YAW.
Referenced by SV_NewChaseDir(), and VM_SV_MoveToGoal().
void VM_SV_MoveToGoal | ( | prvm_prog_t * | prog | ) |
Definition at line 420 of file sv_move.c.
References prvm_prog_t::edicts, enemy, FL_FLY, FL_ONGROUND, FL_SWIM, flags, goalentity, ideal_yaw, OFS_PARM0, OFS_RETURN, PRVM_G_FLOAT, PRVM_PROG_TO_EDICT, PRVM_serveredictedict, PRVM_serveredictfloat, PRVM_serverglobaledict, self, SV_CloseEnough(), SV_NewChaseDir(), SV_StepDirection(), VM_SAFEPARMCOUNT, and VM_SV_MoveToGoal().
Referenced by VM_SV_MoveToGoal().
int c_no |
Definition at line 34 of file sv_move.c.
Referenced by SV_CheckBottom().
int c_yes |
Definition at line 34 of file sv_move.c.
Referenced by SV_CheckBottom().