Garry's Mod

Garry's Mod

Dynamic NPC Squads
689 Comments
Gamebit 19 Jun @ 4:46pm 
Now I can make full on wars!
NullPug 15 Jun @ 7:57pm 
Would it be possible to have the console commands accessible through the spawn menu?
ProfFalkenJR 15 Jun @ 7:52pm 
Does this work with VJ units?
Beowulf 7 Jun @ 7:01pm 
@Freedom The Weirdo

Probably because VJ recently updated.
Ready 4 Jun @ 3:40pm 
does this work with Enhanced Sandbox NPCs? I think it has it's own squad system or not, I think it just makes NPCs be able to be in squads than improved behaviour with them
StrawWagen  [author] 28 May @ 9:51pm 
Are you on a map with AI nodes?
s99547319 28 May @ 9:49pm 
seems broken for some reason
wont work for rebels or combine at all weird
StrawWagen  [author] 27 May @ 1:57pm 
Not really sure it ever worked with vj base
Freedom The Weirdo 27 May @ 10:54am 
I love using this mod with vj military snpcs but not sure if its just me but it seemed like the vj snpcs have stopped forming squads even with this mod installed.

I find that weird because it worked perfectly before
Wesch 24 May @ 1:56pm 
Tested it out ingame works good :steamthumbsup: thanks for the quick fix!
StrawWagen  [author] 24 May @ 1:46pm 
Should be fixed now, thanks for making the clip
StrawWagen  [author] 24 May @ 1:32pm 
Nvm, yeah it's dynsquads
Wesch 24 May @ 1:27pm 
Yeah i disabled all the mods and it seems to only do this with this mod combined with iNPC, after i disabled this mod i would no longer see this animation bug.
StrawWagen  [author] 24 May @ 1:23pm 
That really doesn't look like anything dynsquads does, i can check it out tho
Wesch 24 May @ 11:20am 
here is the clip
StrawWagen  [author] 24 May @ 11:05am 
Send a clip
Wesch 24 May @ 8:04am 
Conflicts with iNPC
Breaks Metro Cop Reload Animation with pistol
TeD 22 May @ 5:57am 
HIM
Icery 21 May @ 10:55am 
I have an idea for new feature.

While in default AI as we know, there is a bug with most resistance npcs, when they try to use crouch cover low hint, the animation does not play right. Leaving them exposed for damage.
And over all the default AI sends them for slaughter anyway.

So i thought, if squads used ai_goal_standoff and their leader as the battle line target. Oh my.. That would be absolutely glorious.
Even Combine or any custom npc would greatly benefit from it.

So something like "npc_dynsquads_usestandoff" ? :D

So yeah, would try to create something myself but, yeah don't know Lua. :c

Anyway thank you so much for your effort.
StrawWagen  [author] 17 May @ 4:04pm 
Yes
nicknewman5151 17 May @ 1:00pm 
does this work on vortigaunts?
StrawWagen  [author] 16 May @ 11:14am 
Glad it's gettin used :steamhappy:
Icery 16 May @ 3:37am 
Thank you so much for npc_dynsquads_ignoremapcreated
Now this mod is beyond perfect.
Normie Thots 26 Apr @ 5:23pm 
Gotcha, I appreciate the transparency!
StrawWagen  [author] 26 Apr @ 4:35pm 
The error message is an engine error, my fixer is just a bit slow
Normie Thots 26 Apr @ 3:56pm 
Ahh so it only happens when it detects it? That’s a relief, maybe make the error messages part of the developer mode output since the related errors fix themselves and wouldn’t need further intervention in most cases?
StrawWagen  [author] 26 Apr @ 3:24pm 
It kicks out offending npcs, the error would last forever before I made it kick them out
Normie Thots 26 Apr @ 3:04pm 
When using a zombie mod that allows infections it often leads to this error;

"ERROR: Squad 'dyn_6466' has enemies in it!
monster_zombie doesn't like Metro Police (Police)"

Is it at all possible to have it just kick out the offending npc or sanity check something hasn't changed on it's own? There's no good way to disband the squad aside from all of it's members dying.
StrawWagen  [author] 24 Apr @ 4:32pm 
Forgot to add the idle wandering feature to the description, oops!
дабстеп мытищи 13 Apr @ 7:26am 
Nevermind, I think it works exactly that way, but in rare occurences it may fail
дабстеп мытищи 13 Apr @ 6:45am 
So maybe there is a lack of inter-squad communication.
I think if one metrocop squad encounters a group of rebels and starts shooting, they should call in other squads for reinforcement

Is it the case?
дабстеп мытищи 13 Apr @ 6:40am 
awesome addon!
I see something funny though - one squad of metrocops decided to just wander around the other side of the map, while all their teammates are fighting in deadly warfare (i've set the capture point)
дабстеп мытищи 13 Apr @ 6:38am 
okay it was the map problem (ai nodes)
дабстеп мытищи 13 Apr @ 6:35am 
NPCs just stand still. If I place an enemy just next to them they will shoot and move a little bit but they don't move towards the dynasquad goal thing
StrawWagen  [author] 10 Apr @ 8:08pm 
Entities>Other
angel 10 Apr @ 7:51pm 
how do i set a dynsquad goal?
StrawWagen  [author] 10 Apr @ 1:39pm 
NEW CONVAR!
npc_dynsquads_ignoremapcreated, default 0
Makes dynsquads ignore map-created npcs!
StrawWagen  [author] 26 Mar @ 5:55pm 
combinesolder.png jumpscare
batscovethe2nd 26 Mar @ 5:35pm 
Very good mod, makes combine super scary
StrawWagen  [author] 22 Mar @ 10:26pm 
bwahahaha
Totally Not Ed 22 Mar @ 10:16pm 
Somehow overrides VJ Base. Guarding NPC's keep leaving their post. There's a VJ Stalker NPC who sits in a chair and he walks away bringing the chair with him.
StrawWagen  [author] 21 Mar @ 4:55pm 
they're bored
Rylegaming12 21 Mar @ 4:49pm 
This mod broke the start of the hl2 campaign and metro cops that are supposed to stay still keep jumping and walking around
TheYellowAsian 9 Mar @ 2:11pm 
Really good addon.Really helps build the sense of npcs exploring.
bigulator 21 Feb @ 6:35pm 
good
StrawWagen  [author] 21 Feb @ 6:32pm 
Smol update!
Made assaulting less deathball-ey

squads will now only call for backup globally if they're losing members
otherwise they'll calmly call for backup from a nearby squad
Leads to npcs hanging behind the front lines waiting for the right time to reinforce their teammates

+Add npc.dynsquads_NoYap per-npc-check
Arcticis 19 Feb @ 5:37am 
Scratch that, not this mod's fault
Snekenjoyer6 18 Feb @ 11:50pm 
i wonder, is it possible to add a config to let players decide how big a squad can be at any given time?
StrawWagen  [author] 18 Feb @ 4:14pm 
Does it stop when you disable this addon?
Arcticis 18 Feb @ 7:38am 
causes rebels to snap their hands and feet in half while using an emplacement gun