Difference between revisions of "Aggressive"
(More details.) |
(Even more details.) |
||
Line 24: | Line 24: | ||
!...under attack | !...under attack | ||
|- | |- | ||
− | |rowspan="4"|<code>0</code> | + | |rowspan="4"|<code>0</code> Attack target type<br/><code>1</code> Attack waypoint<br/><code>46</code> Attack enemy structure<br/><code>59</code> Attack structure at waypoint |
|yes | |yes | ||
|yes | |yes | ||
Line 42: | Line 42: | ||
|Responds to attack and continues the script action. | |Responds to attack and continues the script action. | ||
|- | |- | ||
− | |rowspan="4"|<code>3</code>Move to waypoint<br/><code>47</code> Move to enemy structure<br/><code>53</code> Gather at enemy base | + | |rowspan="4"|<code>3</code> Move to waypoint<br/><code>47</code> Move to enemy structure<br/><code>53</code> Gather at enemy base |
|yes | |yes | ||
|yes | |yes | ||
− | | | + | |Ignores the enemy; continues its script action. |
|Does not respond to attack; continues the script action. | |Does not respond to attack; continues the script action. | ||
|- | |- | ||
|yes | |yes | ||
|no | |no | ||
− | | | + | |Fires at the enemy while moving to given waypoint.<p>Once all team members have engaged the enemy, the team will abandon the current script action, skip any subsequent movement actions, and execute other subsequent, applicable script actions (like flash, talk bubble, etc.) while attacking.</p>Once the attack is over, the team executes the next script action. |
− | |Responds to attack. | + | |Responds to attack.<p>Once all team members have engaged the enemy, the team will abandon the current script action, skip any subsequent movement actions, and execute other subsequent, applicable script actions (like flash, talk bubble, etc.) while attacking.</p>Once the attack is over, the team executes the next script action. |
|- | |- | ||
|no | |no | ||
Line 60: | Line 60: | ||
|no | |no | ||
|no | |no | ||
− | | | + | |Fires at the enemy while moving to given waypoint.{{fnl|1}} |
− | | | + | |Fires at the enemy while moving to its location. If the enemy moves away, the team follows and attacks it persisently until it's destroyed. If the team reaches the enemy, the team abandons its current script action and executes the next script action. If the enemy is destroyed before the team reaches it, the team continues its current script action. |
|- | |- | ||
|rowspan="4"|<code>16</code> Patrol to waypoint | |rowspan="4"|<code>16</code> Patrol to waypoint | ||
|yes | |yes | ||
|yes | |yes | ||
− | |Attacks the enemy, | + | |Attacks the enemy. Once the enemy is destroyed or moves out of range, the team resumes the script action. |
|Does not respond to attack; continues the script action. | |Does not respond to attack; continues the script action. | ||
|- | |- | ||
Line 72: | Line 72: | ||
|no | |no | ||
|Abandons the current script action and attacks the enemy. Once attack is over, executes the next script action. | |Abandons the current script action and attacks the enemy. Once attack is over, executes the next script action. | ||
− | |Responds to attack. If the engagement is only response or if the enemy moves out of range, continues the current script action. If the engagement turns into an attack, it abandons the current script action. Once the attack is over, executes the next script action. | + | |Responds to attack. If the engagement is only a response or if the enemy moves out of range, continues the current script action. If the engagement turns into an attack, it abandons the current script action. Once the attack is over, executes the next script action. |
|- | |- | ||
|no | |no | ||
|yes | |yes | ||
− | |Attacks the enemy, | + | |Attacks the enemy. Once the enemy is destroyed or moves out of range, the team resumes the script action. |
|Does not respond to attack; continues the script action. | |Does not respond to attack; continues the script action. | ||
|- | |- | ||
|no | |no | ||
|no | |no | ||
− | |Attacks the enemy | + | |Attacks the enemy. Once the enemy is destroyed or moves out of range, the team resumes the script action. |
− | | | + | |Responds to attack. As long as the enemy attack persists, the team pursues the enemy. If the enemy disengages and moves out of range, the team ignores the enemy and continues the script action. |
|} | |} | ||
Revision as of 22:35, 23 May 2024
Flag: | Aggressive |
File(s): | ai(md).ini, maps |
Values: | Boolean values: yes or no, true or false, 1 or 0 |
Applicable to: | TeamTypes |
Aggressive entry in TeamTypes pertains to initiating an attack when a threat posing enemy comes in range. Suicide entry in TeamTypes pertains to response to an attack. These can be set to yes/no. Depending on the current script action being executed and the combination of these two entries, the behavior differs. For some script actions, these two flags don't have any relevance. Variation are seen in the script actions where movement is involved. Typically, attack script actions are not affected by Aggressive entry and the team does not initiate attack while on the move to its target when the threat-posing enemy comes in range. In move script actions, Aggressive=yes favors attacking when the threat-posing enemy comes in range which results in the team losing its current script action, and when the team resumes it executes the next script action in its script. Suicide=yes tries to suppress the retaliation when attacked in favor of completing the current script action.
Script action | Aggressive? | Suicide? | Team's response when... | |
---|---|---|---|---|
...enemy in range | ...under attack | |||
0 Attack target type1 Attack waypoint46 Attack enemy structure59 Attack structure at waypoint
|
yes | yes | Does not initiate attack; continues its script action. | Does not respond to attack; continues the script action. |
yes | no | Responds to attack and continues the script action. | ||
no | yes | Does not respond to attack; continues the script action. | ||
no | no | Responds to attack and continues the script action. | ||
3 Move to waypoint47 Move to enemy structure53 Gather at enemy base
|
yes | yes | Ignores the enemy; continues its script action. | Does not respond to attack; continues the script action. |
yes | no | Fires at the enemy while moving to given waypoint. Once all team members have engaged the enemy, the team will abandon the current script action, skip any subsequent movement actions, and execute other subsequent, applicable script actions (like flash, talk bubble, etc.) while attacking. Once the attack is over, the team executes the next script action. |
Responds to attack. Once all team members have engaged the enemy, the team will abandon the current script action, skip any subsequent movement actions, and execute other subsequent, applicable script actions (like flash, talk bubble, etc.) while attacking. Once the attack is over, the team executes the next script action. | |
no | yes | Does not initiate attack when enemy comes in range; continues its script action. | Does not respond to attack; continues the script action. | |
no | no | Fires at the enemy while moving to given waypoint.1 | Fires at the enemy while moving to its location. If the enemy moves away, the team follows and attacks it persisently until it's destroyed. If the team reaches the enemy, the team abandons its current script action and executes the next script action. If the enemy is destroyed before the team reaches it, the team continues its current script action. | |
16 Patrol to waypoint
|
yes | yes | Attacks the enemy. Once the enemy is destroyed or moves out of range, the team resumes the script action. | Does not respond to attack; continues the script action. |
yes | no | Abandons the current script action and attacks the enemy. Once attack is over, executes the next script action. | Responds to attack. If the engagement is only a response or if the enemy moves out of range, continues the current script action. If the engagement turns into an attack, it abandons the current script action. Once the attack is over, executes the next script action. | |
no | yes | Attacks the enemy. Once the enemy is destroyed or moves out of range, the team resumes the script action. | Does not respond to attack; continues the script action. | |
no | no | Attacks the enemy. Once the enemy is destroyed or moves out of range, the team resumes the script action. | Responds to attack. As long as the enemy attack persists, the team pursues the enemy. If the enemy disengages and moves out of range, the team ignores the enemy and continues the script action. |
Footnotes
1 ↑ Units with no turret will only attack enemies that are right in front of them. Otherwise they will simply move past the enemy.