Unless you are a pro coder, no.
Also, why would you want to edit the coding. They coded the knife to be removed from your inventory for realism, if you throw a knife in real life, it doesn't magically re-appear in your hand. As for the ammo thing, you can have more than one Throwing knife in your inventory.