Revert to directx player model

Fixes item attachment glitches when the player moves
This commit is contained in:
stujones11 2016-03-20 15:26:12 +00:00
parent 5e3092ca60
commit 1dae4896ae
4 changed files with 6560 additions and 4 deletions

@ -12,7 +12,7 @@ end
dofile(modpath.."/location.lua")
local location = {
"Arm_Right", -- default bone
"Armature_Arm_Right", -- default bone
{x=0.2, y=5.5, z=3}, -- default position
{x=-100, y=225, z=90}, -- default rotation
}
@ -121,12 +121,12 @@ minetest.register_on_leaveplayer(function(player)
end)
minetest.register_on_joinplayer(function(player)
default.player_set_model(player, "wield3d_character.b3d")
default.player_set_model(player, "wield3d_character.x")
player_wielding[player:get_player_name()] = 0
minetest.after(WIELD3D_INIT_DELAY, add_wield_entity, player)
end)
default.player_register_model("wield3d_character.b3d", {
default.player_register_model("wield3d_character.x", {
animation_speed = 30,
textures = {"character.png"},
animations = {

@ -1,6 +1,6 @@
-- Wielded Item Location Overrides - [item_name] = {bone, position, rotation}
local bone = "Arm_Right"
local bone = "Armature_Arm_Right"
wield3d_location = {
["default:torch"] = {bone, {x=0.2, y=5.5, z=3}, {x=-100, y=182, z=83}},

Binary file not shown.

6556
models/wield3d_character.x Normal file

File diff suppressed because it is too large Load Diff