This script was written for the GTA Hitman mod, now it is available as a separate cleo script.
To throw a knife or katana, you need to press "Aim" + "Sprint" when this weapon is in the hands of CJ-I. You can throw not only while standing, but also while running. Hitting the peds will cause them a mortal wound, while the peds will scream. After their death, the thrown weapon can be picked up near the corpse. When throwing a knife, peds will have different death animations, depending on whether the knife hit in front or behind. If the ped sits down, the knife will fly over him without hitting him. There is no escape from the katana in this way, as it flies vertically while spinning.
Plus, a script has been added that gives the player a knife and a katana. To get them, enter the cheat codes KNIFE or KATANA.
Installation:
Scripts require CLE3 and CLEO4 to work. Put the code.cs and throw.cs files in the CLEO folder. Add the throw.ifp file to gta3.img (using the IMG Tool or similar programs).