Modifying Shooter Game

How would I go about modifying the Shooter Game example project to make client A move from left to right, and client B automatically shoot when client A passes the crosshair of client B?
I would like the moving and shooting commands to be executed on the clients, so that they’re sent to the server rather than executed on the server.