Raised This Month: $32 Target: $400
 8% 

Custom weapons animation problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fireattack
Senior Member
Join Date: Jul 2008
Old 07-27-2014 , 00:37   Custom weapons animation problem
Reply With Quote #1

Hello, I'm having a problem with custom weapon animations, I'm going to try my best to explain this.

Note: words between quotes are examples.

If I play "reload animation" on my "weapon cannon" and then I change to MP5 for example, when MP5 deploy animations starts I change fast to "weapon cannon" again and I play "reload animation" and here comes the problem: when the MP5 deploy animation should stop, at this moment, it blocks the reload animation of my weapon.

In conclusion:

1. I have a weapon called "cannon".
2. I change to MP5 and its deploy animation starts to play ( duration of deploy animation maybe would be between 1 or 2 seconds ).
3. I change fast to my weapon "cannon" don't letting MP5 deploy animation finish and I play reload animation.
4. When the MP5 deploy animation should stop to play after 1-2 seconds it blocks my weapon animation despite I don't have MP5 on my hands.

Now I'm trying to remove that kind of task, but I don't know how to do it exactly.

Maybe with Item_Postframe?

Last edited by fireattack; 07-27-2014 at 00:39.
fireattack is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-27-2014 , 01:02   Re: Custom weapons animation problem
Reply With Quote #2

How we're supposed to help you if you don't provide code? If it is private, you have nothing to do here
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
fireattack
Senior Member
Join Date: Jul 2008
Old 07-27-2014 , 01:19   Re: Custom weapons animation problem
Reply With Quote #3

Quote:
Originally Posted by meTaLiCroSS View Post
How we're supposed to help you if you don't provide code? If it is private, you have nothing to do here
I just want to know how to block that situation, I'm searching the function which can block that kind of task.

You don't need the code just because it's not a programming error.
fireattack is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-27-2014 , 01:28   Re: Custom weapons animation problem
Reply With Quote #4

Quote:
Originally Posted by fireattack View Post
I just want to know how to block that situation, I'm searching the function which can block that kind of task.

You don't need the code just because it's not a programming error.
Anyway, the way you do it, and the base weapon, are important, it isn't enough with words
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
fireattack
Senior Member
Join Date: Jul 2008
Old 07-27-2014 , 09:15   Re: Custom weapons animation problem
Reply With Quote #5

Problem solved, you can fix that problem using m_flTimeWeaponIdle and m_flNextAttack.
fireattack is offline
wiwi249
Member
Join Date: Oct 2013
Old 02-13-2015 , 06:43   Re: Custom weapons animation problem
Reply With Quote #6

Anyone could say something more about that?
wiwi249 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode