DrGBase | Nextbot Base для Garry's Mod
DrGBase is built on top of the default nextbot base to add stuff that you usually have to code yourself when creating a nextbot, such as AI behaviour or a relationship system. It also comes with a built-in possession system that allows you to quickly and easily add possession to any nextbot that is made on the base. It also fixes many bugs related to nextbots and adds behaviours that aren't available in the Lua API, such as climbing.
Features:
- Line of sight (if the nextbots don't detect you they won't attack you)
- Nextbots react to sounds near them
- Easy to setup possession system
- Powerful relationship system based on the default NPC one
- NPCs will react to the nextbot's presence (works without a bullseye!)
- VJ Base and CPTBase compatibility
- Weapon support
- No navmesh navigation
- Ladder and ledge climbing
- Lots and lots of helper functions
Currently working on:
- Nodegraph compatibility
- Optimisation (always)
To-do list:
- Flying
Q&A:
Q: How to create a nextbot using this base?
A: You can take a look at the wiki page of the base on Github, it features a template file to get you started:
https://github.com/Dragoteryx/drgbase/wiki/Template-file
However, making a nextbot still requires Lua knowledge, so if this is your first addon I'd suggest taking a look at the Gmod wiki first, and maybe trying to make a few simpler entities before making something more complex:
https://wiki.garrysmod.com/page/Beginner_Tutorial_Intro
If you have any questions relating to the base, I'll do my best to help you, however don't expect help from me for something that is not related to DrGBase.
Q: How to possess a nextbot?
A: If you are in Sandbox, you can use the possess property on the nextbot using the contextual menu. Just hover your mouse over the nextbot while holding C. You can also the Possession SWEP.
Credits:
Dragoteryx: The code
Roach: Bug testing and suggestions
I think that's it.