Search
Username:
Password:
Register or Reset Password
Remove the ads!
  
Gmod 10 Npc Tutorial
Difficulty: Beginner
Category: Gmod > Other/MiscAuthor(s): bountyhunter219

HAI





FIRST, GET THIS

http://sourceforge.net/project/downloading.php?group_id=95717&use_mirror=internap&filename=npp.5.0.3.src.zip&86319417

and get this:
http://nemesis.thewavelength.net/index.php?p=26

ok, first open up notepad++ (the first download thing)

you can use regular notepad, but i suggest notepad ++

alright

click file > new


you will see a blank document

type this:

local Category = "INSERT NAME HERE"

where it says insert name here, put your category, it doesn't really matter, as long as you have something there, if you plan on releasing it, i would name it something having to do with your npc's, not something like: "My new npcs! :D"

ok, now, go down 2 lines, and type this:

local NPC = { Name = "INSERT NAME HERE",


make sure you include the , or else it will EPIC PHAIL

now, this part you will need to refer to picture 1:

ok, after you typed that, go to a next line, and press tab 4 times


now put this:

Class = "INSERT NPC NAME HERE",


ok, this defines what kind of npc it is, the npcs you might like are:

npc_citizen
npc_zombie
npc_zombie_fast
npc_metropolice

any npc name that doesnt exist such as: "JERRY! HURRRR!"
will phail

now, once again, skip a line, press tab 4 times, and put this:
Model = "MODEL NAME HERE",


now, go to your steam directory

if you installed it on your c drive it should be:

c:/Program Files/steam/steamapps/

and look for either source models, or garrysmod content


open it up, and look for the models folder

open THAT up.

make sure you get a ragdoll that is used in half-life 2, such as
gman
kleiner
metro cop
alyx
zombie

etc.

if you use garrysmod, a majority of the ragdolls will be in models/player

YOU MUST PUT .MDL AT THE END OR YOU WILL

PHAIL


now,

skip a line, 4 tabs, type this

Health = "150",
by default it should be 150 for a citizen

now, if you used npc_citizen, which i highly suggest you do, then type this:

KeyValues = { citizentype = 4 },


this defines which citizen it will be, by my count, there are 32 citizens, and 1 that works, which is this one


DO NOT CHANGE THE NUMBER 4

sorry, its a girl

now, almost done, skip a line, 4 tabs, type this

Category = Category }

i dont really know what this does, but apparently, its important...

good, now, for the piece de something something,

skip 3 lines, type this:

list.Set( "NPC", "npc_NPCNAMEHERE", NPC )

DO NOT PRESS TAB 4 TIMES FOR THAT ONE



now, name this file whatever you want, i would put your name in it, so its unique, so it doesnt overwrite someone elses npcs

now, before you save it, save it ass all files, and put .lua at the end

save it in lua/autorun in your garrysmod folder

whats that? dont have an autorun folder?

MAKE ONE, IDIOT

le fin
Added: 2 months agoTags: gmod, garrys mod, garrys, mod, 10, lua, npc, script
Feedback (12)
Page of 2   1 2 Next Page
MmSTM .
Woot!Y2M
Posted 2 months ago
Posted by Foohman


Posted by bountyhunter219

*TEXT*

'make you a fucking waffle?'


I lol'd.

Guys, press Q. Go to the NPC section, you can select the gun it has there, it's not hard. There's also a qu-bijillion different things to download that changes an NPC's behaviour.

www.garrysmod.org/downloads

It'll be there, fo' sure.


I lol'd too, you're right.
Want tuts, go to Facepunch threads at their forum.
For other things, like Mods, Addons, Luas, Models, Materials, Maps (there are awesome maps here at fpsbanana, but it lacks the rest), and other usefull stuff for Npcs and other things go to

www.garrysmod.org/download and Search it.
If you don't have a clue for what you looking for, use the Tags...

Like want new weapons? search for Sweps and etc. etc. etc.

----

Btw, looking further to the post, the really mean of this was making "Friendly (allies) Npcs" such as combine.

