Questions about SNPC Structure

Hello. I’ve been looking for a tutorial that will show me the basics of creating an SNPC, and I have been having trouble finding one. I already have enough knowledge of Lua and GMod Lua to create it, however, I just need to know a few more things. What I need to know is:

  1. What is required to be put in the shared.lua, init.lua, and cl_init.lua files, and what do you recommend?
  2. What is the base used in an SNPC?
  3. I would REALLY like to find a list of members for the SNPC, I can’t seem to find it on the GMod wiki.
  4. What are some common functions found in SNPCs?

I don’t need a lot of code, just enough to explain the basic setup, nothing fancy.

Thanks ahead of time for all of the help.

  1. Code.
  2. base_ai
  3. There are none
  4. There are none. Use the hooks from the wiki and code your NPC to do what you want it to do.