1
0
Fork 0

Fix hoglin reach and view_range

This commit is contained in:
ancientmarinerdev 2023-05-08 17:10:40 +01:00
parent 0787d7a988
commit 39872f8ef6
1 changed files with 2 additions and 2 deletions

View File

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