Raised This Month: $ Target: $400
 0% 

how do i make my weapon models keep animating?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Major_victory
Member
Join Date: Nov 2005
Location: Illinois
Old 12-17-2005 , 18:43   how do i make my weapon models keep animating?
Reply With Quote #1

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:
#define SEQ_IDLE        0 #define SEQ_FIDGET      1 #define SEQ_RELOAD  2 #define SEQ_FIRE        3

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:
if(mysequence = SEQ_RELOAD) {     entity_set_int(id, EV_INT_weaponanim, SEQ_RELOAD) }

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
__________________
Games i've screwed with:
Battlefield 1942, CNC Generals, Red Faction, Incoming/Incoming Forces, The Sims, Sim City 3k, Unreal Tournament, Fallout 1/2, Ragnarok, Goonzu, and CS 1.6.
Major_victory is offline
Send a message via AIM to Major_victory Send a message via Yahoo to Major_victory
 


Thread Tools
Display Modes

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 16:04.


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