Raised This Month: $ Target: $400
 0% 

EV_INT_Sequence thingy


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rixorster
Senior Member
Join Date: Jul 2005
Old 03-07-2006 , 08:21   EV_INT_Sequence thingy
Reply With Quote #1

well, im trying to set the player model to do one sequence, i chose one random and in game, binded one key to the command, and when i pressed it, it like did it for 0.1 seconds and returned to idle sequence ;O How can i make it do the sequence like as long as i want to? (No, i dont want to do any create_model stuff, i want to make the actual player model do the sequence >_< )
__________________
You never know, what will happen the day after tomorrow...

+karma if i helped you!
Rixorster is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-07-2006 , 10:02  
Reply With Quote #2

Use it in client_PreThink along with a global variable.

Code:
new blah[33]; public my_func(id) {   //   blah[id] = 1; } public client_PreThink(id) {   if(blah[id]) {     entity_set_int(id , EV_INT_sequence, 1);   } }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
SSJ2GOKU
Senior Member
Join Date: Oct 2005
Location: Belgium
Old 03-07-2006 , 10:03  
Reply With Quote #3

make a plugin that continuously executes the same stuff

something like this:

Code:
server_frame{ entity_set_int( entity, EV_INT_sequence, 102 ); entity_set_int( entity, EV_INT_gaitsequence, 0 ); }
SSJ2GOKU is offline
Send a message via MSN to SSJ2GOKU
Rixorster
Senior Member
Join Date: Jul 2005
Old 03-07-2006 , 11:53  
Reply With Quote #4

Uhh, what does the EV_INT_qaitsequence do? like what is it really? ;P
__________________
You never know, what will happen the day after tomorrow...

+karma if i helped you!
Rixorster is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-07-2006 , 14:02  
Reply With Quote #5

v3x, that is the worst possible way ever.

The right way is to tell it how many frames to do it.

use the framerate to set how long it should do it. 60 is about right for one animation.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Rixorster
Senior Member
Join Date: Jul 2005
Old 03-07-2006 , 14:53  
Reply With Quote #6

uhh, how can i set the framerate? :S Sorry, but i did look at funcwiki but couldn't find any proper function :S
__________________
You never know, what will happen the day after tomorrow...

+karma if i helped you!
Rixorster is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 03-07-2006 , 15:21  
Reply With Quote #7

Code:
entity_set_float(entity, EV_FL_framerate, 60.0);
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
SSJ2GOKU
Senior Member
Join Date: Oct 2005
Location: Belgium
Old 03-07-2006 , 15:51  
Reply With Quote #8

twilight, so how would you do it for making a model play the whole time the same animation untill you say it has to stop ?

i'm currently using server_frame() but it doesnt totally play the animation
(i guess i already know why ==> server_frame())
SSJ2GOKU is offline
Send a message via MSN to SSJ2GOKU
Zenith77
Veteran Member
Join Date: Aug 2005
Old 03-07-2006 , 15:56  
Reply With Quote #9

Quote:
Originally Posted by Twilight
use the framerate to set how long it should do it. 60 is about right for one animation.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
SSJ2GOKU
Senior Member
Join Date: Oct 2005
Location: Belgium
Old 03-07-2006 , 16:04  
Reply With Quote #10

Quote:
Originally Posted by Zenith77
Quote:
Originally Posted by Twilight
use the framerate to set how long it should do it. 60 is about right for one animation.
in what function ?????
in the server_frame or in which one?
SSJ2GOKU is offline
Send a message via MSN to SSJ2GOKU
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 20:25.


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