Misc physic functions. More...
#include "g_local.h"
Go to the source code of this file.
Functions | |
void | G_PhysicsStep (edict_t *ent) |
static qboolean | G_PhysicsThink (edict_t *ent) |
Runs thinking code for this frame if necessary. | |
void | G_PhysicsRun (void) |
Handles door and other objects. |
Misc physic functions.
Definition in file g_phys.c.
void G_PhysicsRun | ( | void | ) |
Handles door and other objects.
Definition at line 109 of file g_phys.c.
References level_locals_t::framenum, G_EdictsGetNextInUse(), G_MatchIsRunning(), G_PhysicsThink(), level, and edict_s::think.
Referenced by G_RunFrame().
void G_PhysicsStep | ( | edict_t * | ent | ) |
Definition at line 34 of file g_phys.c.
References moveinfo_t::contentFlags, edict_s::contentFlags, CONTENTS_WATER, moveinfo_t::currentStep, level_locals_t::framenum, G_IsCrouched, G_Trace(), G_VisToPM(), game_import_t::GetFootstepSound(), gi, level, MASK_SOLID, edict_s::moveinfo, cBspSurface_s::name, edict_s::nextthink, edict_s::origin, SERVER_FRAME_SECONDS, moveinfo_t::steps, trace_s::surface, edict_s::think, UNIT_HEIGHT, VectorCopy, and moveinfo_t::visflags.
Referenced by G_ClientMove().
Runs thinking code for this frame if necessary.
Definition at line 90 of file g_phys.c.
References gi, level, edict_s::nextthink, qfalse, qtrue, SERVER_FRAME_SECONDS, edict_s::think, and level_locals_t::time.
Referenced by G_PhysicsRun().