}
.float last_trace;
-.float breath_checks;
void monster_move(float runspeed, float walkspeed, float stopspeed, float manim_run, float manim_walk, float manim_idle)
{
if(self.target)
{
if(self.waterlevel < WATERLEVEL_WETFEET)
{
- self.breath_checks += 1;
self.angles = '0 0 -90';
- if(self.breath_checks == 25)
- {
- if not(self.flags & FL_ONGROUND)
- self.flags |= FL_ONGROUND;
- self.monster_die();
- self.movetype = MOVETYPE_TOSS;
- return;
- }
+ Damage (self, world, world, 10, DEATH_DROWN, self.origin, '0 0 0');
if(random() < 0.5)
{
self.velocity_y += random() * 50;
{
self.angles = '0 0 0';
self.movetype = MOVETYPE_WALK;
- self.breath_checks = 0;
}
}
}
string t1 = self.target;
-
- swarmcount += 1;
switch(self.spawntype)
{
sprint(self, strcat("^3Current wave: ^1", ftos(wave_count), "\n"));
sprint(self, strcat("^3Maximum waves: ^1", ftos(max_waves), "\n"));
sprint(self, strcat("^3Monster skill: ^1", ftos(monster_skill), "\n"));
- sprint(self, strcat("^3Monster spawns: ^1", ftos(swarmcount), "\n"));
sprint(self, strcat("^3Current monsters: ^1", ftos(monster_count), "\n"));
sprint(self, strcat("^3Maximum monsters: ^1", ftos(totalmonsters), "\n"));
sprint(self, strcat("^3Current ogres: ^1", ftos(n_ogres), "\n"));
float current_monsters;
float waterspawns_count, flyspawns_count;
float wave_count, max_waves;
-float swarmcount;
float max_turrets;
.float monsterskilled;