self.target2 = self.target;
self.goalentity = find(world, targetname, self.target);
}
+
+ self.sprite_height *= self.scale; // do this after setting the monster's scale
if(autocvar_g_monsters_healthbars)
{
self.nextthink = time + random() * 0.5 + 0.1;
self.frame = demon_anim_stand;
self.think = demon_think;
- self.sprite_height = 30 * self.scale;
+ self.sprite_height = 30;
monster_hook_spawn(); // for post-spawn mods
}
self.nextthink = time + random() * 0.5 + 0.1;
self.think = dog_think;
self.frame = dog_anim_idle;
- self.sprite_height = 20 * self.scale;
+ self.sprite_height = 20;
monster_hook_spawn(); // for post-spawn mods
}
self.nextthink = time + random() * 0.5 + 0.1;
self.think = enforcer_think;
self.items = (IT_SHELLS | IT_ROCKETS | IT_NAILS | IT_CELLS);
- self.sprite_height = 45 * self.scale;
+ self.sprite_height = 45;
self.weaponentity = spawn();
self.weaponentity.owner = self;
self.flags |= FL_SWIM;
self.nextthink = time + random() * 0.5 + 0.1;
self.think = fish_think;
- self.sprite_height = 20 * self.scale;
+ self.sprite_height = 20;
monster_hook_spawn(); // for post-spawn mods
}
self.attack_ranged = hknight_magic;
self.nextthink = time + random() * 0.5 + 0.1;
self.think = hellknight_think;
- self.sprite_height = 30 * self.scale;
+ self.sprite_height = 30;
self.frame = hellknight_anim_stand;
monster_hook_spawn(); // for post-spawn mods
self.attack_melee = knight_attack;
self.nextthink = time + random() * 0.5 + 0.1;
self.think = knight_think;
- self.sprite_height = 30 * self.scale;
+ self.sprite_height = 30;
self.frame = knight_anim_stand;
monster_hook_spawn(); // for post-spawn mods
self.attack_ranged = ogre_missile;
self.nextthink = time + 1;
self.think = ogre_think;
- self.sprite_height = 40 * self.scale;
+ self.sprite_height = 40;
self.weapon = WEP_GRENADE_LAUNCHER;
monster_hook_spawn(); // for post-spawn mods
self.nextthink = time + random() * 0.5 + 0.1;
self.think = shalrath_think;
self.frame = shalrath_anim_walk;
- self.sprite_height = 40 * self.scale;
+ self.sprite_height = 40;
monster_hook_spawn(); // for post-spawn mods
}
self.nextthink = time + random() * 0.5 + 0.1;
self.frame = shambler_anim_stand;
self.think = shambler_think;
- self.sprite_height = 70 * self.scale;
+ self.sprite_height = 70;
self.weapon = WEP_NEX;
monster_hook_spawn(); // for post-spawn mods
self.frame = soldier_anim_draw;
self.nextthink = time + random() * 0.5 + 0.1;
self.think = soldier_think;
- self.sprite_height = 45 * self.scale;
+ self.sprite_height = 45;
self.items = (IT_SHELLS | IT_ROCKETS | IT_NAILS);
RandomSelection_Init();
self.velocity = '0 0 0';
self.think = spawner_think;
self.touch = func_null;
- self.sprite_height = 80 * self.scale;
+ self.sprite_height = 80;
self.spawner_monstercount = 0;
self.attack_melee = spider_attack_standing;
self.attack_ranged = spider_attack_ranged;
self.think = spider_think;
- self.sprite_height = 40 * self.scale;
+ self.sprite_height = 40;
monster_hook_spawn(); // for post-spawn mods
}
self.attack_melee = tarbaby_jump;
self.nextthink = time + random() * 0.5 + 0.1;
self.think = tarbaby_think;
- self.sprite_height = 20 * self.scale;
+ self.sprite_height = 20;
self.frame = tarbaby_anim_walk;
monster_hook_spawn(); // for post-spawn mods
self.movetype = MOVETYPE_FLY; // TODO: make it fly up/down
self.flags |= FL_FLY;
self.think = wizard_think;
- self.sprite_height = 30 * self.scale;
+ self.sprite_height = 30;
monster_hook_spawn(); // for post-spawn mods
}
self.nextthink = time + 2.1;
self.frame = zombie_anim_spawn;
self.think = zombie_think;
- self.sprite_height = 50 * self.scale;
+ self.sprite_height = 50;
self.checkattack = GenericCheckAttack;
self.attack_melee = zombie_attack_standing;
self.attack_ranged = zombie_attack_ranged;