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

Rogue bugfix for monsters not fighting back against parasites
This commit is contained in:
Yamagi 2019-09-15 09:14:56 +02:00 committed by GitHub
commit 2dbcc66efc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 10 deletions

View file

@ -1054,17 +1054,10 @@ walkmonster_start_go(edict_t *self)
self->yaw_speed = 20;
}
if (!(strcmp(self->classname, "monster_stalker")))
{
self->viewheight = 15;
}
else
{
if (!self->viewheight)
{
self->viewheight = 25;
}
}
monster_start_go(self);
@ -1143,7 +1136,10 @@ swimmonster_start_go(edict_t *self)
self->yaw_speed = 10;
}
if (!self->viewheight)
{
self->viewheight = 10;
}
monster_start_go(self);

View file

@ -946,6 +946,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;

View file

@ -1473,6 +1473,7 @@ SP_monster_stalker(edict_t *self)
self->health = 250;
self->gib_health = -50;
self->mass = 250;
self->viewheight = 15;
self->pain = stalker_pain;
self->die = stalker_die;