ai_goal_fightfromcover

From Source Entities
Jump to navigation Jump to search

Code classes:

Ai goal follow.png

ai_goal_fightfromcover is a point entity present in all games since Asw.pngAlien Swarm. It's an unused AI routine that would evidently tell NPCs to fight from behind cover, with a mapper-defined battle area. The code contains a comment dated mid 2008.

Keyvalues[edit | edit source]

Target Entity (goal) <target_destination>
The name of the entity to follow. If blank, defaults to the player.
Directional Marker (DirectionalMarker) <target_destination>
An entity that indicates the direction of battle. Confirm: Entity should be placed opposite of the Actors, across the battle zone.
Generic Hint Type (GenericHintType) <string>
Behavior looks for "generic" hints, and requires a text tag to search for.[Clarify]
Zone Width (width) <float>
Width of the hint search area.
Zone Length (length) <float>
Length of the hint search area.
Zone Height (height) <float>
Height of the hint search area.
Zone Bias (bias) <float>
Offset in the direction of the hint search area.[Clarify]

Inputs[edit | edit source]

SetDirectionalMarker <string>
Sets Directional Marker.