Merge pull request #452 from BjossiAlfreds/monster-viewheight-bugfix

Full bugfix for monsters not fighting parasites
This commit is contained in:
Yamagi 2019-09-14 10:20:16 +02:00 committed by GitHub
commit cf742c0228
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -996,7 +996,10 @@ flymonster_start_go(edict_t *self)
self->yaw_speed = 10;
}
self->viewheight = 25;
if (!self->viewheight)
{
self->viewheight = 25;
}
monster_start_go(self);
@ -1032,7 +1035,10 @@ swimmonster_start_go(edict_t *self)
self->yaw_speed = 10;
}
self->viewheight = 10;
if (!self->viewheight)
{
self->viewheight = 10;
}
monster_start_go(self);

View file

@ -764,6 +764,7 @@ SP_monster_parasite(edict_t *self)
self->health = 175;
self->gib_health = -50;
self->mass = 250;
self->viewheight = 16;
self->pain = parasite_pain;
self->die = parasite_die;