mirror of
https://github.com/id-Software/quake2-rerelease-dll.git
synced 2026-03-19 16:39:46 +01:00
Update 1 changes
This commit is contained in:
@@ -117,7 +117,7 @@ void SP_misc_transport(edict_t *ent)
|
||||
/*QUAKED misc_amb4 (1 0 0) (-16 -16 -16) (16 16 16)
|
||||
Mal's amb4 loop entity
|
||||
*/
|
||||
static int amb4sound;
|
||||
static cached_soundindex amb4sound;
|
||||
|
||||
THINK(amb4_think) (edict_t *ent) -> void
|
||||
{
|
||||
@@ -129,7 +129,7 @@ void SP_misc_amb4(edict_t *ent)
|
||||
{
|
||||
ent->think = amb4_think;
|
||||
ent->nextthink = level.time + 1_sec;
|
||||
amb4sound = gi.soundindex("world/amb4.wav");
|
||||
amb4sound.assign("world/amb4.wav");
|
||||
gi.linkentity(ent);
|
||||
}
|
||||
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
bool infront(edict_t *self, edict_t *other);
|
||||
bool FindTarget(edict_t *self);
|
||||
|
||||
static int sound_pain1;
|
||||
static int sound_die;
|
||||
static int sound_weld1;
|
||||
static int sound_weld2;
|
||||
static int sound_weld3;
|
||||
static cached_soundindex sound_pain1;
|
||||
static cached_soundindex sound_die;
|
||||
static cached_soundindex sound_weld1;
|
||||
static cached_soundindex sound_weld2;
|
||||
static cached_soundindex sound_weld3;
|
||||
|
||||
void fixbot_run(edict_t *self);
|
||||
void fixbot_attack(edict_t *self);
|
||||
@@ -1335,6 +1335,8 @@ PAIN(fixbot_pain) (edict_t *self, edict_t *other, float kick, int damage, const
|
||||
M_SetAnimation(self, &fixbot_move_painb);
|
||||
else
|
||||
M_SetAnimation(self, &fixbot_move_paina);
|
||||
|
||||
abortHeal(self, false, false, false);
|
||||
}
|
||||
|
||||
void fixbot_dead(edict_t *self)
|
||||
@@ -1364,12 +1366,12 @@ void SP_monster_fixbot(edict_t *self)
|
||||
return;
|
||||
}
|
||||
|
||||
sound_pain1 = gi.soundindex("flyer/flypain1.wav");
|
||||
sound_die = gi.soundindex("flyer/flydeth1.wav");
|
||||
sound_pain1.assign("flyer/flypain1.wav");
|
||||
sound_die.assign("flyer/flydeth1.wav");
|
||||
|
||||
sound_weld1 = gi.soundindex("misc/welder1.wav");
|
||||
sound_weld2 = gi.soundindex("misc/welder2.wav");
|
||||
sound_weld3 = gi.soundindex("misc/welder3.wav");
|
||||
sound_weld1.assign("misc/welder1.wav");
|
||||
sound_weld2.assign("misc/welder2.wav");
|
||||
sound_weld3.assign("misc/welder3.wav");
|
||||
|
||||
self->s.modelindex = gi.modelindex("models/monsters/fixbot/tris.md2");
|
||||
|
||||
|
||||
@@ -12,22 +12,22 @@ constexpr spawnflags_t SPAWNFLAG_GEKK_CHANT = 8_spawnflag;
|
||||
constexpr spawnflags_t SPAWNFLAG_GEKK_NOJUMPING = 16_spawnflag;
|
||||
constexpr spawnflags_t SPAWNFLAG_GEKK_NOSWIM = 32_spawnflag;
|
||||
|
||||
static int sound_swing;
|
||||
static int sound_hit;
|
||||
static int sound_hit2;
|
||||
static int sound_speet;
|
||||
static int loogie_hit;
|
||||
static int sound_death;
|
||||
static int sound_pain1;
|
||||
static int sound_sight;
|
||||
static int sound_search;
|
||||
static int sound_step1;
|
||||
static int sound_step2;
|
||||
static int sound_step3;
|
||||
static int sound_thud;
|
||||
static int sound_chantlow;
|
||||
static int sound_chantmid;
|
||||
static int sound_chanthigh;
|
||||
static cached_soundindex sound_swing;
|
||||
static cached_soundindex sound_hit;
|
||||
static cached_soundindex sound_hit2;
|
||||
static cached_soundindex sound_speet;
|
||||
static cached_soundindex loogie_hit;
|
||||
static cached_soundindex sound_death;
|
||||
static cached_soundindex sound_pain1;
|
||||
static cached_soundindex sound_sight;
|
||||
static cached_soundindex sound_search;
|
||||
static cached_soundindex sound_step1;
|
||||
static cached_soundindex sound_step2;
|
||||
static cached_soundindex sound_step3;
|
||||
static cached_soundindex sound_thud;
|
||||
static cached_soundindex sound_chantlow;
|
||||
static cached_soundindex sound_chantmid;
|
||||
static cached_soundindex sound_chanthigh;
|
||||
|
||||
void gekk_swim(edict_t *self);
|
||||
|
||||
@@ -1589,23 +1589,23 @@ void SP_monster_gekk(edict_t *self)
|
||||
return;
|
||||
}
|
||||
|
||||
sound_swing = gi.soundindex("gek/gk_atck1.wav");
|
||||
sound_hit = gi.soundindex("gek/gk_atck2.wav");
|
||||
sound_hit2 = gi.soundindex("gek/gk_atck3.wav");
|
||||
sound_speet = gi.soundindex("gek/gk_atck4.wav");
|
||||
loogie_hit = gi.soundindex("gek/loogie_hit.wav");
|
||||
sound_death = gi.soundindex("gek/gk_deth1.wav");
|
||||
sound_pain1 = gi.soundindex("gek/gk_pain1.wav");
|
||||
sound_sight = gi.soundindex("gek/gk_sght1.wav");
|
||||
sound_search = gi.soundindex("gek/gk_idle1.wav");
|
||||
sound_step1 = gi.soundindex("gek/gk_step1.wav");
|
||||
sound_step2 = gi.soundindex("gek/gk_step2.wav");
|
||||
sound_step3 = gi.soundindex("gek/gk_step3.wav");
|
||||
sound_thud = gi.soundindex("mutant/thud1.wav");
|
||||
sound_swing.assign("gek/gk_atck1.wav");
|
||||
sound_hit.assign("gek/gk_atck2.wav");
|
||||
sound_hit2.assign("gek/gk_atck3.wav");
|
||||
sound_speet.assign("gek/gk_atck4.wav");
|
||||
loogie_hit.assign("gek/loogie_hit.wav");
|
||||
sound_death.assign("gek/gk_deth1.wav");
|
||||
sound_pain1.assign("gek/gk_pain1.wav");
|
||||
sound_sight.assign("gek/gk_sght1.wav");
|
||||
sound_search.assign("gek/gk_idle1.wav");
|
||||
sound_step1.assign("gek/gk_step1.wav");
|
||||
sound_step2.assign("gek/gk_step2.wav");
|
||||
sound_step3.assign("gek/gk_step3.wav");
|
||||
sound_thud.assign("mutant/thud1.wav");
|
||||
|
||||
sound_chantlow = gi.soundindex("gek/gek_low.wav");
|
||||
sound_chantmid = gi.soundindex("gek/gek_mid.wav");
|
||||
sound_chanthigh = gi.soundindex("gek/gek_high.wav");
|
||||
sound_chantlow.assign("gek/gek_low.wav");
|
||||
sound_chantmid.assign("gek/gek_mid.wav");
|
||||
sound_chanthigh.assign("gek/gek_high.wav");
|
||||
|
||||
self->movetype = MOVETYPE_STEP;
|
||||
self->solid = SOLID_BBOX;
|
||||
|
||||
Reference in New Issue
Block a user