Redo skeleton stray vex zombiepig meshes/textures
Thanks, 22i!
This commit is contained in:
parent
6619cf159f
commit
328eb883ec
12 changed files with 33 additions and 24 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue