Customizable wielditem animations for items with on_use func
https://github.com/minetest/minetest/issues/2811
Whenever you left-click, your empty hand or the item you are wielding swings forward. While this is the sane and normal behavior for most items, it would be extremely useful if the animation of the wielded item could be disabled or overridden by the items. This is an obvious and problematic limitation, as it's impossible to have a matching animation for items with special uses.
The most common example are items you eat: When you left-click to eat an apple, you swing that apple forth as if punching, instead of bringing it closer to the camera where your mouth should be, or not doing any movement at worst. Weapons are even more affected: You cannot make a bow or pistol that shoots upon left-clicking, because it looks like you're punching with it... Kaeza's firearms mod is an example of how ridiculous that looks.
I believe we seriously need a way to disable or customize the wielditem animation for items that have an on_use function. The easy solution would be a flag to disable the punch animation altogether, which would make weapons being fired not look so weird. The harder but better fix would be mechanics to customize the animation... perhaps a Lua table containing a set of positions that the wielded item goes through? Whichever implementation is best, I think a solution for this is highly needed, and that someone with knowledge in this area should look into an option for this.
Whenever you left-click, your empty hand or the item you are wielding swings forward. While this is the sane and normal behavior for most items, it would be extremely useful if the animation of the wielded item could be disabled or overridden by the items. This is an obvious and problematic limitation, as it's impossible to have a matching animation for items with special uses.
The most common example are items you eat: When you left-click to eat an apple, you swing that apple forth as if punching, instead of bringing it closer to the camera where your mouth should be, or not doing any movement at worst. Weapons are even more affected: You cannot make a bow or pistol that shoots upon left-clicking, because it looks like you're punching with it... Kaeza's firearms mod is an example of how ridiculous that looks.
I believe we seriously need a way to disable or customize the wielditem animation for items that have an on_use function. The easy solution would be a flag to disable the punch animation altogether, which would make weapons being fired not look so weird. The harder but better fix would be mechanics to customize the animation... perhaps a Lua table containing a set of positions that the wielded item goes through? Whichever implementation is best, I think a solution for this is highly needed, and that someone with knowledge in this area should look into an option for this.