mirror of
https://github.com/blendogames/thirtyflightsofloving.git
synced 2024-11-15 00:41:21 +00:00
Fixes for lavaball entity and func_door_secret2.
This commit is contained in:
parent
ef76c81f23
commit
1eaba3e791
3 changed files with 24 additions and 12 deletions
|
@ -552,10 +552,11 @@ void q1_fireball_fly (edict_t *self)
|
|||
((random() * 100) - 50),
|
||||
(self->speed + (random() * 150)));
|
||||
|
||||
lavaball->movetype = MOVETYPE_FLYMISSILE;
|
||||
// lavaball->movetype = MOVETYPE_FLYMISSILE;
|
||||
lavaball->movetype = MOVETYPE_TOSS;
|
||||
lavaball->clipmask = MASK_SHOT;
|
||||
lavaball->solid = SOLID_BBOX;
|
||||
lavaball->s.effects |= EF_ROCKET; //EF_FLAG1
|
||||
lavaball->s.effects |= EF_ROCKET; // EF_FLAG1
|
||||
lavaball->s.renderfx |= RF_GLOW;
|
||||
VectorClear (lavaball->mins);
|
||||
VectorClear (lavaball->maxs);
|
||||
|
@ -587,7 +588,7 @@ void SP_misc_q1_fireball (edict_t *self)
|
|||
self->think = q1_fireball_fly;
|
||||
self->classname = "fireball";
|
||||
|
||||
self->common_name = "Lavaball spawner";
|
||||
self->common_name = "Lavaball Spawner";
|
||||
|
||||
gi.linkentity(self);
|
||||
}
|
||||
|
|
|
@ -135,6 +135,13 @@ void fd_secret_done(edict_t *self)
|
|||
|
||||
void secret_blocked(edict_t *self, edict_t *other)
|
||||
{
|
||||
// Remove dead Q1 monsters, as they can't be gibbed
|
||||
if ( (other->svflags & SVF_DEADMONSTER) && (other->flags & FL_Q1_MONSTER) )
|
||||
{
|
||||
G_FreeEdict(other);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!(self->flags & FL_TEAMSLAVE))
|
||||
T_Damage (other, self, self, self->pos0, other->s.origin, self->pos0, self->dmg, 0, 0, MOD_CRUSH);
|
||||
|
||||
|
|
|
@ -1656,11 +1656,15 @@ void SV_Physics_Toss (edict_t *ent)
|
|||
else
|
||||
ent->waterlevel = 0;
|
||||
|
||||
if (!wasinwater && isinwater)
|
||||
if (!wasinwater && isinwater) {
|
||||
if (strcmp(ent->classname, "lavaball") && strcmp(ent->classname, "bubble"))
|
||||
gi.positioned_sound (old_origin, g_edicts, CHAN_AUTO, gi.soundindex("misc/h2ohit1.wav"), 1, 1, 0);
|
||||
else if (wasinwater && !isinwater)
|
||||
}
|
||||
else if (wasinwater && !isinwater) {
|
||||
if (strcmp(ent->classname, "lavaball") && strcmp(ent->classname, "bubble"))
|
||||
gi.positioned_sound (ent->s.origin, g_edicts, CHAN_AUTO, gi.soundindex("misc/h2ohit1.wav"), 1, 1, 0);
|
||||
}
|
||||
}
|
||||
|
||||
// move teamslaves
|
||||
for (slave = ent->teamchain; slave; slave = slave->teamchain)
|
||||
|
|
Loading…
Reference in a new issue