View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-30-2017 , 08:35   Re: [REQ]Cs. 1.6 no stab animation
Reply With Quote #4

Quote:
Originally Posted by Visinescu View Post
Wrong section and wrong forum.

You can't make a knife have no stab animation through plugins, you need a knife model for that.
Correct section and correct forum. You can easily transform the secondary attack to primary, so there will be no stab animation.

PHP Code:
#include <amxmodx>
#include <hamsandwich>

public plugin_init() 
{
    
register_plugin("No Knife Stab""1.0""OciXCrom")
    
RegisterHam(Ham_Weapon_SecondaryAttack"weapon_knife""PreKnifeStab")
}

public 
PreKnifeStab(id)
{
    
ExecuteHamB(Ham_Weapon_PrimaryAttackid)
    return 
HAM_SUPERCEDE

__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom