Garry's Mod

Garry's Mod

29,187 ratings
DrGBase | Nextbot Base
33
51
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://steamproxy.com/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)
600
7 Dec @ 11:20am
PINNED: Bugs
Dragoteryx
138
5 Nov @ 12:46pm
PINNED: Suggestions
Dragoteryx
102
24 Sep @ 5:44pm
PINNED: Help
Dragoteryx
2,939 Comments
roachisserie chicken  [author] 8 hours ago 
try using the github version since you're using legacy addons
[Neptune] Cha0s_B0y 9 hours ago 
[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 hours ago 
[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
BeekMan 7 Dec @ 9:09am 
The error happen when an initial player spawn, after the update
I've try to remove everything that use DrGBase but nothing change....
roachisserie chicken  [author] 7 Dec @ 7:31am 
that... sounds like confirmation bias to me, because that doesn't make any sense
source engine is cpu-driven, not gpu-driven
GLAZING ROULETTE 7 Dec @ 6:08am 
hey wassup, by some time on i noticed a overuse in my gpu vram about double the standard, removing this base it got fixed
Dragoteryx  [author] 7 Dec @ 5:45am 
when does this error happen? I can't reproduce it
BeekMan 7 Dec @ 5:18am 
Since the last update :

[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 - addons/ulib/lua/ulib/shared/hook.lua:109
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