If you need generic functions to help you simulate a real player ( bot aiming, generating different type of errors,...) you should try this site
http://www.gamebotfactory.com/gdtoolbox/
In particular, it seems to provide robust and definitive answers to some questions and solutions addressed in the WIKI chapter dealing with bot aiming.
Hope you will find it useful.