Garry's Mod

Garry's Mod

View Stats:
This topic has been locked
BEAN Dec 2, 2013 @ 7:47pm
How do I give NPCs addon weapons?
A Nazi with a MP7 looks kinda weird, don't you think?
< >
Showing 1-15 of 19 comments
Anomi Dec 2, 2013 @ 8:03pm 
Either find another mod that lets you do it, or install and addon that has it built in. There's an addon out there that lets you give NPC's any weapon in your game (It's on workshop) but beware, giving them addon weapons can be buggy and might even cause game crashing
BEAN Dec 2, 2013 @ 8:20pm 
Ok, could you give me the workshop link? Thanks.
BEAN Apr 10, 2014 @ 6:02am 
Wow, posted this in December, but thanks anyway :)
Lazarus Apr 10, 2014 @ 6:12am 
After testing that, I found out it doesn't give NPCs weapons, but I did find one that does. I'll post it ASAP.
BEAN Apr 10, 2014 @ 6:16am 
Thanks :)
Lazarus Apr 10, 2014 @ 4:43pm 
No problems mate :)
Nickz Sep 7, 2014 @ 1:10am 
Originally posted by Sol:
I think I have found it http://steamcommunity.com/sharedfiles/filedetails/?id=151564834&searchtext=Weapon

no thats for youself
Lazarus Sep 7, 2014 @ 2:35am 
Originally posted by Nickz:
Originally posted by Sol:
I think I have found it http://steamcommunity.com/sharedfiles/filedetails/?id=151564834&searchtext=Weapon

no thats for youself
Yes I know, I posted the correct one below it
Originally posted by Observer Ward:
How do I give NPCs addon weapons?
You can do this without downloading any addons.
Make sure sv_cheats is set to "1" type sv_cheats 1 in console
Go to weapons and find the custom weapon you want your npc to use. Right click it's icon and click Copy To Clipboard.
In the console, type npc_create_equipment <press CTRL+V to paste> and hit enter. When you pressed CTRL+V it should have pasted the weapon's name.
Now, type in npc_create npc_<npc name>
Here's a list of all of the npcs in garry's mod by default.
combine_mine
npc_alyx
npc_antlion
npc_antlion_template_maker
npc_antlionguard
npc_barnacle
npc_barney
npc_breen
npc_citizen
npc_combine_camera
npc_combine_s
npc_combinedropship
npc_combinegunship
npc_crabsynth
npc_cranedriver
npc_crow
npc_cscanner
npc_dog
npc_eli
npc_fastzombie
npc_fisherman (not available in Hammer by default)
npc_gman
npc_headcrab
npc_headcrab_black
npc_headcrab_fast
npc_helicopter
npc_ichthyosaur
npc_kleiner
npc_manhack
npc_metropolice
npc_monk
npc_mortarsynth
npc_mossman
npc_pigeon
npc_poisonzombie
npc_rollermine
npc_seagull
npc_sniper
npc_stalker
npc_strider
npc_turret_ceiling
npc_turret_floor
npc_turret_ground
npc_vortigaunt
npc_zombie
npc_zombie_torso
So if I wanted to spawn a civil protection with the customizable weaponry USP 45, I'd type
npc_create_equipment cstm_pistol_usp45
then I'd type
npc_create npc_metropolice
Keep in mind not all custom weapons are compatible with NPC's, so they might just make the shooting animation and not actually fire anything, and you may get script errors as well.
When spawning any entity through the console you cannot undo it like you can if you spawn through the spawnmenu. To delete it, simply remove it with the remover tool or look at it and type
ent_remove
Last edited by Giant African Land Snail; Jan 2, 2015 @ 6:52pm
Meowster Chief Apr 12, 2016 @ 9:10am 
How would I give an NPC a weapon out of the NPC spawn-weapons list? I know these give all the SWEPS designed for player use, but I'm looking for a way to get the code name of an NPC-designed weapon. I have an addon that spawns npcs at random with a given weapon - but the SWEP version of the gun does not work and I need to get the name of the actual NPC weapon from the NPC weapons menu. Thanks!
Cindy Campbell Feb 10, 2017 @ 6:04pm 
i found something odd that i dont know you can replicate and if you can pls tell me how, okay so when i spawn father gregory with npc's in my squad and kill him, an npc will pick up the weapon, but when i spawn weaposn on the ground using the clipboard, they dont interact with it! can you help?
dental implants Feb 10, 2017 @ 8:15pm 
im gay... this post started in 2014 nobody cares about it anymore.. ffs
SHORTZ Feb 2, 2018 @ 3:14pm 
bang bang girls lol
< >
Showing 1-15 of 19 comments
Per page: 1530 50

Date Posted: Dec 2, 2013 @ 7:47pm
Posts: 19