Fix hoglin reach and view_range

This commit is contained in:
ancientmarinerdev 2023-05-08 17:10:40 +01:00
parent 0787d7a988
commit 39872f8ef6

@ -21,7 +21,7 @@ local hoglin = {
attack_type = "dogfight", attack_type = "dogfight",
attack_frequency = 3; attack_frequency = 3;
damage = 4, damage = 4,
reach = 3, reach = 1.9,
collisionbox = {-.6, -0.01, -.6, .6, 1.4, .6}, collisionbox = {-.6, -0.01, -.6, .6, 1.4, .6},
visual = "mesh", visual = "mesh",
mesh = "extra_mobs_hoglin.b3d", mesh = "extra_mobs_hoglin.b3d",
@ -64,7 +64,7 @@ local hoglin = {
punch_end = 32, punch_end = 32,
}, },
fear_height = 4, fear_height = 4,
view_range = 32, view_range = 16,
floats = 0, floats = 0,
custom_attack = function(self) custom_attack = function(self)
if self.state == "attack" and self.reach > vector.distance(self.object:get_pos(), self.attack:get_pos()) then if self.state == "attack" and self.reach > vector.distance(self.object:get_pos(), self.attack:get_pos()) then