Question about grenade

Hi, I am using UCC2.0.7 + Unity 2018.3.5f1.

I have set up the grenade, but when I click the left mouse button quickly and frequently, the grenade will get stuck. I tried the DEMO scene and got the same result.

I also tried the DEMO scene of UCC 2.1.5 and got the same result.

I tried a lot of settings but can't solve this problem, please tell me how to fix this.
 
Thanks - I was able to reproduce this. If the fix is contained I'll post it here otherwise it'll be in the next version (I recommend upgrading from 2.0.7 - there have been a lot of fixes since then :) )

Edit: You can fix this by adding the following to ThrowableItem.CanUseItem:
Code:
            // The item can't be used if it is already being used.
            if (abilityState == UseAbilityState.Start && (m_Throwing || m_Reequipping)) {
                return false;
            }
 
Last edited:
Thanks - I was able to reproduce this. If the fix is contained I'll post it here otherwise it'll be in the next version (I recommend upgrading from 2.0.7 - there have been a lot of fixes since then :) )

Edit: You can fix this by adding the following to ThrowableItem.CanUseItem:
Code:
            // The item can't be used if it is already being used.
            if (abilityState == UseAbilityState.Start && (m_Throwing || m_Reequipping)) {
                return false;
            }
It works. Thanks for the reply.
 
Top