fix shooting mobs who shoot through walls
This commit is contained in:
parent
a860f0bd97
commit
666b4c0ca2
@ -123,6 +123,8 @@ mobs:register_arrow("nssm:spine", {
|
|||||||
damage_groups = {fleshy = 2},
|
damage_groups = {fleshy = 2},
|
||||||
}, nil)
|
}, nil)
|
||||||
end,
|
end,
|
||||||
|
hit_node = function(self, pos, node)
|
||||||
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
--morbat arrow
|
--morbat arrow
|
||||||
@ -138,6 +140,8 @@ mobs:register_arrow("nssm:morarrow", {
|
|||||||
damage_groups = {fleshy = 3},
|
damage_groups = {fleshy = 3},
|
||||||
}, nil)
|
}, nil)
|
||||||
end,
|
end,
|
||||||
|
hit_node = function(self, pos, node)
|
||||||
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
-- web arrow
|
-- web arrow
|
||||||
@ -256,12 +260,14 @@ mobs:register_arrow("nssm:phoenix_arrow", {
|
|||||||
end
|
end
|
||||||
|
|
||||||
end,
|
end,
|
||||||
|
hit_node = function(self, pos, node)
|
||||||
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
mobs:register_arrow("nssm:super_gas", {
|
mobs:register_arrow("nssm:super_gas", {
|
||||||
visual = "sprite",
|
visual = "sprite",
|
||||||
visual_size = {x = 1, y = 1},
|
visual_size = {x = 1, y = 1},
|
||||||
textures = {"transparent.png"},
|
textures = {"tnt_smoke.png^[colorize:green:170"},
|
||||||
velocity = 8,
|
velocity = 8,
|
||||||
-- direct hit
|
-- direct hit
|
||||||
hit_player = function(self, player)
|
hit_player = function(self, player)
|
||||||
@ -367,4 +373,6 @@ mobs:register_arrow("nssm:lava_arrow", {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
hit_node = function(self, pos, node)
|
||||||
|
end
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user