}
vector angles_face = vectoangles(self.moveto - self.origin);
+ vector owner_face = vectoangles(self.monster_owner.origin - self.origin);
self.angles_y = angles_face_y;
if(self.state == MONSTER_STATE_ATTACK_LEAP && (self.flags & FL_ONGROUND))
if (vlen(self.velocity) <= 30)
{
self.frame = manim_idle;
- self.angles_y = self.pos2_y; // reset looking angle now?
+ self.angles_y = ((self.monster_owner) ? owner_face_y : self.pos2_y); // reset looking angle now?
}
}
self.netname = ((net_name == "") ? self.classname : net_name);
}
+ if not(self.scale)
+ self.scale = 1;
+
if(self.spawnflags & MONSTERFLAG_GIANT && !autocvar_g_monsters_nogiants)
ScaleMonster(5);
- else if(!self.scale)
- ScaleMonster(1);
else
ScaleMonster(self.scale);