Quake II RTX doxygen  1.0 dev
m_boss3.c File Reference
#include "g_local.h"
#include "m_boss32.h"

Go to the source code of this file.

Functions

void Use_Boss3 (edict_t *ent, edict_t *other, edict_t *activator)
 
void Think_Boss3Stand (edict_t *ent)
 
void SP_monster_boss3_stand (edict_t *self)
 

Function Documentation

◆ SP_monster_boss3_stand()

void SP_monster_boss3_stand ( edict_t *  self)

Definition at line 51 of file m_boss3.c.

52 {
53  if (deathmatch->value) {
54  G_FreeEdict(self);
55  return;
56  }
57 
58  self->movetype = MOVETYPE_STEP;
59  self->solid = SOLID_BBOX;
60  self->model = "models/monsters/boss3/rider/tris.md2";
61  self->s.modelindex = gi.modelindex(self->model);
62  self->s.frame = FRAME_stand201;
63 
64  gi.soundindex("misc/bigtele.wav");
65 
66  VectorSet(self->mins, -32, -32, 0);
67  VectorSet(self->maxs, 32, 32, 90);
68 
69  self->use = Use_Boss3;
70  self->think = Think_Boss3Stand;
71  self->nextthink = level.time + FRAMETIME;
72  gi.linkentity(self);
73 }

◆ Think_Boss3Stand()

void Think_Boss3Stand ( edict_t *  ent)

Definition at line 38 of file m_boss3.c.

39 {
40  if (ent->s.frame == FRAME_stand260)
41  ent->s.frame = FRAME_stand201;
42  else
43  ent->s.frame++;
44  ent->nextthink = level.time + FRAMETIME;
45 }

Referenced by SP_monster_boss3_stand().

◆ Use_Boss3()

void Use_Boss3 ( edict_t *  ent,
edict_t *  other,
edict_t *  activator 
)

Definition at line 29 of file m_boss3.c.

30 {
31  gi.WriteByte(svc_temp_entity);
32  gi.WriteByte(TE_BOSSTPORT);
33  gi.WritePosition(ent->s.origin);
34  gi.multicast(ent->s.origin, MULTICAST_PVS);
35  G_FreeEdict(ent);
36 }

Referenced by SP_monster_boss3_stand().

FRAME_stand260
#define FRAME_stand260
Definition: m_boss32.h:495
gi
game_import_t gi
Definition: g_main.c:23
deathmatch
cvar_t * deathmatch
Definition: g_main.c:33
FRAMETIME
#define FRAMETIME
Definition: g_local.h:75
FRAME_stand201
#define FRAME_stand201
Definition: m_actor.h:190
MOVETYPE_STEP
@ MOVETYPE_STEP
Definition: g_local.h:192
G_FreeEdict
void G_FreeEdict(edict_t *e)
Definition: g_utils.c:421
Use_Boss3
void Use_Boss3(edict_t *ent, edict_t *other, edict_t *activator)
Definition: m_boss3.c:29
svc_temp_entity
#define svc_temp_entity
Definition: g_local.h:38
level_locals_t::time
float time
Definition: g_local.h:299
level
level_locals_t level
Definition: g_main.c:22
Think_Boss3Stand
void Think_Boss3Stand(edict_t *ent)
Definition: m_boss3.c:38