Roleplay Citizens

With this tutorial, I'll show you how to add pedrestians...

Hello there!

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
  • entfire npccitizen 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!

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Tutorial.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Tutorial a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Tutorial.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • aezakmi123's Levels
    • C1: Member
    • A1: Lollipop
      Account Age: 25 days
    Posted 25 days ago

    Notes:

    • thx
    • Agree x 1
    Bananite
  • patlovegun's Levels
    • C1: Member
    • A1: Lollipop
      Account Age: 30 days
    Posted 30 days ago

    good thx

    • Thanks x 1
    Bananite
  • aa2000aa's Levels
    • P1: Beggar
      Points: 244
    • C1: Member
    • A1: Lollipop
      Account Age: 2 months
    Posted 1 month ago

    thank you its on

    • Thanks x 1
    ahmad kharmah
  • alexandrovich's Levels
    • P1: Beggar
      Points: 380
    • E1: Helper
      EF: 1
    • C2: Treehouse Member
    • A4: Graduate
      Account Age: 2 years
    Posted 1 month ago

    Posted by mchoppus

    Notes:

    • This is doesn't work for me. every time i type ent­fire npc­citizen startpatrolling i got unknown command ent_.

    Did you make sure you typed: "entfire" instead of ent fire?

    User Title
    //What r u looking for here?
  • mchoppus's Levels
    • P1: Beggar
      Points: 3
    • C1: Member
    • A1: Lollipop
      Account Age: 1 month
    Posted 1 month ago

    Notes:

    • This is doesn't work for me. every time i type ent­fire npc­citizen startpatrolling i got unknown command ent_.
    Bananite
  • mawzap77's Levels
    • P1: Beggar
      Points: 2
    • C1: Member
    • A1: Lollipop
      Account Age: 1 month
    Posted 1 month ago

    Pros:

    • thank
    Bananite
  • TitleKuNG's Levels
    • P1: Beggar
      Points: 16
    • C1: Member
    • A1: Lollipop
      Account Age: 2 months
    Posted 2 months ago

    Thanks

    Bananite
  • dat guy's Levels
    • P1: Beggar
      Points: 210
    • C1: Member
    • A3: Apprentice
      Account Age: 1 year
    Posted 8 months ago

    Posted by alexandrovich

    Posted by dat guy

    will you be able to run them over at high speed or do they just go through your car? cuz that always happens to me... :(

    Yeah, that's a mistake because the game never thought you could hurt citizens! You can run over enemies but not citizens, so by now I will think of something...

    YAY! thank you!

    Wat u lookin at?
  • alexandrovich's Levels
    • P1: Beggar
      Points: 380
    • E1: Helper
      EF: 1
    • C2: Treehouse Member
    • A4: Graduate
      Account Age: 2 years
    Posted 9 months ago

    Posted by dat guy

    will you be able to run them over at high speed or do they just go through your car? cuz that always happens to me... :(

    Yeah, that's a mistake because the game never thought you could hurt citizens! You can run over enemies but not citizens, so by now I will think of something...

    User Title
    //What r u looking for here?
  • dat guy's Levels
    • P1: Beggar
      Points: 210
    • C1: Member
    • A3: Apprentice
      Account Age: 1 year
    Posted 9 months ago

    will you be able to run them over at high speed or do they just go through your car? cuz that always happens to me... :(

    Wat u lookin at?

Credits

Submitter
alexandrovich's Levels
  • P1: Beggar
    Points: 380
  • E1: Helper
    EF: 1
  • C2: Treehouse Member
  • A4: Graduate
    Account Age: 2 years
(Creator/Co-creator)
Original Authors
Alex Anton
Created the tutorial

Rating

9.9/10
Based off 9 rating(s)

Additional Info

Genre
Coding/Scripting
Difficulty Level
Beginner

Stats

Post Count
18
ViewCount
9,000
Date Added
11 months ago
Date Modified
11 months ago

Share

Embed Code
Code to use:

More embeddable images

Bookmark and Share