forked from Mineclonia/Mineclonia
Merge pull request 'master' (#7) from MineClone2/MineClone2:master into master
Reviewed-on: epCode/MineClone2#7
This commit is contained in:
commit
dbe009f376
|
@ -94,19 +94,19 @@ armor.def = {
|
||||||
}
|
}
|
||||||
|
|
||||||
armor.update_player_visuals = function(self, player)
|
armor.update_player_visuals = function(self, player)
|
||||||
|
|
||||||
local player_holding = player:get_wielded_item():get_name()
|
|
||||||
if string.find(player_holding,"mcl_tools:") or player_holding == "mcl_mobitems:bone" or player_holding == "mcl_fishing:fishing_rod" then
|
|
||||||
player:set_bone_position("Wield_Item", vector.new(0,3.9,1.3), vector.new(90,0,0))
|
|
||||||
elseif string.find(player_holding, "mcl_bows:bow") then
|
|
||||||
player:set_bone_position("Wield_Item", vector.new(.5,4.5,-1.6), vector.new(90,0,20))
|
|
||||||
else
|
|
||||||
player:set_bone_position("Wield_Item", vector.new(-1.5,4.9,1.8), vector.new(135,0,90))
|
|
||||||
end
|
|
||||||
|
|
||||||
if not player then
|
if not player then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local player_holding = player:get_wielded_item():get_name()
|
||||||
|
if string.find(player_holding,"mcl_tools:") or player_holding == "mcl_mobitems:bone" or player_holding == "mcl_fishing:fishing_rod" then
|
||||||
|
player:set_bone_position("Wield_Item", vector.new(0,3.9,1.3), vector.new(90,0,0))
|
||||||
|
elseif string.find(player_holding, "mcl_bows:bow") then
|
||||||
|
player:set_bone_position("Wield_Item", vector.new(.5,4.5,-1.6), vector.new(90,0,20))
|
||||||
|
else
|
||||||
|
player:set_bone_position("Wield_Item", vector.new(-1.5,4.9,1.8), vector.new(135,0,90))
|
||||||
|
end
|
||||||
|
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
if self.textures[name] then
|
if self.textures[name] then
|
||||||
mcl_player.player_set_textures(player, {
|
mcl_player.player_set_textures(player, {
|
||||||
|
|
|
@ -21,16 +21,16 @@ mcl_player.player_register_model("character.b3d", {
|
||||||
textures = {"character.png", },
|
textures = {"character.png", },
|
||||||
animations = {
|
animations = {
|
||||||
-- Standard animations.
|
-- Standard animations.
|
||||||
stand = {x=0, y=79},
|
stand = {x= 0, y= 79},
|
||||||
lay = {x=162, y=166},
|
lay = {x=162, y=166},
|
||||||
walk = {x=168, y=187},
|
walk = {x=168, y=187},
|
||||||
mine = {x=189, y=198},
|
mine = {x=189, y=198},
|
||||||
walk_mine = {x=200, y=219},
|
walk_mine = {x=200, y=219},
|
||||||
sit = {x=81, y=160},
|
sit = {x= 81, y=160},
|
||||||
sneak_stand = {x=222, y=302},
|
sneak_stand = {x=222, y=302},
|
||||||
sneak_mine = {x=346, y=366},
|
sneak_mine = {x=346, y=366},
|
||||||
sneak_walk = {x=304, y=323},
|
sneak_walk = {x=304, y=323},
|
||||||
sneak_walk_mine = {x=325, y=344},
|
sneak_walk_mine = {x=325, y=344},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue