Using IK for melee weapon attack animations.

Has anyone attempted to create scripts that use the IK system to animate weapon attacks?

My thought is that I could greatly reduce my games animation requirements if I could create a procedural attack system. Each weapon could have an IK target for the character’s hand(s). A weapon attack would transform the weapon (perhaps with it’s own bone or two for flails etc) and make use of a target IK.

IK is commonly used for planting an end joint to a surface or making a hierarchy look towards / point towards a set target.
Can you explain in more detail how you want to use IK, keeping in mind the common use for IK?

I recently saw a game (that I can’t remember the name of) (I think it was double fine) that had these procedural character flailing around attacking each other. If I understand your desire correctly, using that game as a reference it seems IK can be used in some kind of way like you describe, however it also seems the procedural-ness of that game (partial ragdoll physics to control the arms/weapons) results in kinda floppy, only semi-controllable results. I think they probably used IK for the upper body limbs and maybe torso, however its hard to know where procedural ends and IK begins.

Floppy animated characters may have been the intended desired look the company was going for, so the floppy-ness of the animations may be on purpose. However combining procedural physics with regular animations might be less accurate than you want to achieve.
IK is accurate - but I think it is also not procedural, so you will have to decide how much control you want to give up in order to add procedural to the process.
An example of IK used kind of procedurally is driven by code to be procedural - when my guy walks by any trigger make him turn his head to look at the trigger with IK while the rest of the body is controlled by animation, when he walks past the trigger turn off IK and resume animation over the entire body.