Quote:
Originally Posted by Visinescu
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_PrimaryAttack, id)
return HAM_SUPERCEDE
}
__________________