Well, you first need a new playertype.
Then a new function to spawn an AI-Player with that playertype near you and let him follow you.
Then we could add some new servercmd's to let the robot play an animation, like holding a weapon and then drop it, so you can pick it up.
I think the scripting could be done easily, but the playertype would be hard