minetest-game-adventuretest/mods/mobs/monsters/barbarians.lua

156 lines
3.1 KiB
Lua

mobs:register_mob("mobs:barbarian1", {
type = "barbarian",
hp_min = 20,
hp_max = 65,
exp_min = 10,
exp_max = 65,
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
visual = "mesh",
mesh = "3d_armor_character.x",
textures = {"mobs_barbarian1.png",
"3d_armor_trans.png",
minetest.registered_items["default:sword_steel"].inventory_image,
},
visual_size = {x=1, y=1},
makes_footstep_sound = true,
view_range = 10,
walk_velocity = 2,
run_velocity = 4,
damage = 4,
drops = { },
armor = 150,
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 0,
on_rightclick = nil,
attack_type = "dogfight",
animation = {
speed_normal = 30,
speed_run = 30,
stand_start = 0,
stand_end = 79,
walk_start = 168,
walk_end = 187,
run_start = 168,
run_end = 187,
punch_start = 200,
punch_end = 219,
},
jump = true,
sounds = {
war_cry = "mobs_barbarian_yell2",
death = "mobs_barbarian_death",
attack = "default_sword_steel2",
},
step=0.5,
blood_amount = 35,
blood_offset = 0.25,
activity_level=2,
})
mobs:register_mob("mobs:barbarian2", {
type = "barbarian",
hp_min = 20,
hp_max = 65,
exp_min = 10,
exp_max = 65,
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
visual = "mesh",
mesh = "3d_armor_character.x",
textures = {"mobs_barbarian2.png",
"3d_armor_trans.png",
minetest.registered_items["default:axe_steel"].inventory_image,
},
visual_size = {x=1, y=1},
makes_footstep_sound = true,
view_range = 10,
walk_velocity = 2,
run_velocity = 4,
damage = 4,
drops = { },
armor = 150,
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 0,
on_rightclick = nil,
attack_type = "dogfight",
animation = {
speed_normal = 30,
speed_run = 30,
stand_start = 0,
stand_end = 79,
walk_start = 168,
walk_end = 187,
run_start = 168,
run_end = 187,
punch_start = 200,
punch_end = 219,
},
jump = true,
sounds = {
war_cry = "mobs_barbarian_yell1",
death = "mobs_barbarian_death",
attack = "default_sword_steel",
},
step=0.5,
blood_amount = 35,
blood_offset = 0.25,
activity_level=2,
})
mobs:register_mob("mobs:barbarian_archer", {
type = "barbarian",
hp_min = 10,
hp_max = 45,
exp_min = 10,
exp_max = 65,
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
visual = "mesh",
mesh = "3d_armor_character.x",
textures = {"mobs_barbarian_archer.png",
"3d_armor_trans.png",
minetest.registered_items["throwing:bow_steel"].inventory_image,
},
visual_size = {x=1, y=1},
makes_footstep_sound = true,
view_range = 25,
walk_velocity = 2,
run_velocity = 4,
damage = 4,
drops = { },
armor = 150,
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 0,
on_rightclick = nil,
attack_type = "shoot",
attack_range = 15,
arrow_offset = 1.2,
arrow = "throwing:arrow_entity",
shoot_interval = 2.2,
animation = {
speed_normal = 30,
speed_run = 30,
stand_start = 0,
stand_end = 79,
walk_start = 168,
walk_end = 187,
run_start = 168,
run_end = 187,
punch_start = 189,
punch_end = 198,
},
jump = true,
sounds = {
death = "mobs_barbarian_death",
},
step=0.5,
blood_amount = 35,
blood_offset = 0.25,
activity_level=2,
})