Advertisement
RedDobe

Untitled

Sep 7th, 2019
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; TryShootOrReloadOrOverwatch changes: Proceed as normal, but add a new node to the end such that if this is the last
  2. ; action point, force an overwatch if the ability is available. Intended to avoid double-moving units if they fail the
  3. ; random roll for overwatch. The sequence now is to try the overwatch roll, possibly just shoot, possibly reload (see below)
  4. ; and finally force an overwatch if we can. If overwatch isn't available we'll fail this node and try something else (probably
  5. ; move). Note that due to the first action node changes below we should usually not reload with this action if we are in
  6. ; last action point, we instead prefer to reload with the first action to avoid move-reload turns. This may still occur
  7. ; and is left in this node to handle cases where the unit does move, e.g. they're both flanked and out of ammo, they may
  8. ; move to get out of flank and then reload to be able to act next turn.
  9. -Behaviors=(BehaviorName=TryShootOrReloadOrOverwatch, NodeType=Selector, Child[0]=ConsiderTakingOverwatch, Child[1]=ShootIfAvailable, Child[2]=NeedsReload)
  10. +Behaviors=(BehaviorName=TryShootOrReloadOrOverwatch, NodeType=Selector, Child[0]=ConsiderTakingOverwatch, Child[1]=ShootIfAvailable, Child[2]=NeedsReload, Child[3]=TryOverwatchLastAction)
  11.  
  12. ; AvoidDoubleMove - Conditions for which we should try to avoid double moving, and instead overwatch.
  13. ; Currently: If we can see any enemies, it's preferable to OW instead of taking a second move. This avoids enemies move/OWing instead of
  14. ; trying to catch up to XCOM when they're being outrun.
  15. +Behaviors=(BehaviorName=AvoidDoubleMove, NodeType=Selector, Child[0]=AnyLivingEnemyVisible)
  16.  
  17. ; TryOverwatchLastAction - If this is the last action and we're in double-move avoidance mode, overwatch if it is available.
  18. +Behaviors=(BehaviorName=TryOverwatchLastAction, NodeType=Sequence, Child[0]=IsLastActionPoint, Child[1]=AvoidDoubleMove, Child[2]=TryOverwatch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement