icculus quake2 doxygen
1.0 dev
|
|
Go to the documentation of this file.
27 result[0] = point[0] +
forward[0] * distance[0] +
right[0] * distance[1];
28 result[1] = point[1] +
forward[1] * distance[0] +
right[1] * distance[1];
29 result[2] = point[2] +
forward[2] * distance[0] +
right[2] * distance[1] + distance[2];
58 s = *(
char **) ((
byte *)from + fieldofs);
126 gi.
dprintf(
"G_PickTarget called with NULL targetname\n");
132 ent =
G_Find (ent,
FOFS(targetname), targetname);
135 choice[num_choices++] = ent;
142 gi.
dprintf(
"G_PickTarget: target %s not found\n", targetname);
146 return choice[rand() % num_choices];
184 t->classname =
"DelayedUse";
187 t->activator = activator;
189 gi.
dprintf (
"Think_Delay with no activator\n");
220 gi.
dprintf(
"entity was removed while using killtargets\n");
235 if (!
Q_stricmp(
t->classname,
"func_areaportal") &&
241 gi.
dprintf (
"WARNING: Entity used itself.\n");
246 t->use (
t, ent, activator);
250 gi.
dprintf(
"entity was removed while using targets\n");
266 float *
tv (
float x,
float y,
float z)
275 index = (index + 1)&7;
296 static char str[8][32];
301 index = (index + 1)&7;
303 Com_sprintf (s, 32,
"(%i %i %i)", (
int)
v[0], (
int)
v[1], (
int)
v[2]);
337 if ( vec[
PITCH] == 0)
342 else if (vec[
YAW] < 0)
361 if (value1[1] == 0 && value1[0] == 0)
372 yaw = (
int) (atan2(value1[1], value1[0]) * 180 /
M_PI);
373 else if (value1[1] > 0)
380 forward =
sqrt (value1[0]*value1[0] + value1[1]*value1[1]);
386 angles[
PITCH] = -pitch;
438 gi.
error (
"ED_Alloc: no free edicts");
462 memset (ed, 0,
sizeof(*ed));
489 for (
i=0 ;
i<num ;
i++)
518 for (
i=0 ;
i<num ;
i++)
void(* dprintf)(char *fmt,...)
trace_t(* trace)(vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end, edict_t *passent, int contentmask)
edict_t * G_Find(edict_t *from, int fieldofs, char *match)
CONST PIXELFORMATDESCRIPTOR int
void Think_Delay(edict_t *ent)
float vectoyaw(vec3_t vec)
struct gclient_s * client
void(* sound)(edict_t *ent, int channel, int soundindex, float volume, float attenuation, float timeofs)
qboolean KillBox(edict_t *ent)
void T_Damage(edict_t *targ, edict_t *inflictor, edict_t *attacker, vec3_t dir, vec3_t point, vec3_t normal, int damage, int knockback, int dflags, int mod)
float * tv(float x, float y, float z)
void G_UseTargets(edict_t *ent, edict_t *activator)
void AngleVectors(vec3_t angles, vec3_t forward, vec3_t right, vec3_t up)
#define DAMAGE_NO_PROTECTION
int(* soundindex)(char *name)
vec_t VectorLength(vec3_t v)
void G_TouchSolids(edict_t *ent)
void G_SetMovedir(vec3_t angles, vec3_t movedir)
void G_ProjectSource(vec3_t point, vec3_t distance, vec3_t forward, vec3_t right, vec3_t result)
void G_InitEdict(edict_t *e)
void G_FreeEdict(edict_t *ed)
void *(* TagMalloc)(int size, int tag)
edict_t * G_PickTarget(char *targetname)
int Q_stricmp(char *s1, char *s2)
void(* centerprintf)(edict_t *ent, char *fmt,...)
void vectoangles(vec3_t value1, vec3_t angles)
void(* unlinkentity)(edict_t *ent)
void(* error)(char *fmt,...)
char * G_CopyString(char *in)
edict_t * findradius(edict_t *from, vec3_t org, float rad)
void(* touch)(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
void G_TouchTriggers(edict_t *ent)
int VectorCompare(vec3_t v1, vec3_t v2)
int(* BoxEdicts)(vec3_t mins, vec3_t maxs, edict_t **list, int maxcount, int areatype)
void Com_sprintf(char *dest, int size, char *fmt,...)