icculus quake2 doxygen
1.0 dev
|
|
Go to the source code of this file.
|
void | Use_Areaportal (edict_t *ent, edict_t *other, edict_t *activator) |
|
void | SP_func_areaportal (edict_t *ent) |
|
void | VelocityForDamage (int damage, vec3_t v) |
|
void | ClipGibVelocity (edict_t *ent) |
|
void | gib_think (edict_t *self) |
|
void | gib_touch (edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf) |
|
void | gib_die (edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point) |
|
void | ThrowGib (edict_t *self, char *gibname, int damage, int type) |
|
void | ThrowHead (edict_t *self, char *gibname, int damage, int type) |
|
void | ThrowClientHead (edict_t *self, int damage) |
|
void | debris_die (edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point) |
|
void | ThrowDebris (edict_t *self, char *modelname, float speed, vec3_t origin) |
|
void | BecomeExplosion1 (edict_t *self) |
|
void | BecomeExplosion2 (edict_t *self) |
|
void | path_corner_touch (edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf) |
|
void | SP_path_corner (edict_t *self) |
|
void | point_combat_touch (edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf) |
|
void | SP_point_combat (edict_t *self) |
|
void | TH_viewthing (edict_t *ent) |
|
void | SP_viewthing (edict_t *ent) |
|
void | SP_info_null (edict_t *self) |
|
void | SP_info_notnull (edict_t *self) |
|
static void | light_use (edict_t *self, edict_t *other, edict_t *activator) |
|
void | SP_light (edict_t *self) |
|
void | func_wall_use (edict_t *self, edict_t *other, edict_t *activator) |
|
void | SP_func_wall (edict_t *self) |
|
void | func_object_touch (edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf) |
|
void | func_object_release (edict_t *self) |
|
void | func_object_use (edict_t *self, edict_t *other, edict_t *activator) |
|
void | SP_func_object (edict_t *self) |
|
void | func_explosive_explode (edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point) |
|
void | func_explosive_use (edict_t *self, edict_t *other, edict_t *activator) |
|
void | func_explosive_spawn (edict_t *self, edict_t *other, edict_t *activator) |
|
void | SP_func_explosive (edict_t *self) |
|
void | barrel_touch (edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf) |
|
void | barrel_explode (edict_t *self) |
|
void | barrel_delay (edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point) |
|
void | SP_misc_explobox (edict_t *self) |
|
void | misc_blackhole_use (edict_t *ent, edict_t *other, edict_t *activator) |
|
void | misc_blackhole_think (edict_t *self) |
|
void | SP_misc_blackhole (edict_t *ent) |
|
void | misc_eastertank_think (edict_t *self) |
|
void | SP_misc_eastertank (edict_t *ent) |
|
void | misc_easterchick_think (edict_t *self) |
|
void | SP_misc_easterchick (edict_t *ent) |
|
void | misc_easterchick2_think (edict_t *self) |
|
void | SP_misc_easterchick2 (edict_t *ent) |
|
void | commander_body_think (edict_t *self) |
|
void | commander_body_use (edict_t *self, edict_t *other, edict_t *activator) |
|
void | commander_body_drop (edict_t *self) |
|
void | SP_monster_commander_body (edict_t *self) |
|
void | misc_banner_think (edict_t *ent) |
|
void | SP_misc_banner (edict_t *ent) |
|
void | misc_deadsoldier_die (edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point) |
|
void | SP_misc_deadsoldier (edict_t *ent) |
|
void | train_use (edict_t *self, edict_t *other, edict_t *activator) |
|
void | func_train_find (edict_t *self) |
|
void | misc_viper_use (edict_t *self, edict_t *other, edict_t *activator) |
|
void | SP_misc_viper (edict_t *ent) |
|
void | SP_misc_bigviper (edict_t *ent) |
|
void | misc_viper_bomb_touch (edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf) |
|
void | misc_viper_bomb_prethink (edict_t *self) |
|
void | misc_viper_bomb_use (edict_t *self, edict_t *other, edict_t *activator) |
|
void | SP_misc_viper_bomb (edict_t *self) |
|
void | misc_strogg_ship_use (edict_t *self, edict_t *other, edict_t *activator) |
|
void | SP_misc_strogg_ship (edict_t *ent) |
|
void | misc_satellite_dish_think (edict_t *self) |
|
void | misc_satellite_dish_use (edict_t *self, edict_t *other, edict_t *activator) |
|
void | SP_misc_satellite_dish (edict_t *ent) |
|
void | SP_light_mine1 (edict_t *ent) |
|
void | SP_light_mine2 (edict_t *ent) |
|
void | SP_misc_gib_arm (edict_t *ent) |
|
void | SP_misc_gib_leg (edict_t *ent) |
|
void | SP_misc_gib_head (edict_t *ent) |
|
void | SP_target_character (edict_t *self) |
|
void | target_string_use (edict_t *self, edict_t *other, edict_t *activator) |
|
void | SP_target_string (edict_t *self) |
|
static void | func_clock_reset (edict_t *self) |
|
static void | func_clock_format_countdown (edict_t *self) |
|
void | func_clock_think (edict_t *self) |
|
void | func_clock_use (edict_t *self, edict_t *other, edict_t *activator) |
|
void | SP_func_clock (edict_t *self) |
|
void | teleporter_touch (edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf) |
|
void | SP_misc_teleporter (edict_t *ent) |
|
void | SP_misc_teleporter_dest (edict_t *ent) |
|
◆ CLOCK_MESSAGE_SIZE
#define CLOCK_MESSAGE_SIZE 16 |
◆ START_OFF
◆ barrel_delay()
◆ barrel_explode()
Definition at line 887 of file g_misc.c.
899 spd = 1.5 * (float)self->
dmg / 200.0;
901 org[1] =
self->s.origin[1] +
crandom() *
self->size[1];
902 org[2] =
self->s.origin[2] +
crandom() *
self->size[2];
903 ThrowDebris (
self,
"models/objects/debris1/tris.md2", spd, org);
904 org[0] =
self->s.origin[0] +
crandom() *
self->size[0];
905 org[1] =
self->s.origin[1] +
crandom() *
self->size[1];
906 org[2] =
self->s.origin[2] +
crandom() *
self->size[2];
907 ThrowDebris (
self,
"models/objects/debris1/tris.md2", spd, org);
910 spd = 1.75 * (float)self->
dmg / 200.0;
912 ThrowDebris (
self,
"models/objects/debris3/tris.md2", spd, org);
914 org[0] +=
self->size[0];
915 ThrowDebris (
self,
"models/objects/debris3/tris.md2", spd, org);
917 org[1] +=
self->size[1];
918 ThrowDebris (
self,
"models/objects/debris3/tris.md2", spd, org);
920 org[0] +=
self->size[0];
921 org[1] +=
self->size[1];
922 ThrowDebris (
self,
"models/objects/debris3/tris.md2", spd, org);
925 spd = 2 *
self->dmg / 200;
926 org[0] =
self->s.origin[0] +
crandom() *
self->size[0];
927 org[1] =
self->s.origin[1] +
crandom() *
self->size[1];
928 org[2] =
self->s.origin[2] +
crandom() *
self->size[2];
929 ThrowDebris (
self,
"models/objects/debris2/tris.md2", spd, org);
930 org[0] =
self->s.origin[0] +
crandom() *
self->size[0];
931 org[1] =
self->s.origin[1] +
crandom() *
self->size[1];
932 org[2] =
self->s.origin[2] +
crandom() *
self->size[2];
933 ThrowDebris (
self,
"models/objects/debris2/tris.md2", spd, org);
934 org[0] =
self->s.origin[0] +
crandom() *
self->size[0];
935 org[1] =
self->s.origin[1] +
crandom() *
self->size[1];
936 org[2] =
self->s.origin[2] +
crandom() *
self->size[2];
937 ThrowDebris (
self,
"models/objects/debris2/tris.md2", spd, org);
938 org[0] =
self->s.origin[0] +
crandom() *
self->size[0];
939 org[1] =
self->s.origin[1] +
crandom() *
self->size[1];
940 org[2] =
self->s.origin[2] +
crandom() *
self->size[2];
941 ThrowDebris (
self,
"models/objects/debris2/tris.md2", spd, org);
942 org[0] =
self->s.origin[0] +
crandom() *
self->size[0];
943 org[1] =
self->s.origin[1] +
crandom() *
self->size[1];
944 org[2] =
self->s.origin[2] +
crandom() *
self->size[2];
945 ThrowDebris (
self,
"models/objects/debris2/tris.md2", spd, org);
946 org[0] =
self->s.origin[0] +
crandom() *
self->size[0];
947 org[1] =
self->s.origin[1] +
crandom() *
self->size[1];
948 org[2] =
self->s.origin[2] +
crandom() *
self->size[2];
949 ThrowDebris (
self,
"models/objects/debris2/tris.md2", spd, org);
950 org[0] =
self->s.origin[0] +
crandom() *
self->size[0];
951 org[1] =
self->s.origin[1] +
crandom() *
self->size[1];
952 org[2] =
self->s.origin[2] +
crandom() *
self->size[2];
953 ThrowDebris (
self,
"models/objects/debris2/tris.md2", spd, org);
954 org[0] =
self->s.origin[0] +
crandom() *
self->size[0];
955 org[1] =
self->s.origin[1] +
crandom() *
self->size[1];
956 org[2] =
self->s.origin[2] +
crandom() *
self->size[2];
957 ThrowDebris (
self,
"models/objects/debris2/tris.md2", spd, org);
Referenced by barrel_delay().
◆ barrel_touch()
◆ BecomeExplosion1()
◆ BecomeExplosion2()
◆ ClipGibVelocity()
◆ commander_body_drop()
◆ commander_body_think()
◆ commander_body_use()
◆ debris_die()
◆ func_clock_format_countdown()
static void func_clock_format_countdown |
( |
edict_t * |
self | ) |
|
|
static |
Definition at line 1648 of file g_misc.c.
1650 if (self->
style == 0)
1656 if (self->
style == 1)
1660 self->message[3] =
'0';
1664 if (self->
style == 2)
1668 self->message[3] =
'0';
1670 self->message[6] =
'0';
Referenced by func_clock_think().
◆ func_clock_reset()
◆ func_clock_think()
Definition at line 1675 of file g_misc.c.
1700 ltime = localtime(&gmtime);
1703 self->message[3] =
'0';
1705 self->message[6] =
'0';
1708 self->enemy->message =
self->message;
1709 self->enemy->use (self->
enemy,
self,
self);
1719 savetarget =
self->target;
1720 savemessage =
self->message;
1721 self->target =
self->pathtarget;
1722 self->message =
NULL;
1724 self->target = savetarget;
1725 self->message = savemessage;
1737 self->nextthink =
level.time + 1;
Referenced by SP_func_clock().
◆ func_clock_use()
◆ func_explosive_explode()
Definition at line 745 of file g_misc.c.
782 chunkorigin[0] = origin[0] +
crandom() * size[0];
783 chunkorigin[1] = origin[1] +
crandom() * size[1];
784 chunkorigin[2] = origin[2] +
crandom() * size[2];
785 ThrowDebris (
self,
"models/objects/debris1/tris.md2", 1, chunkorigin);
795 chunkorigin[0] = origin[0] +
crandom() * size[0];
796 chunkorigin[1] = origin[1] +
crandom() * size[1];
797 chunkorigin[2] = origin[2] +
crandom() * size[2];
798 ThrowDebris (
self,
"models/objects/debris2/tris.md2", 2, chunkorigin);
Referenced by func_explosive_use(), and SP_func_explosive().
◆ func_explosive_spawn()
◆ func_explosive_use()
◆ func_object_release()
◆ func_object_touch()
◆ func_object_use()
◆ func_train_find()
◆ func_wall_use()
◆ gib_die()
◆ gib_think()
◆ gib_touch()
◆ light_use()
◆ misc_banner_think()
◆ misc_blackhole_think()
◆ misc_blackhole_use()
◆ misc_deadsoldier_die()
◆ misc_easterchick2_think()
◆ misc_easterchick_think()
◆ misc_eastertank_think()
◆ misc_satellite_dish_think()
◆ misc_satellite_dish_use()
◆ misc_strogg_ship_use()
◆ misc_viper_bomb_prethink()
Definition at line 1339 of file g_misc.c.
1344 self->groundentity =
NULL;
1346 diff =
self->timestamp -
level.time;
1353 diff =
self->s.angles[2];
1355 self->s.angles[2] = diff + 10;
Referenced by misc_viper_bomb_use().
◆ misc_viper_bomb_touch()
◆ misc_viper_bomb_use()
◆ misc_viper_use()
◆ path_corner_touch()
Definition at line 342 of file g_misc.c.
357 savetarget =
self->
target;
358 self->target =
self->pathtarget;
360 self->target = savetarget;
371 v[2] += next->
mins[2];
372 v[2] -= other->
mins[2];
Referenced by SP_path_corner().
◆ point_combat_touch()
Definition at line 422 of file g_misc.c.
431 other->
target =
self->target;
459 savetarget =
self->target;
460 self->target =
self->pathtarget;
462 activator = other->
enemy;
470 self->target = savetarget;
Referenced by SP_point_combat().
◆ SP_func_areaportal()
◆ SP_func_clock()
Definition at line 1750 of file g_misc.c.
1767 self->count = 60*60;;
1778 self->nextthink =
level.time + 1;
◆ SP_func_explosive()
◆ SP_func_object()
◆ SP_func_wall()
Definition at line 612 of file g_misc.c.
634 self->spawnflags |= 1;
642 gi.
dprintf(
"func_wall START_ON without TOGGLE\n");
643 self->spawnflags |= 2;
◆ SP_info_notnull()
◆ SP_info_null()
◆ SP_light()
◆ SP_light_mine1()
◆ SP_light_mine2()
◆ SP_misc_banner()
◆ SP_misc_bigviper()
◆ SP_misc_blackhole()
◆ SP_misc_deadsoldier()
◆ SP_misc_easterchick()
◆ SP_misc_easterchick2()
◆ SP_misc_eastertank()
◆ SP_misc_explobox()
Definition at line 974 of file g_misc.c.
989 self->model =
"models/objects/barrels/tris.md2";
◆ SP_misc_gib_arm()
◆ SP_misc_gib_head()
◆ SP_misc_gib_leg()
◆ SP_misc_satellite_dish()
◆ SP_misc_strogg_ship()
◆ SP_misc_teleporter()
◆ SP_misc_teleporter_dest()
◆ SP_misc_viper()
◆ SP_misc_viper_bomb()
◆ SP_monster_commander_body()
Definition at line 1170 of file g_misc.c.
1174 self->model =
"models/monsters/commandr/tris.md2";
◆ SP_path_corner()
◆ SP_point_combat()
◆ SP_target_character()
◆ SP_target_string()
◆ SP_viewthing()
◆ target_string_use()
◆ teleporter_touch()
◆ TH_viewthing()
◆ ThrowClientHead()
Definition at line 229 of file g_misc.c.
236 gibname =
"models/objects/gibs/head2/tris.md2";
241 gibname =
"models/objects/gibs/skull/tris.md2";
245 self->s.origin[2] += 32;
264 self->client->anim_end =
self->s.frame;
Referenced by body_die(), and player_die().
◆ ThrowDebris()
◆ ThrowGib()
Definition at line 135 of file g_misc.c.
Referenced by actor_die(), berserk_die(), body_die(), boss2_die(), BossExplode(), brain_die(), chick_die(), flipper_die(), gladiator_die(), gunner_die(), hover_die(), infantry_die(), insane_die(), makron_die(), medic_die(), misc_deadsoldier_die(), mutant_die(), parasite_die(), player_die(), soldier_die(), and tank_die().
◆ ThrowHead()
Definition at line 183 of file g_misc.c.
193 self->s.modelindex2 = 0;
196 self->s.effects |=
EF_GIB;
Referenced by actor_die(), berserk_die(), boss2_die(), BossExplode(), brain_die(), chick_die(), flipper_die(), gladiator_die(), gunner_die(), hover_die(), infantry_die(), insane_die(), makron_die(), medic_die(), misc_deadsoldier_die(), mutant_die(), parasite_die(), soldier_die(), and tank_die().
◆ train_use()
◆ Use_Areaportal()
◆ VelocityForDamage()
void ThrowHead(edict_t *self, char *gibname, int damage, int type)
void misc_strogg_ship_use(edict_t *self, edict_t *other, edict_t *activator)
void misc_deadsoldier_die(edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point)
void(* dprintf)(char *fmt,...)
void misc_viper_bomb_use(edict_t *self, edict_t *other, edict_t *activator)
#define MASK_MONSTERSOLID
void barrel_delay(edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point)
void func_object_use(edict_t *self, edict_t *other, edict_t *activator)
#define VectorSubtract(a, b, c)
static void light_use(edict_t *self, edict_t *other, edict_t *activator)
void(* WritePosition)(vec3_t pos)
void(* multicast)(vec3_t origin, multicast_t to)
void barrel_touch(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
void TH_viewthing(edict_t *ent)
void misc_viper_use(edict_t *self, edict_t *other, edict_t *activator)
void path_corner_touch(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
qboolean M_walkmove(edict_t *ent, float yaw, float dist)
void func_clock_think(edict_t *self)
void misc_banner_think(edict_t *ent)
void target_string_use(edict_t *self, edict_t *other, edict_t *activator)
void VectorScale(vec3_t in, vec_t scale, vec3_t out)
void(* stand)(edict_t *self)
void func_train_find(edict_t *self)
edict_t * G_Find(edict_t *from, int fieldofs, char *match)
struct gclient_s * client
void(* sound)(edict_t *ent, int channel, int soundindex, float volume, float attenuation, float timeofs)
void M_droptofloor(edict_t *ent)
float vectoyaw(vec3_t vec)
void commander_body_use(edict_t *self, edict_t *other, edict_t *activator)
void misc_easterchick2_think(edict_t *self)
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)
void BecomeExplosion2(edict_t *self)
void barrel_explode(edict_t *self)
void commander_body_drop(edict_t *self)
void train_next(edict_t *self)
void func_object_touch(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
void teleporter_touch(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
void func_wall_use(edict_t *self, edict_t *other, edict_t *activator)
void debris_die(edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point)
void AngleVectors(vec3_t angles, vec3_t forward, vec3_t right, vec3_t up)
void commander_body_think(edict_t *self)
#define PMF_TIME_TELEPORT
void vectoangles(vec3_t vec, vec3_t angles)
void gib_touch(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
void G_FreeEdict(edict_t *e)
void point_combat_touch(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
void(* configstring)(int num, char *string)
void func_object_release(edict_t *self)
void(* SetAreaPortalState)(int portalnum, qboolean open)
int(* soundindex)(char *name)
int(* modelindex)(char *name)
void misc_eastertank_think(edict_t *self)
void Use_Areaportal(edict_t *ent, edict_t *other, edict_t *activator)
void(* think)(edict_t *self)
void func_clock_use(edict_t *self, edict_t *other, edict_t *activator)
vec_t VectorNormalize(vec3_t v)
void *(* TagMalloc)(int size, int tag)
void BecomeExplosion1(edict_t *self)
static void func_clock_reset(edict_t *self)
void misc_blackhole_use(edict_t *ent, edict_t *other, edict_t *activator)
void misc_blackhole_think(edict_t *self)
void misc_viper_bomb_prethink(edict_t *self)
void(* setmodel)(edict_t *ent, char *name)
#define VectorAdd(a, b, c)
void(* unlinkentity)(edict_t *ent)
void ClipGibVelocity(edict_t *ent)
void func_explosive_use(edict_t *self, edict_t *other, edict_t *activator)
void ThrowGib(edict_t *self, char *gibname, int damage, int type)
void func_explosive_spawn(edict_t *self, edict_t *other, edict_t *activator)
void(* use)(edict_t *self, edict_t *other, edict_t *activator)
monsterinfo_t monsterinfo
void gib_die(edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point)
void misc_viper_bomb_touch(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
void G_UseTargets(edict_t *ent, edict_t *activator)
#define CLOCK_MESSAGE_SIZE
void VectorMA(vec3_t veca, float scale, vec3_t vecb, vec3_t vecc)
qboolean KillBox(edict_t *ent)
void(* touch)(edict_t *self, edict_t *other, cplane_t *plane, csurface_t *surf)
void misc_easterchick_think(edict_t *self)
void gib_think(edict_t *self)
static void func_clock_format_countdown(edict_t *self)
void func_explosive_explode(edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point)
#define VectorSet(v, x, y, z)
void misc_satellite_dish_think(edict_t *self)
void VelocityForDamage(int damage, vec3_t v)
void train_resume(edict_t *self)
edict_t * G_PickTarget(char *targetname)
void(* linkentity)(edict_t *ent)
void train_use(edict_t *self, edict_t *other, edict_t *activator)
void misc_satellite_dish_use(edict_t *self, edict_t *other, edict_t *activator)
void(* die)(edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point)
void Com_sprintf(char *dest, int size, char *fmt,...)
void ThrowDebris(edict_t *self, char *modelname, float speed, vec3_t origin)
void T_RadiusDamage(edict_t *inflictor, edict_t *attacker, float damage, edict_t *ignore, float radius, int mod)