Raised This Month: $ Target: $400
 0% 

[SOLVED] ACT_RANGE_ATTACK1 Activity - Playing Animation


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
fearAR
Veteran Member
Join Date: Oct 2010
Old 01-14-2013 , 17:25   [SOLVED] ACT_RANGE_ATTACK1 Activity - Playing Animation
Reply With Quote #1

Hi, I've a problem with a plugin. I'm making a new knife, for that reason I block the primary and secondary attack by setting m_flNextPrimaryAttack and others, to get_gametime() + 999.0, so the player can't attack, and then I hook cmdstart for improve the next attack when IN_ATTACK button is pressed.

All things are ok, the attack, the tracelines, the takedamage, but now, I am trying to play player animation because the player stays like he isn't attacking.

I tried with this code, in the code when user pressed IN_ATTACK button:

Like Arkshine said:
PHP Code:
const ACT_RANGE_ATTACK1 28;
const 
m_Activity 73;

set_pdata_intidm_ActivityACT_RANGE_ATTACK1 );
set_pevidpev_sequenceYOUR_SEQUENCE )
set_pevidpev_animtimeget_gametime() );
set_pevidpev_frame);
set_pevidpev_framerate1.0 ); 
But, when I walk, the animation doesn't play, I think it is because the WALK activity replace this activity in the next frame.

I thought implementing Orpheu ( CBasePlayer::SetAnimation() ), I tried but I can't achieve this. Maybe anyone can help me?

Greetings.
__________________
~~~~ NPC AI ~~~~

[ Pathfinding - OK ]
[ Citizen AI - OK ]
[ Handle Weapons - --- ]

Last edited by fearAR; 01-14-2013 at 17:26.
fearAR is offline
Send a message via MSN to fearAR
 



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 13:38.


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