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

Stop animation playing.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 03-29-2009 , 13:22   Stop animation playing.
Reply With Quote #1

Example: if I shoot with m4 or other gun don't play an animation(animation shoot) ;)
xbatista is offline
Send a message via Skype™ to xbatista
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 03-29-2009 , 13:24   Re: Stop animation playing.
Reply With Quote #2

Something like:

PHP Code:
//in plugin_init
register_forward(FM_UpdateClientData "UpdateClientData");


public 
UpdateClientDataidiSendWeaponscd_handle )
{
    
int anim get_cdcd_handle CD_WeaponAnim );
    if( 
anim == ?? )
    {
        
set_cdcd_handle CD_WeaponAnim , ?? );
        return 
FMRES_OVERRIDE;    }
    return 
FMRES_IGNORED;

BOYSplayCS is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 03-29-2009 , 13:25   Re: Stop animation playing.
Reply With Quote #3

THX will try!
xbatista is offline
Send a message via Skype™ to xbatista
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 03-29-2009 , 13:26   Re: Stop animation playing.
Reply With Quote #4

Okay
BOYSplayCS is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 03-29-2009 , 13:41   Re: Stop animation playing.
Reply With Quote #5

UNDEFINED symbol int anim
xbatista is offline
Send a message via Skype™ to xbatista
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 03-29-2009 , 13:48   Re: Stop animation playing.
Reply With Quote #6

try
Quote:
new anim
not
Quote:
int anim
BOYSplayCS, the c++ .
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 03-29-2009 , 14:04   Re: Stop animation playing.
Reply With Quote #7

Wait :/
if( anim == 2) // animation value??? shot_1 ,if shot_1(animation)
{
set_cd( cd_handle , CD_WeaponAnim , 1 ); // then set IDLE value 1.
I'm right? :0
xbatista is offline
Send a message via Skype™ to xbatista
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 03-29-2009 , 14:08   Re: Stop animation playing.
Reply With Quote #8

PHP Code:
new anim

//in plugin_init
register_forward(FM_UpdateClientData "UpdateClientData");

public 
UpdateClientDataidiSendWeaponscd_handle )
{
    
int anim get_cdcd_handle CD_WeaponAnim );
    if( 
anim == ?? )
    {
        
set_cdcd_handle CD_WeaponAnim , ?? );
        return 
FMRES_OVERRIDE;    }
    return 
FMRES_IGNORED;

__________________
alan_el_more is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 03-29-2009 , 14:12   Re: Stop animation playing.
Reply With Quote #9

instead of the ?? you need to place the value of the animation.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 03-29-2009 , 14:13   Re: Stop animation playing.
Reply With Quote #10

I've asked about:
if (anim == 2) // It is shot_1,I've looked up in HALF-LIFE MODEL VIEWER. ???
set_cd( cd_handle , CD_WeaponAnim , 4 ); // set to 4,RELOADING.
xbatista is offline
Send a message via Skype™ to xbatista
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 02:32.


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