Oops I've double posted again.
Here's a link to a test mission containing the latest suite of scripts: http://home.iprimus.com.au/simonnsl/...on.Zargabad.7z
1. Weapon is only lowered if you have a rifle/LMG readied as you cannot lower pistols or launchers.
2. Optimised code to lower processor requirements on client eg. Added functions to remove code from main loop NB: this script only runs on client
3. Added a check to stop multiple instances of the rifle lowering scripts from running if you are squad leader and your squad contains AI
4. Fixed bug whereby once your weapon was lowered you could still raise it by aiming.
5 Almost completely removed the possibility of being stuck in an animation loop.
Over the next few days I'll add some more checks for movement speed so you don't stop for an instant every time you auto-raise your rifle.
If you try it please let me know how you get on.