From baf90e941c2b57aed28ccc87e0450d97fb7a83d0 Mon Sep 17 00:00:00 2001 From: BjossiAlfreds Date: Sat, 14 Sep 2019 08:12:33 +0000 Subject: [PATCH] Rogue bugfix for monsters not fighting back against parasites --- src/g_monster.c | 16 ++++++---------- src/monster/parasite/parasite.c | 1 + src/monster/stalker/stalker.c | 1 + 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/g_monster.c b/src/g_monster.c index dc6a2ae..074fce0 100644 --- a/src/g_monster.c +++ b/src/g_monster.c @@ -1054,16 +1054,9 @@ walkmonster_start_go(edict_t *self) self->yaw_speed = 20; } - if (!(strcmp(self->classname, "monster_stalker"))) + if (!self->viewheight) { - self->viewheight = 15; - } - else - { - if (!self->viewheight) - { - self->viewheight = 25; - } + self->viewheight = 25; } monster_start_go(self); @@ -1143,7 +1136,10 @@ swimmonster_start_go(edict_t *self) self->yaw_speed = 10; } - self->viewheight = 10; + if (!self->viewheight) + { + self->viewheight = 10; + } monster_start_go(self); diff --git a/src/monster/parasite/parasite.c b/src/monster/parasite/parasite.c index 428e680..553efd5 100644 --- a/src/monster/parasite/parasite.c +++ b/src/monster/parasite/parasite.c @@ -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; diff --git a/src/monster/stalker/stalker.c b/src/monster/stalker/stalker.c index a53e919..61dc27e 100644 --- a/src/monster/stalker/stalker.c +++ b/src/monster/stalker/stalker.c @@ -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;