assault_rallypoint

From Source Entities
Jump to navigation Jump to search

Code classes:

Assault rallypoint.png

assault_rallypoint is a point entity present in all games except the L4d.pngL4d2-small.pngLeft 4 Dead games. It specifies a point used to rally NPCs for assault behavior. Used with either an ai_goal_assault or the Assault input available on some NPCs. All assaults begin at an assault_rallypoint. NPCs move to these points when cued for an assault, optionally waiting here, before commencing the assault by heading to an assault_assaultpoint.

A rallypoint can only serve one NPC per assault. If multiple NPCs are required to assault at the same time, each needs their own rallypoint. (To do: Is there a solution for this?) Use of wildcards can make the assignment of individual NPCs to individual rallypoints easier.

Note: NPCs will always turn to face in the direction the entity is set to when arriving at a rally point.

Keyvalues[edit | edit source]

Priority (priority) <integer>
How appealing the rallypoint will be. When an NPC receives the Assault input, it will select a suitable rallypoint from those available to it, preferring the one with the highest Priority value. If the Priority is the same between any rallypoints, the closest one will be chosen.
Assault Point (assaultpoint) <target_destination>
The first assault_assaultpoint in the chain to move to as the assault begins.
Assault Delay (assaultdelay) <float>
The amount of time to wait here once the assault cue has been given, before moving to the first assault_assaultpoint.
Rally Sequence (rallysequence) <string>
Set a specific animation sequence for NPCs waiting to begin the assault, overriding the wait activity of the NPC.
Force Crouch (forcecrouch) <boolean>
NPCs using this assault point are forced into crouching (if they know how to) while holding it.
Urgent (urgent) <boolean>
If set, NPCs will consider movement to this rally point urgent navigation (ignoring prop_physics blockers, eventually teleporting).
Lock Point (Not in FGD) (lockpoint) <boolean> (available in all games since Asw.png)
Should this point be considered unusable by other NPCs once one of them has "claimed" it?[Confirm]

Outputs[edit | edit source]

OnArrival
Fires when the NPC arrives.