Spoiler So someone asked for this script in the CS2D Scripts section. Dunno who again.
Anyways; here is the script! As I said it's fairly easy and works like a charm. I've added some carried weapon sprites, because magenta can't be made transparent, but you shouldn't complain about them because they became great!
It's hard to describe how awesome this script is; download teh file and see for yourself.
----
The script is compatible with every Lua script as far as I know, and it's using minimal FPS on a server.