That was done by writing a C++ scripthook. However, it was unfinished, since if he attacks or is hit, the game crashes. The guy stopped working altogether on it due to leeching and too many people hounding him for this mod.
Mad has a working version of this mod, but it still needs a lot of work before it can be released.