Raised This Month: $ Target: $400
 0% 

How to set delay for knife secondary attack (attack2) ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kz1.0
Senior Member
Join Date: Jan 2013
Location: Vietnam
Old 03-15-2013 , 09:33   How to set delay for knife secondary attack (attack2) ?
Reply With Quote #1

I searched but not found any good solution .
I want to make a plugin that when I using Knife and press +attack2, the animation played, but X Seconds later, the real damage and sound appear (if hit) or just sound (if miss)
Kz1.0 is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 03-15-2013 , 14:27   Re: How to set delay for knife secondary attack (attack2) ?
Reply With Quote #2

Hook Ham_Weapon_SecondaryAttack to weapon_knife
Code:
#include <fakemeta>
#define	m_flNextSecondaryAttack			47
set_pdata_float(iEnt, m_flNextSecondaryAttack, 9999.9, 4);
9999.9 is the delay of the attack.
SpeeDeeR is offline
Kz1.0
Senior Member
Join Date: Jan 2013
Location: Vietnam
Old 03-16-2013 , 10:25   Re: How to set delay for knife secondary attack (attack2) ?
Reply With Quote #3

Tks, but it just the time between two attacks, not the one I described above.
Kz1.0 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 21:40.


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