I was wondering if anyone had ever put together a code book with a quick reference glossary?

I am looking for code to do things like

Zoom in / Zoom out
Limit Ammo / Rounds cap
Failure if wrong target is shot

Things along these lines.

cheers