Raised This Month: $ Target: $400
 0% 

EV_INT_sequence - no repeat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fork
New Member
Join Date: Jul 2007
Old 07-16-2007 , 10:48   EV_INT_sequence - no repeat
Reply With Quote #1

hi,

first my code:
Code:
register_forward(FM_PlayerPreThink, "ClientPreThink");

public ClientPreThink(Client)
{
    if (getClientATKCHARGE(Client) && isFX != 1)
    {
        server_print("FX on!");
        entity_set_int(Client, EV_INT_sequence, 110);
        isFX = 1;
    }
}
this works fine, but i still dont want that the sequence 110 repeats. i want to play him and then freeze him until i change them again. any ideas?
Fork is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 07-17-2007 , 00:45   Re: EV_INT_sequence - no repeat
Reply With Quote #2

I'm not sure I totally understand your question, but you can control the frame that's displayed in the sequence with EV_FL_frame. So just set the sequence, then control which frame is displayed.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
Fork
New Member
Join Date: Jul 2007
Old 07-17-2007 , 07:46   Re: EV_INT_sequence - no repeat
Reply With Quote #3

example:

i tell my model to do sequence 110. after this sequence is done, it repeats but i dont want repeat the sequence, i want play the sequence and after its finished i should not change it should just stay at the last frame.
Fork is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 07-17-2007 , 08:14   Re: EV_INT_sequence - no repeat
Reply With Quote #4

Then I think my post should work for you. Hook 'client_prethink', set the sequence, then advance the frames on each 'think' until it hits the last frame and loop there. You may have to fiddle with the 'framerate' and/or the amount you advance the frames since the model's framerate is probably different than the server's.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 07-17-2007 , 19:41   Re: EV_INT_sequence - no repeat
Reply With Quote #5

The attached file forces players to stop animating when they are standing still or crouched. I believe this will help you in your quest for self-actualisation.
Attached Files
File Type: sma Get Plugin or Get Source (dod_blendin.sma - 836 views - 2.1 KB)
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
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 09:46.


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