• Viewmodel animations question
    2 replies, posted
I am making a SWEP using the default SLAM model and animations. But I have encountered a problem. When switching between the Detonator and Stickwall-SLAM animation, it spawns the SLAM model in the air and moves it in the player's hands. I guess there just isn't a proper animation for switching between Detonator and the Stickwall SLAM. My question now is, if it would be possible to completely reset the viewmodels animation. So it looks like I just equipped the weapon, so I could play the animation correctly, because it works then. I am using a workaround which I don't enjoy right now. It forces the player to switch weapons back and forth, to fix the animation.
I don't know how you are attempting this as you haven't posted anything for reference in order to help. But you can always use WEAPON:SendWeaponAnim( ACT_RESET ) or ACT_INVALID. I don't know if this will work, you can always use the WEAPON:SetSequence version ^. ~ I am probably wrong, but I don't know how you are doing this.
The code is too long to post. I am just using SendWeaponAnim together with the ACT_SLAM enums, which are causing this issue, I need to resolve.
Sorry, you need to Log In to post a reply to this thread.