Raised This Month: $51 Target: $400
 12% 

EngFunc_WalkMove Sequence Problem


Post New Thread Reply   
 
Thread Tools Display Modes
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 01-29-2014 , 21:48   Re: EngFunc_WalkMove Sequence Problem
Reply With Quote #11

Quote:
Originally Posted by DavidJr View Post
Thanks! It works! But the animation back to idle.

PHP Code:
UTIL_ZombieSeq(iEntiSeq)
{
    if (!
is_valid_ent(iEnt)) return;
    
    
entity_set_float(iEntEV_FL_animtimeget_gametime());
    
entity_set_float(iEntEV_FL_frame1.0);
    
entity_set_float(iEntEV_FL_framerate1.0);
    
entity_set_int(iEntEV_INT_sequenceiSeq);

In the think function, detect if is actually dying, and check if pev_frame is higher or equal to 256, reset pev_frame value to 256 and set framerate to 0.0 for stopping it from playing again

Also, make sure that playersearching functions don't execute when "dying" that would call idle animations
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross

Last edited by meTaLiCroSS; 01-29-2014 at 21:49.
meTaLiCroSS is offline
DavidJr
Senior Member
Join Date: Apr 2012
Old 01-29-2014 , 21:58   Re: EngFunc_WalkMove Sequence Problem
Reply With Quote #12

Understand, thanks ;)
__________________
What are you looking for here?
DavidJr is offline
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 06:00.


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