Raised This Month: $ Target: $400
 0% 

Efficent way to block secondary Attack of knife


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 01-07-2014 , 13:01   Re: Efficent way to block secondary Attack of knife
Reply With Quote #1

Quote:
Originally Posted by Kia View Post
Does not work.
Sure? lol, I've been using that code since years for blocking secondary attack on certain weapons and it works perfect

https://forums.alliedmods.net/showpo...34&postcount=9

please..

Quote:
Originally Posted by yokomo View Post
This will block stab and replace animation to idle.
You need New Hamsandwich module.
PHP Code:
#include <amxmodx>
#include <hamsandwich>

public plugin_init()
{
    
register_plugin("No Stab""0.0.1""wbyokomo")
    
RegisterHam(Ham_Weapon_SecondaryAttack"weapon_knife""OnKnifeSecAtk")
}

public 
OnKnifeSecAtk(ent)
{
    
ExecuteHamB(Ham_CS_Weapon_SendWeaponAniment00)
    return 
HAM_SUPERCEDE;

That code will be called every frame if you press the +attack2 button, it's not recommended and it's ugly also.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross

Last edited by meTaLiCroSS; 01-07-2014 at 13:02.
meTaLiCroSS 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 10:06.


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