AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   EV_INT_Sequence thingy (https://forums.alliedmods.net/showthread.php?t=25069)

Rixorster 03-07-2006 08:21

EV_INT_Sequence thingy
 
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 >_< )

v3x 03-07-2006 10:02

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);   } }

SSJ2GOKU 03-07-2006 10:03

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 ); }

Rixorster 03-07-2006 11:53

Uhh, what does the EV_INT_qaitsequence do? like what is it really? ;P

Twilight Suzuka 03-07-2006 14:02

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.

Rixorster 03-07-2006 14:53

uhh, how can i set the framerate? :S Sorry, but i did look at funcwiki but couldn't find any proper function :S

Zenith77 03-07-2006 15:21

Code:
entity_set_float(entity, EV_FL_framerate, 60.0);

SSJ2GOKU 03-07-2006 15:51

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())

Zenith77 03-07-2006 15:56

Quote:

Originally Posted by Twilight
use the framerate to set how long it should do it. 60 is about right for one animation.


SSJ2GOKU 03-07-2006 16:04

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?


All times are GMT -4. The time now is 20:25.

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