Garry's Mod

Garry's Mod

29,253 ratings
DrGBase | Nextbot Base
33
52
14
40
70
16
28
20
10
36
9
30
30
15
24
18
15
13
12
6
8
8
7
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
611.171 KB
8 Nov, 2018 @ 7:14pm
22 Nov @ 11:05am
130 Change Notes ( view )

Subscribe to download
DrGBase | Nextbot Base

In 1 collection by Dragoteryx
My Awesome Addons
9 items
Description


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
- NPCs will react to the nextbot's presence (works without a bullseye!)
- VJ Base and CPTBase compatibility
- Weapon support
- Works on maps with no navmesh
- Ladder and ledge climbing
- Lots and lots of helper functions

Currently working on:
- Rewriting the entire base
- Optimisation (always)

Incompatible addons:
https://v1.steam.hlxgame.cc/sharedfiles/filedetails/?id=2053559031


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.

Q: I've found a bug!
A: Create a new issue on Github => https://github.com/Dragoteryx/drgbase/issues

Credits:
Dragoteryx: The code
Roach: Bug testing and suggestions

I think that's it.
Popular Discussions View All (92)
602
13 Dec @ 9:56pm
PINNED: Bugs
Dragoteryx
140
16 Dec @ 1:00am
PINNED: Suggestions
Dragoteryx
102
24 Sep @ 5:44pm
PINNED: Help
Dragoteryx
2,944 Comments
takit2194 7 hours ago 
how come when subscribed it crashes my game and wont let me load a map
mini1ce 14 Dec @ 5:14pm 
Hey, what are the original settings for AI settings?
Pipin 13 Dec @ 7:08pm 
Anyone know how to fix the possess feature? Whenever I possess I just can't move and only turn in place. The maps I use have Navmesh and everything
roachisserie chicken  [author] 10 Dec @ 5:16pm 
they can, check your nav-mesh
robbythetechguy 10 Dec @ 4:42pm 
why cant npcs walk up stairs?
roachisserie chicken  [author] 9 Dec @ 4:08pm 
try using the github version since you're using legacy addons
[Neptune] Cha0s_B0y 9 Dec @ 3:41pm 
[drgbase] addons/drgbase/lua/entities/drgbase_nextbot/possession.lua:137: attempt to call method 'Get__DrGBaseSpawnAndPossessPlayer' (a nil value)
1. _InitPossession - addons/drgbase/lua/entities/drgbase_nextbot/possession.lua:137
2. _InitModules - addons/drgbase/lua/entities/drgbase_nextbot/shared.lua:224
3. unknown - addons/drgbase/lua/entities/drgbase_nextbot/shared.lua:194

Also this when fixing the last error and spawning an DRGBase NPC.
[Neptune] Cha0s_B0y 9 Dec @ 3:26pm 
[DrGBase | Nextbot Base] lua/drgbase/spawnmenu.lua:4: attempt to call field 'GetEntry' (a nil value)
1. GetIcon - lua/drgbase/spawnmenu.lua:4
2. v - lua/drgbase/nextbots.lua:128
3. Call - lua/includes/modules/hook.lua:102
4. CallPopulateHook - gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/content.lua:58
5. Function - lua/drgbase/spawnmenu.lua:17
6. unknown - gamemodes/sandbox/gamemode/spawnmenu/creationmenu.lua:48

Timer Failed! [Simple][@gamemodes/sandbox/gamemode/spawnmenu/creationmenu.lua (line 46)]

Getting this error when joining my server. spawnmenu hasn't been changed by the gamemode or anything else.
Cat_tjan 8 Dec @ 4:36pm 
NPC's getting stuck trying to walk Through walls, faces. i turnd off the option "avoid obstacles" but then they just stand there. plese help.
milesgalaxy722 7 Dec @ 12:51pm 
btw i got a error in the pill hide and seek server: [DrGBase | Nextbot Base] lua/includes/modules/list.lua:79: attempt to call global 'istable' (a nil value)
1. GetIcon - lua/includes/modules/list.lua:79
2. fn - lua/drgbase/nextbots.lua:128
3. Call - lua/ulib/shared/hook.lua:115
4. CallPopulateHook - gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/content.lua:58
5. Function - lua/drgbase/spawnmenu.lua:17
6. unknown - gamemodes/sandbox/gamemode/spawnmenu/creationmenu.lua:48