mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 05:43:43 +01:00
Fix hoglin reach and view_range
This commit is contained in:
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
|
||||||
|
Loading…
Reference in New Issue
Block a user