how do i make my weapon models keep animating?
I've tried everything i can think of to do this...
I'm trying to make the animation on the rpg model from HL to KEEP animating even after the user has stopped pressing a button. Here's what i've learned, tried, and know so far: 1. I know i have to use the function entity_set_int(id, EV_INT_weaponanim, <sequence>) 2. I know what the sequence numbers are and have some constants set up for them: Code:
3. I've tried using entity_set_int in client_PreThink and it works only if the person continues to hold down the button, i've also tried a seperate function with the same results. I then tried a system of set_tasks and still had the same results. 4. if i do an if statement in client_PreThink like this: Code:
then it crashes before i can start a server. what i need to know is: 1. where to place the entity_set_int function so that it will continue the animation after it has been called once or set in motion. 2. is there any other way to start a players weapon animation? please reply soon and i'll put your name in the special thanks section of my plugin, which for reference can be found here: http://forums.alliedmods.net/showthread.php?t=20745 |
What about useing set_task in it?
|
Code:
|
that didn't work, although i see what you're trying to do. for some reason it only works if i hold down one of the attack buttons.
i've tried having it go to idle if no attack buttons were being used and a whole slew of other conditions but it still won't work :( this is so frustrating! i can come so close but it always requires the person to hold down the button :x |
You could always try PostThink instead.
|
ok... i'm still having lot's o problem animating this thing. i can't use IN_RELOAD or IN_IDLE because the plugin has it's own reloading and firing commands. I can still get pretty close to animating on it's own by performing +attack on the client while it needs to be animating and performing -attack when i'm done but this creates problems when you switch weapons at diff times. it also requires a fet set_tasks to get the timing right.
what i really need is a way to make it keep animating. i've tried so many different ways it's not even funny any more. P.S. PostThink didn't do anthing. |
Quote:
|
Could try this: http://forums.alliedmods.net/showthr...=195090#201225
But SubFive had no luck with it. Although, you might ;) |
It was quite difficult and I still couldnt get the animation working. I'm still hoping Avalanche will come through and spill the beans though, he keeps telling me to do stuff but never has directly given me code. :?
|
Quote:
I did give you code, you dumbass. You just neglected to follow it but cutting half of it out. When you do finally test it, make sure you have another person watching you as opposed to using a third-person camera because of client prediction. |
| All times are GMT -4. The time now is 16:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.