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

100 lines
1.9 KiB
Lua
Raw Normal View History

mobs:register_mob("mobs:barbarian1", {
type = "monster",
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",
"3d_armor_trans.png",
},
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_punch2",
},
step=0.5,
blood_amount = 35,
blood_offset = 0.25,
})
mobs:register_mob("mobs:barbarian2", {
type = "monster",
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",
"3d_armor_trans.png",
},
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_punch2",
},
step=0.5,
blood_amount = 35,
blood_offset = 0.25,
})