Garry's Mod

Garry's Mod

420 ratings
AI Commanding
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
1.405 MB
Jul 10, 2019 @ 11:36pm
Sep 5, 2021 @ 3:04pm
17 Change Notes ( view )

Subscribe to download
AI Commanding

In 1 collection by IvanVladimir0435
Ivan04's Addons
45 items
Description
Wanna have a more tactical gameplay?, tired of having trouble organizing a SNPC assault? well then this mod is for you!

This addon adds a working commanding SWEP for several base's SNPCs

You can command squads of SNPCs and assign actions to them in a few seconds with this addon

There are commanding sound effects for all the actions!

When giving an order, most of the time your character will speak a random sentence related to it (can be disabled/enabled with a convar)

They have animated icons over their heads according to what they are doing

Controls:

-Left click (main attack): This selects SNPCs that are friendly to players and have their relationships to them as allies, so you can command them (has a blue sphere as the selection radius).

-Right click (secondary attack): If there's no near enemy in a radius of 200 hammer units, the units under your command will move to your crosshair (has a green sphere at the target position), else, your selected units will attack enemy (S)NPCs near your crosshair where you pointed (has a black sphere around the target).

-Left click + use key: This triggers the "charge" order, you can use this for surprise lethal attacks when flanking (has a purple sphere around the target).

-Reload: This clears your "selected squad", that way you can select another squad and give it different orders

-Reload + use key: If there are units under your command and ai_ignoreplayers is set to 0 then your squad will start following you, if they already were following you, they will instead stop following you

ConVars:

"snpc_commanding_allowtext" 1/0, this allows your character to say random sentences when you give orders

There's a "squad" counter, the icons can be adjusted with the convars "snpc_commanding_iconw" and "snpc_commanding_iconh"

You can find it in "VJ Base" category

This currently works on these type of SNPCs/NextBots:
-VJ Base SNPCs
-CPTBase SNPCs
-SLVBase SNPCs
-IV04Base NextBots
-DrGBase NextBots
- Other kind of SNPCs/NPCs

Credits:
-IV04 (me): Coding this addon
-DrVrej: Creating VJ Base
-Cpt. Hazama: Getting Battalion Wars II sprites and sounds, also creating CPTBase and fixing SLVBase
144 Comments
muqhriz712 Jan 31 @ 7:58am 
Pls update this. The E+R to make Friendly VJ NPCs to follow doesn't work anymore it's broken 🙏
TumbleBee6 Mar 22, 2024 @ 7:56pm 
in half-life 2 you can do exactly that, gmod just disables being able to tell followers where to go
Callsign_Ewok Feb 6, 2024 @ 6:13pm 
I was playing entropy zero 2 and thought, what if we just implemented it's following and hold positon commands in the default HL2 followers system? Just hit a button and your followers will either hold position by holding or double tapping the key or go to wherever the cross hair is pointed via a "move here" press or "fall in on me/ follow me" via a press once they've held a position or starting moving.

Entropy zero 2 does it very intuitively via just one key for all 3 squad commands and has hand animations and a simple keybind similar to that of vmanip in gmod for certain mods like contextual animations or quick nade etc.

Would love to see someone come up with a real time ai command system like that.
yellowdotchuck Jan 22, 2024 @ 10:09am 
Oh. I like the mod, and I hope there would be one for AI commanders to be added so we can have AI also be able to use this tool. It's a great idea.
IvanVladimir0435  [author] Jan 22, 2024 @ 9:32am 
using this? no
yellowdotchuck Jan 22, 2024 @ 6:08am 
Will AI Command each other?
ArostoN Jan 7, 2024 @ 3:29am 
btw the tool is there now
IvanVladimir0435  [author] Jan 6, 2024 @ 11:19am 
Sounds like you don't have a nodegraph
Düd Jan 6, 2024 @ 4:53am 
Sometimes the npcs wont go further than just a few meters
ArostoN Dec 28, 2023 @ 6:43am 
it isnt there