PS: Sorry for bad english.
.
Bday Nov. 10th-Please donate! :3Y2M
Posted 2 months ago
Clarity: should have said what this does, and what each of the tools are and do
Detail: not very detailed-nothing is really explained, a few examples
Insightfulness: not insightful....
Originality: no ones really made this but whats the use for this? again you didn't say...
Readability: hard to read parts, too much spam and off topic content (saying "phail" calling us "idiots")
Simplicity: simple i guess...
Usefulness: not very useful, as far as I can see from reading this, it just remakes an npc
Notes: don't be rude to your readers, or assers, its no way to get people to like you or favor your effort here
.eXe .
Carrots make me live !Y2M
Posted 2 months ago
La fin
Foohman .
Lol. No. :3Y2M
Posted 2 months ago
Posted by bountyhunter219

*TEXT*

'make you a fucking waffle?'


I lol'd.

Guys, press Q. Go to the NPC section, you can select the gun it has there, it's not hard. There's also a qu-bijillion different things to download that changes an NPC's behaviour.

www.garrysmod.org/downloads

It'll be there, fo' sure.
- Lol. No. :3
bountyhunter219 .
BananiteY2M
Posted 2 months ago
Posted by HUMO

Posted by bountyhunter219

WHAT TO DO WITH NPCS?! MAYBE SPAWN THEM?! what other fucking reason do you need for an npc?

uhm i dont know,alter their behavior,change the weapon they use,change the skin,change the sounds,change the team.
shall i stop or keep on going you ass.
geez your new here and acting like a complete retard,now gtfo and post on facepunchstudios with your fellow nubs


maybe if you read the tutorial, you would know that depending on npc_citizen, or npc_metropolice, you get combine, or citizens, and the gun they get? what the fuck?! you choose that when you spawn them, and there is no way to change the sounds, changing the skin is up to you to use a custom model, and they're behavior? dude... what do you want it to do? make you a fucking waffle?
- Bananite
.
Y2M
Posted 2 months ago
There is no formatting at all, this is very hard to read. I can recommend This tutorial. If you format it, let me know and i will revise.
.
hm i see,now tell me what im looking at.Y2M
Posted 2 months ago
Posted by bountyhunter219

WHAT TO DO WITH NPCS?! MAYBE SPAWN THEM?! what other fucking reason do you need for an npc?

uhm i dont know,alter their behavior,change the weapon they use,change the skin,change the sounds,change the team.
shall i stop or keep on going you ass.
geez your new here and acting like a complete retard,now gtfo and post on facepunchstudios with your fellow nubs
.
.Abstraction Y2M
Posted 2 months ago
Posted by bountyhunter219

WHAT TO DO WITH NPCS?! MAYBE SPAWN THEM?! what other fucking reason do you need for an npc?

That was rude, you know?
bountyhunter219 .
BananiteY2M
Posted 2 months ago
WHAT TO DO WITH NPCS?! MAYBE SPAWN THEM?! what other fucking reason do you need for an npc?
- Bananite
Fibbs .
Pathological Demand Avoidance.Y2M
Posted 2 months ago
From what I can tell, and I suck with lua, it just adds an NPC to the list. An NPC that's already on the list.
What's the point in this?
You need to say what you're even doing, no one will have any idea what this is for.
You should be serious when making tutorials too, and make it easy to understand. Just saying "this" and "that" may confuse some people, if anyone actually does try this since they have no idea what it even does.
When you're making tutorials, you need to make it describing and explaining everything as if the person you're talking to knows nothing about any of this.

"NPC Tutorial" tells us nothing. Don't get pissy at us. NPC tutorial to do what with what NPCs?
- Pathological Demand Avoidance.
Page of 2   1 2 Next Page
Add Feedback
Feedback Instructions:
Say whatever you want

You cannot post yet!
Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop.

To post in this submission register or login.
Assessment
The community's verdict.
User Rating [+]
5.6/10
bScore
5.6/10
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This Tutorial in a nutshell...
Poor Spelling & Confusing
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.



Added by...
Ranked 3509th ( 4) with 442 points.

[+] Donate
Vote for Submitter
Like this tut? Vote bountyhunter219 . for one or more monthly awards.
You must login or register to access this!
Related Tutorials