In this tutorial, I'll tell you how to add walking citizens that will "patrol" around all the current map. It's very useful for roleplaying gameplay. This also works on every source engine with the npc_citizen entity (Half-Life 2, Portal, Gmod...).
First, create all the citizens you want, at all the places you want them to be walking. Spawn the original HL2 citizens, but they don't seem to be cool for roleplay as this, except if we are on Half Life 2 roleplay. You can also spawn addon citizens NPCs, as I replaced their models with others from addons (First picture). Commands for spawning citizens in other games that are not garry's mod: - ---- > npc_create npc_citizen ---- - ---- > ent_create npc_citizen ----
When you have a lot of Citizens spawned around the map, now you must enable cheats for write this input in the game console (Without the lines, of course) :
- sv_cheats 1
- ent_fire npc_citizen startpatrolling
Then, if you don't want other players using cheats, disable cheats now. Congratulations! Now you have walking citizens all around your map!
Functions of the citizens: -They won't response you now when you stare at them and press E. -They will now walk around (Usually, crossing the streets) and explore the zone. -When they walk and see they have something in front of 'em, they will stop walking and stare at it. (Even walls) -They will start walking, and stop for a bit, and continue walking in another direction, then the same. -Also, they won't get out of your way, when you push them, even without the Ignore Players mark checked, or ai_ignoreplayers 0. -If you spawn multiple citizens and start patrolling, you may have some lag. If you never had lag before in gmod, you won't have any lag with this. -You can save the game if you are on singleplayer. They will keep walking when you load the game again.
I hope it's useful for you! Because it is for me! I would really like to see this on some gmod roleplaying server, as there are not enough players to make it look like a city, check the screenshots!
Tutorial made by Alexandrovich, have fun and... Enjoy!