Settings of mobs
This commit is contained in:
parent
63d38cf108
commit
9d421765ca
49
darts.lua
49
darts.lua
@ -186,6 +186,55 @@ function explosion_web(pos)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
-- thick_web arrow
|
||||
mobs:register_arrow("nssm:thickwebball", {
|
||||
visual = "sprite",
|
||||
visual_size = {x = 2, y = 2},
|
||||
textures = {"thick_web_ball.png"},
|
||||
velocity = 8,
|
||||
-- direct hit
|
||||
hit_player = function(self, player)
|
||||
local p = player:getpos()
|
||||
explosion_web(p)
|
||||
end,
|
||||
|
||||
hit_mob = function(self, player)
|
||||
player:punch(self.object, 1.0, {
|
||||
full_punch_interval = 1.0,
|
||||
damage_groups = {fleshy = 6},
|
||||
}, nil)
|
||||
end,
|
||||
|
||||
hit_node = function(self, pos, node)
|
||||
explosion_web(pos)
|
||||
end
|
||||
})
|
||||
|
||||
function explosion_web(pos)
|
||||
if minetest.is_protected(pos, "") then
|
||||
return
|
||||
end
|
||||
pos.y = round(pos.y)
|
||||
for i=pos.x+0, pos.x+0, 1 do
|
||||
for j=pos.y-2, pos.y, 1 do
|
||||
for k=pos.z+0, pos.z+0, 1 do
|
||||
local p = {x=i,y=j,z=k}
|
||||
local k = {x=i,y=j+1,z=k}
|
||||
local current = minetest.env:get_node(p).name
|
||||
local ontop = minetest.env:get_node(k).name
|
||||
if (current ~= "air") and
|
||||
(current ~= "nssm:thick_web") and
|
||||
(ontop == "air") and not
|
||||
minetest.is_protected(p,"") and not
|
||||
minetest.is_protected(k,"") then
|
||||
minetest.set_node(k, {name="nssm:thick_web"})
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- arrow=>phoenix arrow
|
||||
mobs:register_arrow("nssm:phoenix_arrow", {
|
||||
visual = "sprite",
|
||||
|
@ -10,7 +10,7 @@ mobs:register_mob("nssm:ant_soldier", {
|
||||
makes_footstep_sound = true,
|
||||
view_range = 20,
|
||||
fear_height = 4,
|
||||
walk_velocity = 1.5,
|
||||
walk_velocity = 0.5,
|
||||
run_velocity = 3,
|
||||
rotate = 270,
|
||||
sounds = {
|
||||
|
@ -10,7 +10,7 @@ mobs:register_mob("nssm:ant_worker", {
|
||||
makes_footstep_sound = true,
|
||||
view_range = 20,
|
||||
fear_height = 4,
|
||||
walk_velocity = 1.5,
|
||||
walk_velocity = 0.5,
|
||||
run_velocity = 2,
|
||||
rotate = 270,
|
||||
sounds = {
|
||||
|
@ -10,7 +10,7 @@ mobs:register_mob("nssm:black_widow", {
|
||||
makes_footstep_sound = true,
|
||||
view_range = 15,
|
||||
fear_height = 4,
|
||||
walk_velocity = 1,
|
||||
walk_velocity = 0.8,
|
||||
run_velocity = 2.5,
|
||||
rotate = 270,
|
||||
sounds = {
|
||||
|
@ -10,7 +10,7 @@ mobs:register_mob("nssm:bloco", {
|
||||
makes_footstep_sound = true,
|
||||
view_range = 8,
|
||||
fear_height = 4,
|
||||
walk_velocity = 1,
|
||||
walk_velocity = 0.6,
|
||||
run_velocity = 2.5,
|
||||
rotate = 270,
|
||||
sounds = {
|
||||
|
@ -9,14 +9,14 @@ mobs:register_mob("nssm:daddy_long_legs", {
|
||||
visual_size = {x=8, y=8},
|
||||
makes_footstep_sound = true,
|
||||
view_range = 12,
|
||||
walk_velocity = 1.5,
|
||||
walk_velocity = 0.7,
|
||||
fear_height = 4,
|
||||
run_velocity = 3.3,
|
||||
rotate = 90,
|
||||
sounds = {
|
||||
random = "daddy",
|
||||
},
|
||||
damage = 4,
|
||||
damage = 3,
|
||||
jump = true,
|
||||
drops = {
|
||||
{name = "nssm:life_energy",
|
||||
|
@ -12,9 +12,9 @@ mobs:register_mob("nssm:dolidrosaurus", {
|
||||
fly = true,
|
||||
fly_in = "default:water_source",
|
||||
fall_speed = -20,
|
||||
walk_velocity = 2,
|
||||
run_velocity = 3,
|
||||
damage = 6,
|
||||
walk_velocity = 1.5,
|
||||
run_velocity = 3.3,
|
||||
damage = 5,
|
||||
rotate = 270,
|
||||
jump = false,
|
||||
jump_chance = 0,
|
||||
|
@ -1,6 +1,6 @@
|
||||
mobs:register_mob("nssm:duck", {
|
||||
type = "monster",
|
||||
hp_max = 16,
|
||||
hp_max = 12,
|
||||
hp_min = 7,
|
||||
collisionbox = {-0.3, 0.00, -0.3, 0.3, 0.95, 0.3},
|
||||
visual = "mesh",
|
||||
|
@ -1,7 +1,7 @@
|
||||
mobs:register_mob("nssm:flying_duck", {
|
||||
type = "monster",
|
||||
hp_max = 25,
|
||||
hp_min = 14,
|
||||
hp_max = 20,
|
||||
hp_min = 10,
|
||||
collisionbox = {-0.3, -0.2, -0.3, 0.3, 0.2, 0.3},
|
||||
visual = "mesh",
|
||||
mesh = "nathan_petrelli.x",
|
||||
@ -15,7 +15,7 @@ mobs:register_mob("nssm:flying_duck", {
|
||||
sounds = {
|
||||
random = "duck",
|
||||
},
|
||||
damage = 4,
|
||||
damage = 3,
|
||||
reach = 2,
|
||||
jump = true,
|
||||
drops = {
|
||||
|
@ -16,7 +16,7 @@ mobs:register_mob("nssm:icesnake", {
|
||||
sounds = {
|
||||
random = "icesnake",
|
||||
},
|
||||
damage = 5,
|
||||
damage = 4,
|
||||
reach = 2,
|
||||
jump = true,
|
||||
drops = {
|
||||
|
@ -30,7 +30,7 @@ mobs:register_mob("nssm:morgre", {
|
||||
min = 1,
|
||||
max = 1,},
|
||||
},
|
||||
armor = 70,
|
||||
armor = 60,
|
||||
drawtype = "front",
|
||||
water_damage = 0,
|
||||
lava_damage = 0,
|
||||
|
@ -23,7 +23,11 @@ mobs:register_mob("nssm:pumpboom_small", {
|
||||
{name = "nssm:life_energy",
|
||||
chance = 1,
|
||||
min = 1,
|
||||
max = 2,}
|
||||
max = 2,},
|
||||
{name = "nssm:black_powder",
|
||||
chance = 2,
|
||||
min = 1,
|
||||
max = 2,},
|
||||
},
|
||||
armor = 100,
|
||||
drawtype = "front",
|
||||
@ -70,7 +74,11 @@ mobs:register_mob("nssm:pumpboom_medium", {
|
||||
{name = "nssm:life_energy",
|
||||
chance = 1,
|
||||
min = 2,
|
||||
max = 3,}
|
||||
max = 3,},
|
||||
{name = "nssm:black_powder",
|
||||
chance = 2,
|
||||
min = 1,
|
||||
max = 3,},
|
||||
},
|
||||
armor = 100,
|
||||
drawtype = "front",
|
||||
@ -117,7 +125,11 @@ mobs:register_mob("nssm:pumpboom_large", {
|
||||
{name = "nssm:life_energy",
|
||||
chance = 1,
|
||||
min = 3,
|
||||
max = 4,}
|
||||
max = 4,},
|
||||
{name = "nssm:black_powder",
|
||||
chance = 2,
|
||||
min = 2,
|
||||
max = 4,},
|
||||
},
|
||||
armor = 100,
|
||||
drawtype = "front",
|
||||
|
@ -29,6 +29,10 @@ mobs:register_mob("nssm:pumpking", {
|
||||
chance = 1,
|
||||
min = 1,
|
||||
max = 1,},
|
||||
{name = "nssm:black_powder",
|
||||
chance = 1,
|
||||
min = 9,
|
||||
max = 12,},
|
||||
},
|
||||
armor =40,
|
||||
drawtype = "front",
|
||||
|
@ -19,7 +19,7 @@ mobs:register_mob("nssm:snow_biter", {
|
||||
random = "snow_biter",
|
||||
},
|
||||
--pathfinding = true,
|
||||
damage = 6,
|
||||
damage = 4,
|
||||
jump = true,
|
||||
drops = {
|
||||
{name = "nssm:life_energy",
|
||||
|
@ -7,7 +7,7 @@ mobs:register_mob("nssm:swimming_duck", {
|
||||
mesh = "swimming_duck.x",
|
||||
textures = {{"swimming_duck.png"}},
|
||||
visual_size = {x=2, y=2},
|
||||
view_range = 15,
|
||||
view_range = 25,
|
||||
floats=1,
|
||||
walk_velocity = 1,
|
||||
run_velocity = 1,
|
||||
|
@ -10,7 +10,7 @@ mobs:register_mob("nssm:tarantula", {
|
||||
makes_footstep_sound = true,
|
||||
view_range = 20,
|
||||
lifetimer = 500,
|
||||
walk_velocity = 1.5,
|
||||
walk_velocity = 0.7,
|
||||
fear_height = 4,
|
||||
run_velocity = 3,
|
||||
rotate = 270,
|
||||
@ -19,6 +19,12 @@ mobs:register_mob("nssm:tarantula", {
|
||||
},
|
||||
damage = 8,
|
||||
jump = true,
|
||||
drops = {
|
||||
{name = "nssm:super_silk_gland",
|
||||
chance = 1,
|
||||
min = 3,
|
||||
max = 5,},
|
||||
},
|
||||
armor = 60,
|
||||
drawtype = "front",
|
||||
water_damage = 1,
|
||||
@ -26,7 +32,11 @@ mobs:register_mob("nssm:tarantula", {
|
||||
reach = 3,
|
||||
light_damage = 0,
|
||||
on_rightclick = nil,
|
||||
attack_type = "dogfight",
|
||||
dogshoot_switch = true,
|
||||
attack_type = "dogshoot",
|
||||
arrow = "nssm:thickwebball",
|
||||
shoot_interval = 2,
|
||||
shoot_offset = 1,
|
||||
animation = {
|
||||
speed_normal = 20,
|
||||
speed_run = 25,
|
||||
@ -38,6 +48,8 @@ mobs:register_mob("nssm:tarantula", {
|
||||
run_end = 160,
|
||||
punch_start = 180,
|
||||
punch_end = 200,
|
||||
shoot_start = 180,
|
||||
shoot_end = 200,
|
||||
},
|
||||
on_die = function(self, pos)
|
||||
self.object:remove()
|
||||
|
BIN
textures/thick_web_ball.png
Normal file
BIN
textures/thick_web_ball.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 799 B |
Loading…
x
Reference in New Issue
Block a user