Garry's Mod

Garry's Mod

428 ratings
Desired's AI Assault Creator
4
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Realism
File Size
Posted
Updated
14.280 KB
28 Oct, 2020 @ 4:02am
20 Nov, 2020 @ 3:58pm
2 Change Notes ( view )

Subscribe to download
Desired's AI Assault Creator

In 1 collection by desivistia
Desired's AI Addons
7 items
Description
A simple STool that allows you to create assault entities to create assault scenarios. This is basically the opposite of the standoff system.

Assaults allow you to create rally points for one NPC each to participate in an assault by converging on the position of an assault point.

Left-click to spawn a rally/assault point. Right-click to spawn a goal assault entity. Reload to clear all points and goal assault entities.

Control Panel usage:
Point Type: Select either assaultpoint or rallypoint to choose which one to place down.

Goal Name: The name for the goal entity. Give it a unique name (don't use the same name for assaultpoints/rallypoints!).

Goal Actor/Class: The name of the NPCs/classname of the NPCs for the entity to look for. I highly recommend using a base name and an asterisk at the end (which allows you to use more names for NPCs that have the root name. example of a root name: combine* | example of an NPC using the root: combine1, combine2, etc).

Assault Cue: The trigger for the assault to begin. "Entity System Input" means you begin the assault yourself. "Gunfire" might not work from what the developer page says. "Don't wait for a cue" means that it will begin instantly.

Search Type: The type of name the goal entity searches for. "Entity Name" will search for NPCs with the given targetname (like root names such as combine1 derived from combine*). "Classname" will search for NPCs with the given class (such as npc_combine_s).

AP (Assaultpoint) Name: The name for the assaultpoint.

Allow Diversion: If set, if the affected NPCs come across any hostiles along their way to the assaultpoint, they will chase after them until they are dead or out of sight for as long as stated in Timeout. If not set, affected NPCs will shoot hostiles along their way to the assaultpoint but will not chase them.

Diversion Radius: If Allow Diversion is set, affected NPCs will only chase hostiles and divert from the assault to chase within this radius. If 0, this range is infinite.

Force Crouch: If set, when holding the assaultpoint, affected NPCs are forced into crouching. This only affects NPCs that naturally crouch, like Combine Soldiers.

RP (Rallypoint) Name: The name for the rallypoint.

Priority: The priority for the rallypoint in having the goal entity allocate NPCs to them.

Selection Method: How the goal entity selects NPCs for rallypoints. "Choose by priority" will choose rallypoints by their priority values. "Choose randomly" will select random rallypoints.

Begin current assault: Begins the assault for the goal entity with the name stated by Goal Name. Not too sure on this but I believe you need to keep the same rallypoint and assaultpoint names as you gave when you set up a team.

Begin all assaults: Begins all assaults that were made.


Note: You can only allocate ONE NPC per rallypoint. Create multiple rallypoints and consider choosing multiple names for the Goal Actor field for each of them.
For individually naming NPCs, use my Name Assigner addon or some other addon that can do the same function.
Popular Discussions View All (12)
11
5 Nov, 2020 @ 11:58am
How does this tool actually work?
Tetra
6
9 Sep, 2022 @ 9:54am
I. Need. Explanation.
Don Quixote (Silly)
1
15 Apr @ 10:02am
No longer works (I think)
Agent51
71 Comments
Agent51 10 May @ 2:28pm 
goal name is useless and required
hey so "Goal Name" is looking for the NPC name right?
TumbleBee6 19 Dec, 2024 @ 9:39am 
yall by asking to simplify it you're asking to change the base entities themselves lol
lag.post.00 25 May, 2024 @ 6:13am 
i just want to make half life 2 rebels hostile to me bro
Agent51 7 Apr, 2024 @ 4:33pm 
its not gonna work perfectly
Agent51 7 Apr, 2024 @ 4:33pm 
its easy to use when using entity name,
baernay 7 Apr, 2024 @ 3:56pm 
please make a simplified version
Agent51 1 Feb, 2024 @ 8:41pm 
nevermind, finally got it to work.
Agent51 1 Feb, 2024 @ 8:36pm 
It doesn't work anymore,.
wasistlos 5 Jan, 2024 @ 8:16pm 
i want this to work, it is just so complicated. a simplified version would be great.