Left 4 Dead Infected/survivors and Counter Strike bots in Gmod Soon! [maybe]

TL;DR: I found console commands that let you do things similar to what you can do in Left 4 Dead and CSS regarding bots. Was wondering if any of you give a rat’s ass about them. Also found a bot that can be added thru console that runs on these grid things that Left 4 Dead uses. Watch video below.

Now, I’d like to make it clear that I have no verification of this from Garry or anyone else working on the game. For all I know, this could have just been something they were playing around with and forgot to take out before sending out the patch. All I know is that as of the most recent update there are bots in Garry’s Mod that use navigation meshes to move about the map.

Don’t know what a navigation mesh is? You can find some info here:
http://developer.valvesoftware.com/w...igation_Meshes

Anyway, I got around to generating the nav mesh for gm_construct the same way you would generate a nav mesh for Left 4 Dead. I opened the map, then typed nav_generate into the console. I then waited for about 5 minutes as my computer made buzzing noises akin to a swarm of bees. Then it reloaded the map, and there you have it: a fully generated nav mesh in Garry’s Mod.

If you didn’t know this already, all source games besides Left 4 Dead and CSS used nodes to allow their AI to navigate the environment. These are placed in the map before it’s compiled, and are layed out by the mapper. In many ways this is in-superior to a nav mesh. The game won’t do it for you, you can’t mark the nodes with anything too complex (such as PLAYER SPAWN or OBSCURED), and the nodes need to be placed before compiling, meaning that if you didn’t make the map, you can’t edit where the nodes are placed (at least to my knowledge). You can find more info on nodes here:

Knowing this, I was astonished when I hadn’t seen anyone else talking about the inclusion of the nav mesh functionality. I searched everywhere, I couldn’t find a single thread on the matter. It was about this point that I realized either I’m crazy or I’m the only one who understands the significance of this. I naturally settled on the second option, and began to wonder if there were any entities coded into Gmod that used the navigation mesh. I started browsing through the console looking for something suspicious that I hadn’t seen there before, and after quite a bit of searching I found it. The command is:

simple_bot_add

It is, as the name implies, a simple bot. It assumes the T pose and wanders around, with the model of a female citizen. The cool thing about her is that I can spawn a large number of them at a time with negligible impact. So far I’ve only been daring enough to try 100, and got 30 fps (which is my average framerate), but I wouldn’t doubt being able to get up to 200 bots before experiencing any noticeable lag.

I urge you all to experiment with this new functionality, and perhaps even provide some more information on the simple_bot’s behavior.

Video:

Interesting find, Shoffing, I tried it for myself. Really interesting.

I’d love to see someone try and use this.

I also found several other left 4 dead commands, including one with the hunter and several in the nb_ and sb_ category.

has to do with the tf_bots!

[editline]10:17AM[/editline]

BRB testing with 300 bots :smiley:

[editline]10:38AM[/editline]

So yeah I made around 300, it crashes the game xD

Someone! **ANYONE! **Attempt this! Please!

[editline]08:11AM[/editline]

by attempt I mean make a kick-ass left 4 dead thing.

Only if they would think every frame, have animations, and attack players.

and their C++ Class is simple_bot
I checked :confused:

This sounds pretty neat. Maybe It’ll spice up the generic DarkRp rp_downtown servers.

Wait, how?

This might be the NextBot framework, I’ll have to look into it. Odd that it would have been compiled in.

Huh? Oh, I don’t know, maybe getting money from killing bot things?

Thats… a really interesting find actually.

Yay! :neckbeard:

Perhaps this could be the end of maps where NPCs just stand still? i certainly hope so :smiley:

Not really, because the NPCs still use ai nodes.

ah. i know jack all about Source’s inner workings, so that might have been a stupid question to you, but thanks for answering!

This been in the 2009 source engine since its released in tf2.
Finally, i am not the only one that noticed it.

Yes, its the Next-bot framework/AI (as far as i know)

So its the l4d bot ai, i believe.

So with some spiffy animations and some damage, we could have a gamemode like l4d?

ESpecially that +50 bots don’t lag :smiley:

This just comes from the TF2 engine update.