Home
last modified time | relevance | path

Searched refs:edicts (Results 1 – 22 of 22) sorted by relevance

/external/quake/quake/src/WinQuake/
Dprogs.h101 #define EDICT_TO_PROG(e) ((byte *)e - (byte *)sv.edicts)
102 #define PROG_TO_EDICT(e) ((edict_t *)((byte *)sv.edicts + e))
108 #define G_EDICT(o) ((edict_t *)((byte *)sv.edicts+ *(int *)&pr_globals[o]))
Dpr_cmds.cpp634 pr_global_struct->trace_ent = EDICT_TO_PROG(sv.edicts); in PF_traceline()
663 pr_global_struct->trace_ent = EDICT_TO_PROG(sv.edicts); in PF_TraceToss()
771 RETURN_EDICT(sv.edicts); in PF_checkclient()
783 RETURN_EDICT(sv.edicts); in PF_checkclient()
888 chain = (edict_t *)sv.edicts; in PF_findradius()
893 ent = NEXT_EDICT(sv.edicts); in PF_findradius()
986 first = second = last = (edict_t *)sv.edicts; in PF_Find()
1003 if (first == (edict_t *)sv.edicts) in PF_Find()
1005 else if (second == (edict_t *)sv.edicts) in PF_Find()
1018 last->u.v.chain = EDICT_TO_PROG((edict_t *)sv.edicts); in PF_Find()
[all …]
Dpr_exec.cpp492 c->_float = (PROG_TO_EDICT(a->edict) == sv.edicts); in PR_ExecuteProgram()
551 ptr = (eval_t *)((byte *)sv.edicts + b->_int); in PR_ExecuteProgram()
555 ptr = (eval_t *)((byte *)sv.edicts + b->_int); in PR_ExecuteProgram()
566 if (ed == (edict_t *)sv.edicts && sv.state == ss_active) in PR_ExecuteProgram()
568 c->_int = (byte *)(ed->u.i + b->_int) - (byte *)sv.edicts; in PR_ExecuteProgram()
Dsv_move.cpp130 if (i == 0 && enemy != sv.edicts) in SV_movestep()
151 if (enemy == sv.edicts) in SV_movestep()
414 if (enemy != sv.edicts && SV_CloseEnough (ent, enemy, dist) ) in SV_MoveToGoal()
416 if ( PROG_TO_EDICT(ent->u.v.enemy) != sv.edicts && SV_CloseEnough (ent, goal, dist) ) in SV_MoveToGoal()
Dsv_main.cpp207 sprintf (message, "%s", pr_strings+sv.edicts->u.v.message); in SV_SendServerinfo()
221 MSG_WriteByte (&client->message, (int) sv.edicts->u.v.sounds); in SV_SendServerinfo()
222 MSG_WriteByte (&client->message, (int) sv.edicts->u.v.sounds); in SV_SendServerinfo()
441 ent = NEXT_EDICT(sv.edicts); in SV_WriteEntitiesToClient()
562 ent = NEXT_EDICT(sv.edicts); in SV_CleanupEnts()
1101 sv.edicts = (edict_t*) Hunk_AllocName (sv.max_edicts*pr_edict_size, "edicts"); in SV_SpawnServer()
Dsv_phys.cpp67 check = NEXT_EDICT(sv.edicts); in SV_CheckAllEnts()
141 pr_global_struct->other = EDICT_TO_PROG(sv.edicts); in SV_RunThink()
473 check = NEXT_EDICT(sv.edicts); in SV_PushMove()
601 check = NEXT_EDICT(sv.edicts); in SV_PushRotate()
737 pr_global_struct->other = EDICT_TO_PROG(sv.edicts); in SV_Physics_Pusher()
1513 pr_global_struct->self = EDICT_TO_PROG(sv.edicts); in SV_Physics()
1514 pr_global_struct->other = EDICT_TO_PROG(sv.edicts); in SV_Physics()
1523 ent = sv.edicts; in SV_Physics()
Dserver.h59 edict_t *edicts; // can NOT be array indexed, because member
Dpr_edict.cpp813 if (ent != sv.edicts) // hack in ED_ParseEdict()
1093 return (edict_t *)((byte *)sv.edicts+ (n)*pr_edict_size); in EDICT_NUM()
1100 b = (byte *)e - (byte *)sv.edicts; in NUM_FOR_EDICT()
Dworld.cpp379 if (ent == sv.edicts) in SV_LinkEdict()
558 return sv.edicts; in SV_TestEntityPosition()
931 clip.trace = SV_ClipMoveToEntity ( sv.edicts, start, mins, maxs, end ); in SV_Move()
/external/quake/quake/src/QW/server/
Dprogs.h96 #define EDICT_TO_PROG(e) ((byte *)e - (byte *)sv.edicts)
97 #define PROG_TO_EDICT(e) ((edict_t *)((byte *)sv.edicts + e))
103 #define G_EDICT(o) ((edict_t *)((byte *)sv.edicts+ *(int *)&pr_globals[o]))
Dpr_exec.c492 c->_float = (PROG_TO_EDICT(a->edict) == sv.edicts); in PR_ExecuteProgram()
551 ptr = (eval_t *)((byte *)sv.edicts + b->_int); in PR_ExecuteProgram()
555 ptr = (eval_t *)((byte *)sv.edicts + b->_int); in PR_ExecuteProgram()
566 if (ed == (edict_t *)sv.edicts && sv.state == ss_active) in PR_ExecuteProgram()
568 c->_int = (byte *)((int *)&ed->v + b->_int) - (byte *)sv.edicts; in PR_ExecuteProgram()
Dsv_phys.c70 check = NEXT_EDICT(sv.edicts); in SV_CheckAllEnts()
145 pr_global_struct->other = EDICT_TO_PROG(sv.edicts); in SV_RunThink()
453 check = NEXT_EDICT(sv.edicts); in SV_Push()
608 pr_global_struct->other = EDICT_TO_PROG(sv.edicts); in SV_Physics_Pusher()
825 pr_global_struct->self = EDICT_TO_PROG(sv.edicts); in SV_ProgStartFrame()
826 pr_global_struct->other = EDICT_TO_PROG(sv.edicts); in SV_ProgStartFrame()
915 ent = sv.edicts; in SV_Physics()
Dsv_move.c130 if (i == 0 && enemy != sv.edicts) in SV_movestep()
151 if (enemy == sv.edicts) in SV_movestep()
409 if ( PROG_TO_EDICT(ent->v.enemy) != sv.edicts && SV_CloseEnough (ent, goal, dist) ) in SV_MoveToGoal()
Dpr_cmds.c542 pr_global_struct->trace_ent = EDICT_TO_PROG(sv.edicts); in PF_traceline()
648 RETURN_EDICT(sv.edicts); in PF_checkclient()
660 RETURN_EDICT(sv.edicts); in PF_checkclient()
771 chain = (edict_t *)sv.edicts; in PF_findradius()
776 ent = NEXT_EDICT(sv.edicts); in PF_findradius()
878 RETURN_EDICT(sv.edicts); in PF_Find()
1136 RETURN_EDICT(sv.edicts); in PF_nextent()
1203 check = NEXT_EDICT(sv.edicts); in PF_aim()
Dworld.c369 if (ent == sv.edicts) in SV_LinkEdict()
511 return sv.edicts; in SV_TestEntityPosition()
833 clip.trace = SV_ClipMoveToEntity ( sv.edicts, start, mins, maxs, end ); in SV_Move()
884 return sv.edicts; in SV_TestPlayerPosition()
890 check = NEXT_EDICT(sv.edicts); in SV_TestPlayerPosition()
Dpr_edict.c804 if (ent != sv.edicts) // hack in ED_ParseEdict()
1070 return (edict_t *)((byte *)sv.edicts+ (n)*pr_edict_size); in EDICT_NUM()
1077 b = (byte *)e - (byte *)sv.edicts; in NUM_FOR_EDICT()
Dserver.h61 edict_t *edicts; // can NOT be array indexed, because member
Dsv_init.c325 sv.edicts = Hunk_AllocName (MAX_EDICTS*pr_edict_size, "edicts"); in SV_SpawnServer()
Dsv_user.c96 MSG_WriteString (&host_client->netchan.message, PR_GetString(sv.edicts->v.message)); in SV_New_f()
112 MSG_WriteByte (&host_client->netchan.message, sv.edicts->v.sounds); in SV_New_f()
1314 check = NEXT_EDICT(sv.edicts); in AddAllEntsToPmove()
/external/quake/quake/src/QW/
Dcmds.txt380 edicts", ED_PrintEdicts
Dqw2do.txt43 x- increase edicts to 1024
/external/quake/quake/src/QW/progs/
Ddefs.qc234 float FL_CLIENT = 8; // set for all client edicts
636 void() coredump = #28; // prints all edicts