// Misc
set g_monsters 1 "Enable monsters (master switch)"
-set g_monsters_think_delay 0.05 "Delay between monster think frames"
+set g_monsters_think_delay 0.1 "Delay between monster think frames"
set g_monsters_skill 1 "Monster skill (affecting some of their attributes). 1 - easy, 2 - medium, 3 - hard, 4 - insane, 5 - nightmare"
set g_monsters_miniboss_chance 5
set g_monsters_miniboss_healthboost 100
self.colormap = 1024 + (self.team - 1) * 17;
}
+void monster_draw()
+{
+ float dt;
+
+ dt = time - self.move_time;
+ self.move_time = time;
+ if(dt <= 0)
+ return;
+
+ fixedmakevectors(self.angles);
+ movelib_groundalign4point(300, 100, 0.25, 45);
+ setorigin(self, self.origin + self.velocity * dt);
+ self.angles_y = self.move_angles_y;
+}
+
void monster_construct()
{
monster_mid2info(self.monsterid);
self.move_time = time;
self.drawmask = MASK_NORMAL;
self.alpha = 1;
+ self.draw = monster_draw;
}
void ent_monster()
self.checkattack();
self.SendFlags |= MSF_ANG;
- if(vlen(self.velocity) > 0)
- self.SendFlags |= MSF_MOVE;
+ self.SendFlags |= MSF_MOVE;
}
void monsters_setstatus()