Currently, there is no 'right' way to register an animation setup for your modded items. Many of us are doing this currently, but it has a chance to crash the server when it runs:
modded class PlayerBase { override void Init() { DayzPlayerItemBehaviorCfg fireArmsItemBehaviour = new DayzPlayerItemBehaviorCfg; fireArmsItemBehaviour.SetFirearms(); GetDayZPlayerType().AddItemInHandsProfileIK("MyModdedWeapon", "dz/anims/workspaces/player/player_main/weapons/player_main_cz527.asi", fireArmsItemBehaviour, "dz/anims/anm/player/ik/weapons/cz527.anm", "dz/anims/anm/player/reloads/cz527/w_CZ527_states.anm"); super.Init(); } }
We are 99% sure this is the cause for the crashes reported to happen on player respawn/creation on modded servers. We've tried to only set it once and not set again if already set, but it still seems to crash. Hopefully if an official way to set our animations up was in 1.08 it would eliminate a *lot* of server crashes for modded servers. I know something like this is probably coming when custom animation support arrives, but hopefully now we know this is causing crashes we can get the support to set .asi/ik early even if animation support is not ready.