Quake II RTX doxygen
1.0 dev
|
|
#include "g_local.h"
#include "m_chick.h"
Go to the source code of this file.
|
qboolean | visible (edict_t *self, edict_t *other) |
|
void | chick_stand (edict_t *self) |
|
void | chick_run (edict_t *self) |
|
void | chick_reslash (edict_t *self) |
|
void | chick_rerocket (edict_t *self) |
|
void | chick_attack1 (edict_t *self) |
|
void | ChickMoan (edict_t *self) |
|
void | chick_fidget (edict_t *self) |
|
void | chick_walk (edict_t *self) |
|
void | chick_pain (edict_t *self, edict_t *other, float kick, int damage) |
|
void | chick_dead (edict_t *self) |
|
void | chick_die (edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point) |
|
void | chick_duck_down (edict_t *self) |
|
void | chick_duck_hold (edict_t *self) |
|
void | chick_duck_up (edict_t *self) |
|
void | chick_dodge (edict_t *self, edict_t *attacker, float eta) |
|
void | ChickSlash (edict_t *self) |
|
void | ChickRocket (edict_t *self) |
|
void | Chick_PreAttack1 (edict_t *self) |
|
void | ChickReload (edict_t *self) |
|
void | chick_slash (edict_t *self) |
|
void | chick_melee (edict_t *self) |
|
void | chick_attack (edict_t *self) |
|
void | chick_sight (edict_t *self, edict_t *other) |
|
void | SP_monster_chick (edict_t *self) |
|
|
static int | sound_missile_prelaunch |
|
static int | sound_missile_launch |
|
static int | sound_melee_swing |
|
static int | sound_melee_hit |
|
static int | sound_missile_reload |
|
static int | sound_death1 |
|
static int | sound_death2 |
|
static int | sound_fall_down |
|
static int | sound_idle1 |
|
static int | sound_idle2 |
|
static int | sound_pain1 |
|
static int | sound_pain2 |
|
static int | sound_pain3 |
|
static int | sound_sight |
|
static int | sound_search |
|
mframe_t | chick_frames_fidget [] |
|
mmove_t | chick_move_fidget = {FRAME_stand201, FRAME_stand230, chick_frames_fidget, chick_stand} |
|
mframe_t | chick_frames_stand [] |
|
mmove_t | chick_move_stand = {FRAME_stand101, FRAME_stand130, chick_frames_stand, NULL} |
|
mframe_t | chick_frames_start_run [] |
|
mmove_t | chick_move_start_run = {FRAME_walk01, FRAME_walk10, chick_frames_start_run, chick_run} |
|
mframe_t | chick_frames_run [] |
|
mmove_t | chick_move_run = {FRAME_walk11, FRAME_walk20, chick_frames_run, NULL} |
|
mframe_t | chick_frames_walk [] |
|
mmove_t | chick_move_walk = {FRAME_walk11, FRAME_walk20, chick_frames_walk, NULL} |
|
mframe_t | chick_frames_pain1 [] |
|
mmove_t | chick_move_pain1 = {FRAME_pain101, FRAME_pain105, chick_frames_pain1, chick_run} |
|
mframe_t | chick_frames_pain2 [] |
|
mmove_t | chick_move_pain2 = {FRAME_pain201, FRAME_pain205, chick_frames_pain2, chick_run} |
|
mframe_t | chick_frames_pain3 [] |
|
mmove_t | chick_move_pain3 = {FRAME_pain301, FRAME_pain321, chick_frames_pain3, chick_run} |
|
mframe_t | chick_frames_death2 [] |
|
mmove_t | chick_move_death2 = {FRAME_death201, FRAME_death223, chick_frames_death2, chick_dead} |
|
mframe_t | chick_frames_death1 [] |
|
mmove_t | chick_move_death1 = {FRAME_death101, FRAME_death112, chick_frames_death1, chick_dead} |
|
mframe_t | chick_frames_duck [] |
|
mmove_t | chick_move_duck = {FRAME_duck01, FRAME_duck07, chick_frames_duck, chick_run} |
|
mframe_t | chick_frames_start_attack1 [] |
|
mmove_t | chick_move_start_attack1 = {FRAME_attak101, FRAME_attak113, chick_frames_start_attack1, NULL} |
|
mframe_t | chick_frames_attack1 [] |
|
mmove_t | chick_move_attack1 = {FRAME_attak114, FRAME_attak127, chick_frames_attack1, NULL} |
|
mframe_t | chick_frames_end_attack1 [] |
|
mmove_t | chick_move_end_attack1 = {FRAME_attak128, FRAME_attak132, chick_frames_end_attack1, chick_run} |
|
mframe_t | chick_frames_slash [] |
|
mmove_t | chick_move_slash = {FRAME_attak204, FRAME_attak212, chick_frames_slash, NULL} |
|
mframe_t | chick_frames_end_slash [] |
|
mmove_t | chick_move_end_slash = {FRAME_attak213, FRAME_attak216, chick_frames_end_slash, chick_run} |
|
mframe_t | chick_frames_start_slash [] |
|
mmove_t | chick_move_start_slash = {FRAME_attak201, FRAME_attak203, chick_frames_start_slash, chick_slash} |
|
◆ chick_attack()
void chick_attack |
( |
edict_t * |
self | ) |
|
◆ chick_attack1()
void chick_attack1 |
( |
edict_t * |
self | ) |
|
◆ chick_dead()
void chick_dead |
( |
edict_t * |
self | ) |
|
Definition at line 283 of file m_chick.c.
285 VectorSet(self->mins, -16, -16, 0);
286 VectorSet(self->maxs, 16, 16, 16);
288 self->svflags |= SVF_DEADMONSTER;
◆ chick_die()
void chick_die |
( |
edict_t * |
self, |
|
|
edict_t * |
inflictor, |
|
|
edict_t * |
attacker, |
|
|
int |
damage, |
|
|
vec3_t |
point |
|
) |
| |
Definition at line 337 of file m_chick.c.
342 if (self->health <= self->gib_health) {
343 gi.sound(
self, CHAN_VOICE,
gi.soundindex(
"misc/udeath.wav"), 1, ATTN_NORM, 0);
344 for (n = 0; n < 2; n++)
346 for (n = 0; n < 4; n++)
Referenced by SP_monster_chick().
◆ chick_dodge()
void chick_dodge |
( |
edict_t * |
self, |
|
|
edict_t * |
attacker, |
|
|
float |
eta |
|
) |
| |
◆ chick_duck_down()
void chick_duck_down |
( |
edict_t * |
self | ) |
|
◆ chick_duck_hold()
void chick_duck_hold |
( |
edict_t * |
self | ) |
|
◆ chick_duck_up()
void chick_duck_up |
( |
edict_t * |
self | ) |
|
◆ chick_fidget()
void chick_fidget |
( |
edict_t * |
self | ) |
|
◆ chick_melee()
void chick_melee |
( |
edict_t * |
self | ) |
|
◆ chick_pain()
void chick_pain |
( |
edict_t * |
self, |
|
|
edict_t * |
other, |
|
|
float |
kick, |
|
|
int |
damage |
|
) |
| |
Definition at line 252 of file m_chick.c.
256 if (self->health < (self->max_health / 2))
259 if (
level.
time < self->pain_debounce_time)
262 self->pain_debounce_time =
level.
time + 3;
272 if (
skill->value == 3)
277 else if (damage <= 25)
Referenced by SP_monster_chick().
◆ Chick_PreAttack1()
void Chick_PreAttack1 |
( |
edict_t * |
self | ) |
|
◆ chick_rerocket()
void chick_rerocket |
( |
edict_t * |
self | ) |
|
Definition at line 505 of file m_chick.c.
507 if (self->enemy->health > 0) {
509 if (
visible(
self, self->enemy))
◆ chick_reslash()
void chick_reslash |
( |
edict_t * |
self | ) |
|
Definition at line 545 of file m_chick.c.
547 if (self->enemy->health > 0) {
◆ chick_run()
void chick_run |
( |
edict_t * |
self | ) |
|
◆ chick_sight()
void chick_sight |
( |
edict_t * |
self, |
|
|
edict_t * |
other |
|
) |
| |
◆ chick_slash()
void chick_slash |
( |
edict_t * |
self | ) |
|
◆ chick_stand()
void chick_stand |
( |
edict_t * |
self | ) |
|
◆ chick_walk()
void chick_walk |
( |
edict_t * |
self | ) |
|
◆ ChickMoan()
void ChickMoan |
( |
edict_t * |
self | ) |
|
◆ ChickReload()
void ChickReload |
( |
edict_t * |
self | ) |
|
◆ ChickRocket()
void ChickRocket |
( |
edict_t * |
self | ) |
|
Definition at line 430 of file m_chick.c.
440 VectorCopy(self->enemy->s.origin, vec);
441 vec[2] +=
self->enemy->viewheight;
442 VectorSubtract(vec, start, dir);
◆ ChickSlash()
void ChickSlash |
( |
edict_t * |
self | ) |
|
◆ SP_monster_chick()
void SP_monster_chick |
( |
edict_t * |
self | ) |
|
Definition at line 594 of file m_chick.c.
618 self->solid = SOLID_BBOX;
619 self->s.modelindex =
gi.modelindex(
"models/monsters/bitch/tris.md2");
620 VectorSet(self->mins, -16, -16, 0);
621 VectorSet(self->maxs, 16, 16, 56);
624 self->gib_health = -70;
◆ visible()
qboolean visible |
( |
edict_t * |
self, |
|
|
edict_t * |
other |
|
) |
| |
Definition at line 268 of file g_ai.c.
274 VectorCopy(self->s.origin, spot1);
275 spot1[2] +=
self->viewheight;
276 VectorCopy(
other->s.origin, spot2);
277 spot2[2] +=
other->viewheight;
280 if (trace.fraction == 1.0)
Referenced by chick_rerocket().
◆ chick_frames_attack1
◆ chick_frames_death1
◆ chick_frames_death2
◆ chick_frames_duck
◆ chick_frames_end_attack1
◆ chick_frames_end_slash
◆ chick_frames_fidget
◆ chick_frames_pain1
◆ chick_frames_pain2
◆ chick_frames_pain3
◆ chick_frames_run
◆ chick_frames_slash
◆ chick_frames_stand
◆ chick_frames_start_attack1
◆ chick_frames_start_run
◆ chick_frames_start_slash
◆ chick_frames_walk
◆ chick_move_attack1
◆ chick_move_death1
◆ chick_move_death2
◆ chick_move_duck
◆ chick_move_end_attack1
◆ chick_move_end_slash
◆ chick_move_fidget
◆ chick_move_pain1
◆ chick_move_pain2
◆ chick_move_pain3
◆ chick_move_run
◆ chick_move_slash
◆ chick_move_stand
◆ chick_move_start_attack1
◆ chick_move_start_run
◆ chick_move_start_slash
◆ chick_move_walk
◆ sound_death1
◆ sound_death2
◆ sound_fall_down
◆ sound_idle1
◆ sound_idle2
◆ sound_melee_hit
◆ sound_melee_swing
◆ sound_missile_launch
◆ sound_missile_prelaunch
int sound_missile_prelaunch |
|
static |
◆ sound_missile_reload
◆ sound_pain1
◆ sound_pain2
◆ sound_pain3
◆ sound_search
◆ sound_sight
void chick_sight(edict_t *self, edict_t *other)
void G_ProjectSource(const vec3_t point, const vec3_t distance, const vec3_t forward, const vec3_t right, vec3_t result)
qboolean visible(edict_t *self, edict_t *other)
static int sound_missile_reload
void ThrowGib(edict_t *self, char *gibname, int damage, int type)
void ai_charge(edict_t *self, float dist)
void chick_reslash(edict_t *self)
mmove_t chick_move_death2
void ChickRocket(edict_t *self)
void chick_stand(edict_t *self)
mmove_t chick_move_start_slash
static int sound_missile_prelaunch
qboolean fire_hit(edict_t *self, vec3_t aim, int damage, int kick)
void chick_rerocket(edict_t *self)
void walkmonster_start(edict_t *self)
void chick_duck_down(edict_t *self)
void ChickSlash(edict_t *self)
mmove_t chick_move_attack1
void G_FreeEdict(edict_t *e)
mmove_t chick_move_start_attack1
mmove_t chick_move_start_run
static int sound_missile_launch
mmove_t chick_move_death1
void chick_pain(edict_t *self, edict_t *other, float kick, int damage)
mmove_t chick_move_fidget
static int sound_fall_down
void ChickReload(edict_t *self)
void chick_duck_hold(edict_t *self)
void ai_walk(edict_t *self, float dist)
void AngleVectors(vec3_t angles, vec3_t forward, vec3_t right, vec3_t up)
void chick_walk(edict_t *self)
void Chick_PreAttack1(edict_t *self)
mmove_t chick_move_end_slash
void chick_duck_up(edict_t *self)
void chick_die(edict_t *self, edict_t *inflictor, edict_t *attacker, int damage, vec3_t point)
void chick_attack(edict_t *self)
void monster_fire_rocket(edict_t *self, vec3_t start, vec3_t dir, int damage, int speed, int flashtype)
void ai_move(edict_t *self, float dist)
static int sound_melee_hit
void chick_melee(edict_t *self)
void ai_run(edict_t *self, float dist)
static int sound_melee_swing
const vec3_t monster_flash_offset[256]
void ThrowHead(edict_t *self, char *gibname, int damage, int type)
void chick_dodge(edict_t *self, edict_t *attacker, float eta)
int range(edict_t *self, edict_t *other)
mmove_t chick_move_end_attack1
void chick_attack1(edict_t *self)
void chick_run(edict_t *self)
vec_t VectorNormalize(vec3_t v)