mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-10 06:42:21 +00:00
Merge pull request #22 from BjossiAlfreds/monster-viewheight-bugfix
Rogue bugfix for monsters not fighting back against parasites
This commit is contained in:
commit
2dbcc66efc
3 changed files with 8 additions and 10 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue