#include "g_local.h"
Go to the source code of this file.
Macros | |
#define | MAXCHOICES 8 |
Functions | |
void | G_ProjectSource (const vec3_t point, const vec3_t distance, const vec3_t forward, const vec3_t right, vec3_t result) |
edict_t * | G_Find (edict_t *from, int fieldofs, char *match) |
edict_t * | findradius (edict_t *from, vec3_t org, float rad) |
edict_t * | G_PickTarget (char *targetname) |
void | Think_Delay (edict_t *ent) |
void | G_UseTargets (edict_t *ent, edict_t *activator) |
float * | tv (float x, float y, float z) |
char * | vtos (vec3_t v) |
void | G_SetMovedir (vec3_t angles, vec3_t movedir) |
float | vectoyaw (vec3_t vec) |
void | vectoangles (vec3_t value1, vec3_t angles) |
char * | G_CopyString (char *in) |
void | G_InitEdict (edict_t *e) |
edict_t * | G_Spawn (void) |
void | G_FreeEdict (edict_t *ed) |
void | G_TouchTriggers (edict_t *ent) |
void | G_TouchSolids (edict_t *ent) |
qboolean | KillBox (edict_t *ent) |
Variables | |
vec3_t | VEC_UP = {0, -1, 0} |
vec3_t | MOVEDIR_UP = {0, 0, 1} |
vec3_t | VEC_DOWN = {0, -2, 0} |
vec3_t | MOVEDIR_DOWN = {0, 0, -1} |
edict_t* findradius | ( | edict_t * | from, |
vec3_t | org, | ||
float | rad | ||
) |
Definition at line 75 of file g_utils.c.
Referenced by bfg_explode(), bfg_think(), medic_FindDeadMonster(), and T_RadiusDamage().
char* G_CopyString | ( | char * | in | ) |
edict_t* G_Find | ( | edict_t * | from, |
int | fieldofs, | ||
char * | match | ||
) |
Definition at line 43 of file g_utils.c.
Referenced by BeginIntermission(), door_use_areaportals(), EndDMLevel(), func_clock_think(), G_PickTarget(), G_UseTargets(), misc_viper_bomb_use(), monster_start_go(), SelectCoopSpawnPoint(), SelectFarthestDeathmatchSpawnPoint(), SelectRandomDeathmatchSpawnPoint(), SelectSpawnPoint(), SP_FixCoopSpots(), target_laser_start(), target_lightramp_use(), and teleporter_touch().
void G_FreeEdict | ( | edict_t * | ed | ) |
Definition at line 421 of file g_utils.c.
Referenced by ai_run(), BecomeExplosion1(), BecomeExplosion2(), bfg_explode(), bfg_touch(), blaster_touch(), Cmd_Give_f(), debris_die(), Drop_Ammo(), drop_make_touchable(), droptofloor(), fire_bfg(), fire_blaster(), fire_rocket(), flare_think(), func_explosive_explode(), G_UseTargets(), gib_die(), gib_think(), Grenade_Explode(), Grenade_Touch(), MegaHealth_think(), misc_blackhole_use(), monster_start(), multi_trigger(), rocket_touch(), SP_func_clock(), SP_func_explosive(), SP_info_null(), SP_info_player_coop(), SP_info_player_deathmatch(), SP_item_health(), SP_item_health_large(), SP_item_health_mega(), SP_item_health_small(), SP_light(), SP_misc_actor(), SP_misc_deadsoldier(), SP_misc_explobox(), SP_misc_gib_arm(), SP_misc_gib_head(), SP_misc_gib_leg(), SP_misc_insane(), SP_misc_strogg_ship(), SP_misc_teleporter(), SP_misc_viper(), SP_monster_berserk(), SP_monster_boss2(), SP_monster_boss3_stand(), SP_monster_brain(), SP_monster_chick(), SP_monster_flipper(), SP_monster_floater(), SP_monster_flyer(), SP_monster_gladiator(), SP_monster_gunner(), SP_monster_hover(), SP_monster_infantry(), SP_monster_jorg(), SP_monster_makron(), SP_monster_medic(), SP_monster_mutant(), SP_monster_parasite(), SP_monster_soldier(), SP_monster_soldier_light(), SP_monster_soldier_ss(), SP_monster_supertank(), SP_monster_tank(), SP_path_corner(), SP_point_combat(), SP_target_changelevel(), SP_target_goal(), SP_target_help(), SP_target_lightramp(), SP_target_secret(), SP_trigger_gravity(), SP_turret_driver(), SpawnEntities(), SpawnItem(), target_crosslevel_target_think(), target_lightramp_use(), Think_Delay(), ThrowDebris(), ThrowGib(), ThrowHead(), TossClientWeapon(), Touch_Item(), trigger_crosslevel_trigger_use(), trigger_push_touch(), turret_breach_finish_init(), Use_Boss3(), use_target_goal(), and use_target_secret().
void G_InitEdict | ( | edict_t * | e | ) |
Definition at line 372 of file g_utils.c.
Referenced by ClientBegin(), ClientBeginDeathmatch(), and G_Spawn().
edict_t* G_PickTarget | ( | char * | targetname | ) |
Definition at line 114 of file g_utils.c.
Referenced by actor_use(), FoundTarget(), func_train_find(), monster_start_go(), path_corner_touch(), point_combat_touch(), target_actor_touch(), train_next(), trigger_elevator_init(), trigger_elevator_use(), turret_breach_finish_init(), and turret_driver_link().
void G_ProjectSource | ( | const vec3_t | point, |
const vec3_t | distance, | ||
const vec3_t | forward, | ||
const vec3_t | right, | ||
vec3_t | result | ||
) |
Definition at line 23 of file g_utils.c.
Referenced by actorMachineGun(), ai_run(), boss2_firebullet_left(), boss2_firebullet_right(), Boss2Rocket(), ChickRocket(), Drop_Item(), floater_fire_blaster(), floater_zap(), flyer_fire(), GladiatorGun(), GunnerFire(), GunnerGrenade(), hover_fire_blaster(), InfantryMachineGun(), jorg_firebullet_left(), jorg_firebullet_right(), jorgBFG(), makronBFG(), MakronHyperblaster(), MakronRailgun(), medic_cable_attack(), medic_fire_blaster(), P_ProjectSource(), parasite_drain_attack(), soldier_fire(), supertankMachineGun(), supertankRocket(), TankBlaster(), TankMachineGun(), and TankRocket().
void G_SetMovedir | ( | vec3_t | angles, |
vec3_t | movedir | ||
) |
Definition at line 296 of file g_utils.c.
Referenced by InitTrigger(), SP_func_button(), SP_func_door(), SP_func_water(), SP_target_actor(), SP_target_blaster(), SP_target_spawner(), SP_target_splash(), SP_trigger_multiple(), and target_laser_start().
edict_t* G_Spawn | ( | void | ) |
Definition at line 391 of file g_utils.c.
Referenced by ai_run(), Cmd_Give_f(), CreateTargetChangeLevel(), Drop_Item(), fire_bfg(), fire_blaster(), fire_flaregun(), fire_grenade(), fire_grenade2(), fire_rocket(), G_UseTargets(), InitBodyQue(), jorg_dead(), makron_die(), MakronToss(), plat_spawn_inside_trigger(), PlayerNoise(), PlayerTrail_Init(), SP_CreateCoopSpots(), SP_misc_teleporter(), SpawnEntities(), Think_SpawnDoorTrigger(), ThrowDebris(), ThrowGib(), and use_target_spawner().
void G_TouchTriggers | ( | edict_t * | ent | ) |
Definition at line 443 of file g_utils.c.
Referenced by ClientThink(), SV_movestep(), SV_Physics_Step(), SV_Push(), SV_PushEntity(), and SV_StepDirection().
void G_UseTargets | ( | edict_t * | ent, |
edict_t * | activator | ||
) |
Definition at line 166 of file g_utils.c.
Referenced by button_wait(), door_go_up(), func_clock_think(), func_explosive_explode(), func_timer_think(), misc_viper_bomb_touch(), monster_death_use(), multi_trigger(), path_corner_touch(), point_combat_touch(), SP_trigger_always(), target_actor_touch(), target_crosslevel_target_think(), target_explosion_explode(), Think_Delay(), Touch_Item(), train_wait(), trigger_key_use(), trigger_relay_use(), use_target_goal(), and use_target_secret().
qboolean KillBox | ( | edict_t * | ent | ) |
Definition at line 515 of file g_utils.c.
Referenced by func_explosive_spawn(), func_object_use(), func_wall_use(), monster_triggered_spawn(), PutClientInServer(), teleporter_touch(), use_killbox(), and use_target_spawner().
void Think_Delay | ( | edict_t * | ent | ) |
Definition at line 144 of file g_utils.c.
Referenced by G_UseTargets().
float* tv | ( | float | x, |
float | y, | ||
float | z | ||
) |
Definition at line 248 of file g_utils.c.
Referenced by droptofloor(), NET_Sleep(), and os_select().
void vectoangles | ( | vec3_t | value1, |
vec3_t | angles | ||
) |
Definition at line 330 of file g_utils.c.
Referenced by fire_bfg(), fire_blaster(), fire_flaregun(), fire_grenade(), fire_grenade2(), fire_lead(), fire_rocket(), flare_sparks(), gib_touch(), MakronHyperblaster(), medic_cable_attack(), misc_viper_bomb_prethink(), parasite_drain_attack_ok(), soldier_fire(), TankMachineGun(), turret_driver_link(), and turret_driver_think().
float vectoyaw | ( | vec3_t | vec | ) |
Definition at line 310 of file g_utils.c.
Referenced by actor_pain(), actor_use(), ai_charge(), ai_checkattack(), ai_run(), ai_stand(), barrel_touch(), Boss2_CheckAttack(), FindTarget(), HuntTarget(), Jorg_CheckAttack(), Makron_CheckAttack(), MakronSpawn(), monster_start_go(), path_corner_touch(), PlayerTrail_Add(), and target_actor_touch().
char* vtos | ( | vec3_t | v | ) |
Definition at line 275 of file g_utils.c.
Referenced by actor_use(), droptofloor(), flymonster_start_go(), FoundTarget(), monster_start(), monster_start_go(), point_combat_touch(), SP_func_clock(), SP_func_door_rotating(), SP_func_timer(), SP_func_train(), SP_misc_actor(), SP_misc_strogg_ship(), SP_misc_viper(), SP_path_corner(), SP_target_actor(), SP_target_changelevel(), SP_target_earthquake(), SP_target_help(), SP_target_lightramp(), SP_target_speaker(), SP_trigger_gravity(), SP_trigger_key(), SP_trigger_once(), SP_turret_driver(), SpawnItem(), target_laser_start(), target_lightramp_use(), train_next(), turret_breach_finish_init(), and walkmonster_start_go().
vec3_t MOVEDIR_DOWN = {0, 0, -1} |
Definition at line 294 of file g_utils.c.
Referenced by G_SetMovedir().
vec3_t MOVEDIR_UP = {0, 0, 1} |
Definition at line 292 of file g_utils.c.
Referenced by G_SetMovedir().
vec3_t VEC_DOWN = {0, -2, 0} |
Definition at line 293 of file g_utils.c.
Referenced by G_SetMovedir().
vec3_t VEC_UP = {0, -1, 0} |
Definition at line 291 of file g_utils.c.
Referenced by G_SetMovedir().