Garry's Mod

Garry's Mod

Statistiken ansehen:
Dieses Thema wurde geschlossen
How do I give NPCs addon weapons?
A ♥♥♥♥ with a MP7 looks kinda weird, don't you think?
< >
Beiträge 115 von 19
Anomi 2. Dez. 2013 um 20:03 
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 2. Dez. 2013 um 20:20 
Ok, could you give me the workshop link? Thanks.
BEAN 10. Apr. 2014 um 6:02 
Wow, posted this in December, but thanks anyway :)
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 10. Apr. 2014 um 6:16 
Thanks :)
Lazarus 10. Apr. 2014 um 16:43 
No problems mate :)
Nickz 7. Sep. 2014 um 1:10 
Ursprünglich geschrieben von Sol:
I think I have found it http://steamcommunity.com/sharedfiles/filedetails/?id=151564834&searchtext=Weapon

no thats for youself
Ursprünglich geschrieben von Nickz:
Ursprünglich geschrieben von 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
Ursprünglich geschrieben von 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
Zuletzt bearbeitet von Giant African Land Snail; 2. Jan. 2015 um 18:52
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!
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?
im gay... this post started in 2014 nobody cares about it anymore.. ffs
SHORTZ 2. Feb. 2018 um 15:14 
bang bang girls lol
< >
Beiträge 115 von 19
Pro Seite: 1530 50

Geschrieben am: 2. Dez. 2013 um 19:47
Beiträge: 19