Assault assaultpoint: Difference between revisions
Jump to navigation
Jump to search
Note:Assaultpoints only affect the journey to them, not from them.
m (→Outputs: {{activator}}) |
m (ep1 add) |
||
Line 20: | Line 20: | ||
* {{kv angles}} | * {{kv angles}} | ||
* '''assaultgroup''' | * '''assaultgroup''' | ||
: < | : <string> Assault Hint Group - Constrain the movement of the NPC(s) participating in the assault to this [[info_hint|hint]] group once assault has begun. | ||
* '''nextassaultpoint''' | * '''nextassaultpoint''' | ||
: < | : <target_destination> Next assault point (optional) | ||
* '''assaulttimeout''' | * '''assaulttimeout''' | ||
: < | : <float> Assault time out - This point is cleared when no enemies are seen for this long (specified in seconds). The NPC(s) at this assaultpoint will scout for enemies this long before moving on. | ||
* '''clearoncontact''' | * '''clearoncontact''' | ||
: | : {{boolean}} Clear on contact with enemies - If the assault meets enemies on its way to this point, it will consider the assault point cleared and target the next assault point in the chain. | ||
* '''allowdiversion''' | * '''allowdiversion''' | ||
: | : {{boolean}} Allow diversion - If the assault comes into contact with hostiles on the way to this assault point, divert to kill them and resume once the area appears clear. | ||
:- If it set to ''Yes'', NPCs will chase any hostiles until they are dead or out of sight for the period set in the ''assaulttimeout'' (''Assault time out'') keyvalue. | :- If it set to ''Yes'', NPCs will chase any hostiles until they are dead or out of sight for the period set in the ''assaulttimeout'' (''Assault time out'') keyvalue. | ||
:- If this is set to ''No'', assaulting NPCs will run non-stop to the next point, attacking enemies they can see but not chasing them. | :- If this is set to ''No'', assaulting NPCs will run non-stop to the next point, attacking enemies they can see but not chasing them. | ||
* '''nevertimeout''' | * '''nevertimeout''' | ||
: | : {{boolean}} Never Timeout - If set, the assault never ends for NPCs assaulting this point. Useful for forcing NPCs back to a point. | ||
* '''{{ep1 add|allowdiversionradius}} | |||
: <float> If allowdiversion is set, NPC will only divert from assault to attack an enemy that is within this distance of the assault point. 0 = No limit. | |||
* '''{{ep1 add|strict}}''' | |||
: {{boolean}} If set, NPCs may not move to attack. | |||
* '''{{ep1 add|forcecrouch}}''' | |||
: {{boolean}} NPCs using this assault point are forced into crouching while holding it. | |||
* '''{{ep1 add|urgent}}''' | |||
: {{boolean}} If set, NPCs will consider movement to this rally point as Urgent Navigation. | |||
==Flags== | ==Flags== | ||
Line 46: | Line 53: | ||
* '''SetAllowDiversion''' | * '''SetAllowDiversion''' | ||
: Sets the ''allowdiversion'' (''Allow Diversion'') keyvalue. Accepts ''1''/''0'' or ''Yes''/''No'' as parameters. | : Sets the ''allowdiversion'' (''Allow Diversion'') keyvalue. Accepts ''1''/''0'' or ''Yes''/''No'' as parameters. | ||
* '''{{ep1 add|SetForceClear {{boolean}}}}''' | |||
: Set the Force Clear flag. NPCs who are currently running to the assault point will Clear it immediately. NPCs who acquire it in the future will Clear it automatically. | |||
==Outputs== | ==Outputs== |
Revision as of 11:32, 6 August 2006
Entity Description
The body of an assault chain. Specifies where the assault should go once it has begun. There can be any number of assault_assaultpoint entities in each chain.

Limitations and bugs
- When moving to an assault point partway through a chain, the NPC will go to the standing posture for a moment before continuing. This looks unnatural.
- NPCs will always turn to face in the direction the entity is set to when arriving at an assault point. This might again look unnatural in some cases.
- NPCs must stand directly on an assaultpoint to clear it without timeout if the clearoncontact keyvalue is not set and triggered. This can result in illogical backtracking and means that groups of NPCs moving together will each need their own assaultpoint to maintain the illusion.
Warning:Specifying an assault_rallypoint in the nextassaultpoint keyvalue will crash the game.
Keyvalues
- <string> Assault Hint Group - Constrain the movement of the NPC(s) participating in the assault to this hint group once assault has begun.
- nextassaultpoint
- <target_destination> Next assault point (optional)
- assaulttimeout
- <float> Assault time out - This point is cleared when no enemies are seen for this long (specified in seconds). The NPC(s) at this assaultpoint will scout for enemies this long before moving on.
- clearoncontact
- <boolean> Clear on contact with enemies - If the assault meets enemies on its way to this point, it will consider the assault point cleared and target the next assault point in the chain.
- allowdiversion
- <boolean> Allow diversion - If the assault comes into contact with hostiles on the way to this assault point, divert to kill them and resume once the area appears clear.
- - If it set to Yes, NPCs will chase any hostiles until they are dead or out of sight for the period set in the assaulttimeout (Assault time out) keyvalue.
- - If this is set to No, assaulting NPCs will run non-stop to the next point, attacking enemies they can see but not chasing them.
- nevertimeout
- <boolean> Never Timeout - If set, the assault never ends for NPCs assaulting this point. Useful for forcing NPCs back to a point.
- <float> If allowdiversion is set, NPC will only divert from assault to attack an enemy that is within this distance of the assault point. 0 = No limit.
- <boolean> If set, NPCs may not move to attack.
- <boolean> NPCs using this assault point are forced into crouching while holding it.
- <boolean> If set, NPCs will consider movement to this rally point as Urgent Navigation.
Flags
- 1 : Clear this point upon arrival, UNCONDITIONALLY
- Move on to the next point once reaching this one, regardless of any other influences.
Inputs
- Template:I targetname
- Template:I parentname
- SetClearOnContact
- Sets the clearoncontact (Clear on Contact with enemies) keyvalue. Accepts 1/0 or Yes/No as parameters.
- SetAllowDiversion
- Sets the allowdiversion (Allow Diversion) keyvalue. Accepts 1/0 or Yes/No as parameters.
- Set the Force Clear flag. NPCs who are currently running to the assault point will Clear it immediately. NPCs who acquire it in the future will Clear it automatically.
Outputs
- Template:O targetname
- OnArrival
- Fires when a NPC arrives. (!activator is the NPC)
- OnAssaultClear
- Fires when the point is cleared.