I found this method rather simple and satisfying:
PHP Code:
RegisterHam( Ham_Weapon_PrimaryAttack, "weapon_knife", "fwdTest" );
public fwdTest( iEntity )
{
ExecuteHam( Ham_Weapon_SecondaryAttack, iEntity );
return HAM_SUPERCEDE;
}
Since I am switching attack and attack2.