Redo skeleton stray vex zombiepig meshes/textures

Thanks, 22i!
This commit is contained in:
Wuzzy 2018-05-30 16:59:27 +02:00
parent 6619cf159f
commit 328eb883ec
12 changed files with 33 additions and 24 deletions

View file

@ -25,9 +25,10 @@ local skeleton = {
group_attack = true,
visual = "mesh",
mesh = "mobs_mc_skeleton.b3d",
textures = {
{"mobs_mc_skeleton.png^mobs_mc_skeleton_bow.png"},
},
textures = { {
"mcl_bows_bow_0.png", -- bow
"mobs_mc_skeleton.png", -- skeleton
} },
visual_size = {x=3, y=3},
makes_footstep_sound = true,
sounds = {
@ -104,7 +105,11 @@ mobs:register_mob("mobs_mc:skeleton", skeleton)
local stray = table.copy(skeleton)
stray.mesh = "mobs_mc_stray.b3d"
stray.textures = {
{"mobs_mc_stray.png"},
{
"mcl_bows_bow_0.png",
"mobs_mc_stray.png",
"mobs_mc_stray_overlay.png",
},
}
-- TODO: different sound (w/ echo)
-- TODO: stray's arrow inflicts slowness status

Binary file not shown.

Before

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 847 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 790 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -7,14 +7,10 @@
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
--dofile(minetest.get_modpath("mobs").."/api.lua")
--###################
--################### VEX
--###################
mobs:register_mob("mobs_mc:vex", {
type = "monster",
pathfinding = 1,
@ -27,7 +23,10 @@ mobs:register_mob("mobs_mc:vex", {
visual = "mesh",
mesh = "mobs_mc_vex.b3d",
textures = {
{"mobs_mc_vex.png^mobs_mc_vex_sword.png"},
{
"default_tool_steelsword.png",
"mobs_mc_vex.png",
},
},
visual_size = {x=1.25, y=1.25},
damage = 9,
@ -42,21 +41,26 @@ mobs:register_mob("mobs_mc:vex", {
distance = 16,
},
animation = {
stand_speed = 25, walk_speed = 25, run_speed = 50,
stand_start = 40, stand_end = 80,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
stand_speed = 25,
walk_speed = 25,
run_speed = 50,
stand_start = 40,
stand_end = 80,
walk_start = 0,
walk_end = 40,
run_start = 0,
run_end = 40,
},
do_custom = function(self, dtime)
-- Glow red while attacking
if self.state == "attack" then
if self.base_texture[1] ~= "mobs_mc_vex_charging.png^mobs_mc_vex_sword.png" then
self.base_texture = {"mobs_mc_vex_charging.png^mobs_mc_vex_sword.png"}
if self.base_texture[2] ~= "mobs_mc_vex_charging.png" then
self.base_texture[2] = "mobs_mc_vex_charging.png"
self.object:set_properties({textures=self.base_texture})
end
else
if self.base_texture[1] ~= "mobs_mc_vex.png^mobs_mc_vex_sword.png" then
self.base_texture = {"mobs_mc_vex.png^mobs_mc_vex_sword.png"}
if self.base_texture[1] ~= "default_tool_steelsword.png" then
self.base_texture[1] = "default_tool_steelsword.png"
self.object:set_properties({textures=self.base_texture})
end
end

View file

@ -27,11 +27,11 @@ local pigman = {
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
visual = "mesh",
mesh = "mobs_mc_zombie_pigman.b3d",
textures = {
textures = { {
"blank.png", --baby
"default_tool_goldsword.png", --sword
"mobs_mc_zombie_pigman.png", --pigman
},
} },
visual_size = {x=3, y=3},
sounds = {
random = "mobs_mc_zombie_idle",
@ -91,11 +91,11 @@ mobs:register_mob("mobs_mc:pigman", pigman)
local baby_pigman = table.copy(pigman)
baby_pigman.collisionbox = {-0.25, -0.01, -0.25, 0.25, 0.94, 0.25}
baby_pigman.visual_size = {x=pigman.visual_size.x/2, y=pigman.visual_size.y/2}
baby_pigman.textures = {
"mobs_mc_zombie_pigman.png", --baby
"default_tool_goldsword.png", --sword
"mobs_mc_zombie_pigman.png", --pigman
}
baby_pigman.textures = { {
"mobs_mc_zombie_pigman.png", --baby
"default_tool_goldsword.png", --sword
"mobs_mc_zombie_pigman.png", --pigman
} }
baby_pigman.walk_velocity = 1.2
baby_pigman.run_velocity = 2.4
baby_pigman.light_damage = 0