Ai battle line: Difference between revisions
Jump to navigation
Jump to search

(→Inputs: |prel4d=1) |
m (css) |
||
Line 2: | Line 2: | ||
[[File:Standoff diagram.png|frame|right]] | [[File:Standoff diagram.png|frame|right]] | ||
{{hl2 point|ai_battle_line}} Battle lines are a part of the Standoff [[:Category:AI|AI]] schedule. They instruct [[NPC]]s to try and stay behind it to a configurable degree. See [[Standoffs]] for more information about the use of <code>ai_battle_line</code>. | {{hl2 point|ai_battle_line}} Battle lines are a part of the Standoff [[:Category:AI|AI]] schedule. They instruct [[NPC]]s to try and stay behind it to a configurable degree. See [[Standoffs]] for more information about the use of <code>ai_battle_line</code>. | ||
{{stray ent|{{css}}}} | |||
{{code class|CAI_BattleLine|ai_behavior_standoff.cpp}} | {{code class|CAI_BattleLine|ai_behavior_standoff.cpp}} | ||
Line 17: | Line 19: | ||
{{KV|Active (Active)|bool|Self-explanatory.}} | {{KV|Active (Active)|bool|Self-explanatory.}} | ||
{{KV|Strict (Strict)|bool|If true, players will not be able to order their allies to ignore the battle line by commanding them with {{ent|impulse|50}} (bound to {{key|C}} by default).}} | {{KV|Strict (Strict)|bool|If true, players will not be able to order their allies to ignore the battle line by commanding them with {{ent|impulse|50}} (bound to {{key|C}} by default).}} | ||
{{KV BaseEntity|base=1}} | {{KV BaseEntity|base=1|css=1}} | ||
==Inputs== | ==Inputs== |
Revision as of 15:26, 8 September 2018


Template:Hl2 point Battle lines are a part of the Standoff AI schedule. They instruct NPCs to try and stay behind it to a configurable degree. See Standoffs for more information about the use of ai_battle_line
.
ConVars/Commands
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
ai_drawbattlelines | 0 | 0 disables, 1 enables | When NPCs move to new positions, show any ground considered to be gained or lost. |
Flags
- 1: Use parent's orientation
Keyvalues
- Actor (actor) ([todo internal name (i)]) <target_name_or_class>
- Actor(s) or squad to affect.
- Strict (Strict) ([todo internal name (i)]) <boolean>
- If true, players will not be able to order their allies to ignore the battle line by commanding them with impulse 50 (bound to C by default).
Inputs
- Activate
- If the entity is not yet active, this input will activate it.
- Deactivate
- If the entity is not yet inactive, this input will turn it inactive.