Where are the NPC Spawn menus located?

the spawn menus for props are located in “garrysmod>settings>spawnlist” but where can i find them for npcs?

reason is, that i want to move father grigori into humans and resistance and the metro cop into combine. along with some other changes

thanks for the replies in advance

As far as I know the code for that is coded in the npc itself, which I don’t think you’ll be able to change in this case. Look at some coded NPCs to help if you wanted to for others

where are the npcs located? sorry for all the questions, i just dont know and this community is buzzing with information that’s all

You can’t edit him, because I think he’s added in from the c++ code

that blows. thanks for the replies anyway. much obliged.

Your welcome, but you still might be able to somewhere in the sandbox code, but I doubt it.

just did it. there’s an lua file that i edited. put the guys i wanted into the correct categories. here’s a picture, this is how it should be by default to be honest. apart from the animals. i can’t seem to change their places.

http://img842.imageshack.us/img842/562/npcspawnlist.jpg

I think I had an old script that added more NPCs. Maybe I still have it.

Nope, I wont upload this. Not mine anyway.


Put in lua/autorun/extra_npcs.lua

[lua]// Don’t try to edit this file if you’re trying to add new NPCs.
// Just make a new file and copy the format below.

local Category = “Humans + Resistance”
local NPC = { Name = “ResistanceTurret”,
Class = “npc_turret_floor”,
OnFloor = true,
TotalSpawnFlags = SF_FLOOR_TURRET_CITIZEN,
Skin = 1,
Offset = 8,
Icon = “materials\VGUI\entities\Rebelturret”,
Category = Category }
list.Set( “NPC”, “Rebelturret”, NPC )

local NPC = { Name = “Fisherman”,
Class = “npc_fisherman”,
Category = Category }

local Category = “Animals”

local NPC = { Name = “Ichthyosaur”,
Class = “npc_ichthyosaur”,
Category = Category }
list.Set( “NPC”, NPC.Class, NPC )

Category = “Combine”

local NPC = { Name = “Rollermine”,
Class = “npc_rollermine”,
Offset = 16,
Category = Category }
list.Set( “NPC”, NPC.Class, NPC )

local NPC = { Name = “Turret”,
Class = “npc_turret_floor”,
OnFloor = true,
TotalSpawnFlags = 0,
Offset = 2,
Category = Category }
list.Set( “NPC”, NPC.Class, NPC )

local NPC = { Name = “Combine Soldier”,
Class = “npc_combine_s”,
Model = “models/combine_soldier.mdl”,
Category = Category }
list.Set( “NPC”, NPC.Class, NPC )

local NPC = { Name = “Prison Guard”,
Class = “npc_combine_s”,
Model = “models/combine_soldier_prisonguard.mdl”,
Category = Category }
list.Set( “NPC”, “CombinePrison”, NPC )

local NPC = { Name = “Combine Elite”,
Class = “npc_combine_s”,
Model = “models/combine_super_soldier.mdl”,
Category = Category }
list.Set( “NPC”, “CombineElite”, NPC )

local NPC = { Name = “City Scanner”,
Class = “npc_cscanner”,
Category = Category }
list.Set( “NPC”, NPC.Class, NPC )

local NPC = { Name = “Manhack”,
Class = “npc_manhack”,
Category = Category }
list.Set( “NPC”, NPC.Class, NPC )

local NPC = { Name = “Strider”,
Class = “npc_strider”,
Category = Category }
list.Set( “NPC”, NPC.Class, NPC )

local NPC = { Name = “Heli”,
Class = “npc_helicopter”,
Category = Category }
list.Set( “NPC”, NPC.Class, NPC )

local NPC = { Name = “Hopper”,
Class = “combine_mine”,
Category = Category }
list.Set( “NPC”, NPC.Class, NPC )

local NPC = { Name = “Camera”,
Class = “npc_combine_camera”,
Category = Category }
list.Set( “NPC”, NPC.Class, NPC )

local NPC = { Name = “Drop ship”,
Class = “npc_combinedropship”,
Category = Category }
list.Set( “NPC”, NPC.Class, NPC )

local NPC = { Name = “Gunship”,
Class = “npc_combinegunship”,
Category = Category }
list.Set( “NPC”, NPC.Class, NPC )

local NPC = { Name = “Stalker”,
Class = “npc_stalker”,
Category = Category }
list.Set( “NPC”, NPC.Class, NPC )

local NPC = { Name = “Claw scanner”,
Class = “npc_clawscanner”,
Category = Category }
list.Set( “NPC”, NPC.Class, NPC )

local NPC = { Name = “Sniper”,
Class = “npc_sniper”,
Category = Category }
list.Set( “NPC”, NPC.Class, NPC )[/lua]

Edit:

For moving around NPCs through categories I think you need to redefine them in this script.

if i move the birds into a new category named “animals” they do go into that category yes. but there is also another category added named “animals” which is empty and it looks really untidy. i’m fine with it the way it is now but thanks for all the help guys.