mirror of
https://github.com/stujones11/wield3d.git
synced 2024-12-28 08:47:27 +01:00
Revert to directx player model
Fixes item attachment glitches when the player moves
This commit is contained in:
parent
5e3092ca60
commit
1dae4896ae
6
init.lua
6
init.lua
@ -12,7 +12,7 @@ end
|
|||||||
dofile(modpath.."/location.lua")
|
dofile(modpath.."/location.lua")
|
||||||
|
|
||||||
local location = {
|
local location = {
|
||||||
"Arm_Right", -- default bone
|
"Armature_Arm_Right", -- default bone
|
||||||
{x=0.2, y=5.5, z=3}, -- default position
|
{x=0.2, y=5.5, z=3}, -- default position
|
||||||
{x=-100, y=225, z=90}, -- default rotation
|
{x=-100, y=225, z=90}, -- default rotation
|
||||||
}
|
}
|
||||||
@ -121,12 +121,12 @@ minetest.register_on_leaveplayer(function(player)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
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
|
player_wielding[player:get_player_name()] = 0
|
||||||
minetest.after(WIELD3D_INIT_DELAY, add_wield_entity, player)
|
minetest.after(WIELD3D_INIT_DELAY, add_wield_entity, player)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
default.player_register_model("wield3d_character.b3d", {
|
default.player_register_model("wield3d_character.x", {
|
||||||
animation_speed = 30,
|
animation_speed = 30,
|
||||||
textures = {"character.png"},
|
textures = {"character.png"},
|
||||||
animations = {
|
animations = {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
-- Wielded Item Location Overrides - [item_name] = {bone, position, rotation}
|
-- Wielded Item Location Overrides - [item_name] = {bone, position, rotation}
|
||||||
|
|
||||||
local bone = "Arm_Right"
|
local bone = "Armature_Arm_Right"
|
||||||
|
|
||||||
wield3d_location = {
|
wield3d_location = {
|
||||||
["default:torch"] = {bone, {x=0.2, y=5.5, z=3}, {x=-100, y=182, z=83}},
|
["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
6556
models/wield3d_character.x
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user