Funukemaguro
New member
I would like to make a mod to add animations for reloading firearms, etc., but I can't seem to get it to work.
Currently, we know that the "WeaponHoldType" parameter of the animation controller determines which weapon's animation is played.
Therefore, for the animation of the weapon you want to add, assign a "WeaponHoldType" number that is not assigned in the vanilla to create an animation state and the transitions that lead to it.
Then, in the "items.xml" file, I assign the newly added "WeaponHoldType" number to the "HoldType" of the weapon to which I want to assign the animation, and the newly added animation will be played when the weapon is held in the hand. I have found that the newly added animation will play when the weapon is held in the hand.
...But the problem is that I don't know how to load the animation controller with its animation and parameters added to replace the existing animation controller.
Can anyone tell me how to achieve this or know of a better way to add animation?
If this is realized, it should be possible to implement cool weapons such as "bullpup rifles" and "two pistols" with mods, which we have given up implementing because we could not use the vanilla animations.
Currently, we know that the "WeaponHoldType" parameter of the animation controller determines which weapon's animation is played.
Therefore, for the animation of the weapon you want to add, assign a "WeaponHoldType" number that is not assigned in the vanilla to create an animation state and the transitions that lead to it.
Then, in the "items.xml" file, I assign the newly added "WeaponHoldType" number to the "HoldType" of the weapon to which I want to assign the animation, and the newly added animation will be played when the weapon is held in the hand. I have found that the newly added animation will play when the weapon is held in the hand.
...But the problem is that I don't know how to load the animation controller with its animation and parameters added to replace the existing animation controller.
Can anyone tell me how to achieve this or know of a better way to add animation?
If this is realized, it should be possible to implement cool weapons such as "bullpup rifles" and "two pistols" with mods, which we have given up implementing because we could not use the vanilla animations.