Quote:
Originally Posted by arkshine
But a better way would be to set to 9999.0 the offset m_flNextSecondaryAttack
(47) when you deploy a weapon. ( Ham_Item_Deploy )
|
I noticed it resets after the player shoots... you could need to set it again after each shot
edit: yep, works perfectly, I also needed this, thanks from me too
PHP Code:
RegisterHam(Ham_Item_Deploy, "weapon_knife", "fwHam_blockSecAttack", 1)
RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_knife", "fwHam_blockSecAttack", 1)
public fwHam_blockSecAttack(ent) set_pdata_float(ent, 47, 9999.0)
__________________