25 #include "../../../../client.h"
26 #include "../../../cl_localentity.h"
37 const int eventTime = eventTiming->
nextTime;
56 if (step->
next ==
nullptr) {
114 Com_Error(
ERR_DROP,
"Can't move, LE doesn't exist or is not an actor (entnum: %i, type: %i)\n",
123 Com_Error(
ERR_DROP,
"Actor (entnum: %i) on team %i is still moving (%i steps left). Times: %i, %i, %i",
void NET_ReadGPos(dbuffer *buf, pos3_t pos)
#define VectorCopy(src, dest)
#define LE_IsCrouched(le)
void CL_ActorDoMove(const eventRegister_t *self, dbuffer *msg)
Moves actor.
#define LE_IsInvisible(le)
int NET_ReadLong(dbuffer *buf)
bool LE_IsActor(const le_t *le)
Checks whether the given le is a living actor.
CL_ParseEvent timers and vars.
void Com_Error(int code, const char *fmt,...)
int LE_ActorGetStepTime(const le_t *le, const pos3_t pos, const pos3_t oldPos, const int dir, const int speed)
int CL_ActorDoMoveTime(const eventRegister_t *self, dbuffer *msg, eventTiming_t *eventTiming)
Decides if following events should be delayed. The delay is the amount of time the actor needs to wal...
le_t * LE_Get(int entnum)
Searches all local entities for the one with the searched entnum.
int NET_ReadShort(dbuffer *buf)
void LE_DoEndPathMove(le_t *le)
Ends the move of an actor.
int NET_PeekByte(const dbuffer *buf)
Struct that defines one particular event with all its callbacks and data.
#define PosAddDV(p, crouch, dv)
#define VectorCompare(a, b)
int NET_PeekLong(const dbuffer *buf)
int pathContents[MAX_ROUTE]
void LE_Lock(le_t *le)
Markes a le_t struct as locked. Should be called at the beginning of an event handler on this le_t...
#define Mem_AllocType(type)
short dvec_t
The direction vector tells us where the actor came from (in his previous step). The pathing table hol...
void LET_HiddenMove(le_t *le)
Handle move for invisible actors.
void LE_SetThink(le_t *le, localEntityThinkFunc_t think)
int NET_ReadByte(dbuffer *buf)
Reads a byte from the netchannel.
void LET_StartPathMove(le_t *le)
Change the actors animation to walking.
#define LE_NotFoundError(entnum)