home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2002 December / JOY143_CD1.iso / Data / Demos / Platoon / pl_demo.exe / Inf / Gamelogic / GameEvents / uSub.GetTargetCondition-A_All.inf < prev    next >
INI File  |  2002-10-14  |  74KB  |  3,396 lines

  1.  
  2. [uSub.GetTargetCondition/A_All : cESEvent]
  3. {
  4.     Name = uSub.GetTargetCondition/A_All
  5.     Enabled = 1
  6.     Type = 2
  7.     RefreshRate = 0
  8.  
  9.     [Procedures *]
  10.     {
  11.  
  12.         [: cESSwitch]
  13.         {
  14.             Note = "Switch on debug_level"
  15.  
  16.             [Value : cESGetGlobalParameter]
  17.             {
  18.                 ParamName = debug_level
  19.  
  20.             }
  21.             [Case *]
  22.             {
  23.  
  24.                 [: cESCase]
  25.                 {
  26.                     Note = "1 - state"
  27.                     Value = 1
  28.  
  29.                     [Procedures *]
  30.                     {
  31.  
  32.                         [: cESLog]
  33.                         {
  34.                             Text = "-----------------------------"
  35.  
  36.                         }
  37.                         [: cESSwitch]
  38.                         {
  39.                             Note = "Print command state."
  40.  
  41.                             [Value : cUGetCommandState]
  42.                             {
  43.  
  44.                             }
  45.                             [Case *]
  46.                             {
  47.  
  48.                                 [: cESCase]
  49.                                 {
  50.                                     Note = "0"
  51.                                     Value = 0
  52.  
  53.                                     [Procedures *]
  54.                                     {
  55.  
  56.                                         [: cESLog]
  57.                                         {
  58.                                             Text = "==> CommandState = 0."
  59.  
  60.                                         }
  61.                                     }
  62.                                 }
  63.                                 [: cESCase]
  64.                                 {
  65.                                     Note = "1"
  66.                                     Value = 1
  67.  
  68.                                     [Procedures *]
  69.                                     {
  70.  
  71.                                         [: cESLog]
  72.                                         {
  73.                                             Text = "==> CommandState = 1."
  74.  
  75.                                         }
  76.                                     }
  77.                                 }
  78.                                 [: cESCase]
  79.                                 {
  80.                                     Note = "11"
  81.                                     Value = 11
  82.  
  83.                                     [Procedures *]
  84.                                     {
  85.  
  86.                                         [: cESLog]
  87.                                         {
  88.                                             Text = "==> CommandState = 11."
  89.  
  90.                                         }
  91.                                     }
  92.                                 }
  93.                                 [: cESCase]
  94.                                 {
  95.                                     Note = "2"
  96.                                     Value = 2
  97.  
  98.                                     [Procedures *]
  99.                                     {
  100.  
  101.                                         [: cESLog]
  102.                                         {
  103.                                             Text = "==> CommandState = 2."
  104.  
  105.                                         }
  106.                                     }
  107.                                 }
  108.                                 [: cESCase]
  109.                                 {
  110.                                     Note = "22"
  111.                                     Value = 22
  112.  
  113.                                     [Procedures *]
  114.                                     {
  115.  
  116.                                         [: cESLog]
  117.                                         {
  118.                                             Text = "==> CommandState = 22."
  119.  
  120.                                         }
  121.                                     }
  122.                                 }
  123.                                 [: cESCase]
  124.                                 {
  125.                                     Note = "3"
  126.                                     Value = 3
  127.  
  128.                                     [Procedures *]
  129.                                     {
  130.  
  131.                                         [: cESLog]
  132.                                         {
  133.                                             Text = "==> CommandState = 3."
  134.  
  135.                                         }
  136.                                     }
  137.                                 }
  138.                                 [: cESCase]
  139.                                 {
  140.                                     Note = "33"
  141.                                     Value = 33
  142.  
  143.                                     [Procedures *]
  144.                                     {
  145.  
  146.                                         [: cESLog]
  147.                                         {
  148.                                             Text = "==> CommandState = 33."
  149.  
  150.                                         }
  151.                                     }
  152.                                 }
  153.                                 [: cESCase]
  154.                                 {
  155.                                     Note = "4"
  156.                                     Value = 4
  157.  
  158.                                     [Procedures *]
  159.                                     {
  160.  
  161.                                         [: cESLog]
  162.                                         {
  163.                                             Text = "==> CommandState = 4."
  164.  
  165.                                         }
  166.                                     }
  167.                                 }
  168.                                 [: cESCase]
  169.                                 {
  170.                                     Note = "44"
  171.                                     Value = 44
  172.  
  173.                                     [Procedures *]
  174.                                     {
  175.  
  176.                                         [: cESLog]
  177.                                         {
  178.                                             Text = "==> CommandState = 44."
  179.  
  180.                                         }
  181.                                     }
  182.                                 }
  183.                                 [: cESCase]
  184.                                 {
  185.                                     Note = "5"
  186.                                     Value = 5
  187.  
  188.                                     [Procedures *]
  189.                                     {
  190.  
  191.                                         [: cESLog]
  192.                                         {
  193.                                             Text = "==> CommandState = 5."
  194.  
  195.                                         }
  196.                                     }
  197.                                 }
  198.                                 [: cESCase]
  199.                                 {
  200.                                     Note = "55"
  201.                                     Value = 55
  202.  
  203.                                     [Procedures *]
  204.                                     {
  205.  
  206.                                         [: cESLog]
  207.                                         {
  208.                                             Text = "==> CommandState = 55."
  209.  
  210.                                         }
  211.                                     }
  212.                                 }
  213.                                 [: cESCase]
  214.                                 {
  215.                                     Note = "6"
  216.                                     Value = 6
  217.  
  218.                                     [Procedures *]
  219.                                     {
  220.  
  221.                                         [: cESLog]
  222.                                         {
  223.                                             Text = "==> CommandState = 6."
  224.  
  225.                                         }
  226.                                     }
  227.                                 }
  228.                                 [: cESCase]
  229.                                 {
  230.                                     Note = "66"
  231.                                     Value = 66
  232.  
  233.                                     [Procedures *]
  234.                                     {
  235.  
  236.                                         [: cESLog]
  237.                                         {
  238.                                             Text = "==> CommandState = 66."
  239.  
  240.                                         }
  241.                                     }
  242.                                 }
  243.                             }
  244.                         }
  245.                     }
  246.                 }
  247.                 [: cESCase]
  248.                 {
  249.                     Note = "2 - everything"
  250.                     Value = 2
  251.  
  252.                     [Procedures *]
  253.                     {
  254.  
  255.                         [: cESLog]
  256.                         {
  257.                             Text = "-----------------------------"
  258.  
  259.                         }
  260.                         [: cESSwitch]
  261.                         {
  262.                             Note = "Print command state."
  263.  
  264.                             [Value : cUGetCommandState]
  265.                             {
  266.  
  267.                             }
  268.                             [Case *]
  269.                             {
  270.  
  271.                                 [: cESCase]
  272.                                 {
  273.                                     Note = "0"
  274.                                     Value = 0
  275.  
  276.                                     [Procedures *]
  277.                                     {
  278.  
  279.                                         [: cESLog]
  280.                                         {
  281.                                             Text = "==> CommandState = 0."
  282.  
  283.                                         }
  284.                                     }
  285.                                 }
  286.                                 [: cESCase]
  287.                                 {
  288.                                     Note = "1"
  289.                                     Value = 1
  290.  
  291.                                     [Procedures *]
  292.                                     {
  293.  
  294.                                         [: cESLog]
  295.                                         {
  296.                                             Text = "==> CommandState = 1."
  297.  
  298.                                         }
  299.                                     }
  300.                                 }
  301.                                 [: cESCase]
  302.                                 {
  303.                                     Note = "11"
  304.                                     Value = 11
  305.  
  306.                                     [Procedures *]
  307.                                     {
  308.  
  309.                                         [: cESLog]
  310.                                         {
  311.                                             Text = "==> CommandState = 11."
  312.  
  313.                                         }
  314.                                     }
  315.                                 }
  316.                                 [: cESCase]
  317.                                 {
  318.                                     Note = "2"
  319.                                     Value = 2
  320.  
  321.                                     [Procedures *]
  322.                                     {
  323.  
  324.                                         [: cESLog]
  325.                                         {
  326.                                             Text = "==> CommandState = 2."
  327.  
  328.                                         }
  329.                                     }
  330.                                 }
  331.                                 [: cESCase]
  332.                                 {
  333.                                     Note = "22"
  334.                                     Value = 22
  335.  
  336.                                     [Procedures *]
  337.                                     {
  338.  
  339.                                         [: cESLog]
  340.                                         {
  341.                                             Text = "==> CommandState = 22."
  342.  
  343.                                         }
  344.                                     }
  345.                                 }
  346.                                 [: cESCase]
  347.                                 {
  348.                                     Note = "3"
  349.                                     Value = 3
  350.  
  351.                                     [Procedures *]
  352.                                     {
  353.  
  354.                                         [: cESLog]
  355.                                         {
  356.                                             Text = "==> CommandState = 3."
  357.  
  358.                                         }
  359.                                     }
  360.                                 }
  361.                                 [: cESCase]
  362.                                 {
  363.                                     Note = "33"
  364.                                     Value = 33
  365.  
  366.                                     [Procedures *]
  367.                                     {
  368.  
  369.                                         [: cESLog]
  370.                                         {
  371.                                             Text = "==> CommandState = 33."
  372.  
  373.                                         }
  374.                                     }
  375.                                 }
  376.                                 [: cESCase]
  377.                                 {
  378.                                     Note = "4"
  379.                                     Value = 4
  380.  
  381.                                     [Procedures *]
  382.                                     {
  383.  
  384.                                         [: cESLog]
  385.                                         {
  386.                                             Text = "==> CommandState = 4."
  387.  
  388.                                         }
  389.                                     }
  390.                                 }
  391.                                 [: cESCase]
  392.                                 {
  393.                                     Note = "44"
  394.                                     Value = 44
  395.  
  396.                                     [Procedures *]
  397.                                     {
  398.  
  399.                                         [: cESLog]
  400.                                         {
  401.                                             Text = "==> CommandState = 44."
  402.  
  403.                                         }
  404.                                     }
  405.                                 }
  406.                                 [: cESCase]
  407.                                 {
  408.                                     Note = "5"
  409.                                     Value = 5
  410.  
  411.                                     [Procedures *]
  412.                                     {
  413.  
  414.                                         [: cESLog]
  415.                                         {
  416.                                             Text = "==> CommandState = 5."
  417.  
  418.                                         }
  419.                                     }
  420.                                 }
  421.                                 [: cESCase]
  422.                                 {
  423.                                     Note = "55"
  424.                                     Value = 55
  425.  
  426.                                     [Procedures *]
  427.                                     {
  428.  
  429.                                         [: cESLog]
  430.                                         {
  431.                                             Text = "==> CommandState = 55."
  432.  
  433.                                         }
  434.                                     }
  435.                                 }
  436.                                 [: cESCase]
  437.                                 {
  438.                                     Note = "6"
  439.                                     Value = 6
  440.  
  441.                                     [Procedures *]
  442.                                     {
  443.  
  444.                                         [: cESLog]
  445.                                         {
  446.                                             Text = "==> CommandState = 6."
  447.  
  448.                                         }
  449.                                     }
  450.                                 }
  451.                                 [: cESCase]
  452.                                 {
  453.                                     Note = "66"
  454.                                     Value = 66
  455.  
  456.                                     [Procedures *]
  457.                                     {
  458.  
  459.                                         [: cESLog]
  460.                                         {
  461.                                             Text = "==> CommandState = 66."
  462.  
  463.                                         }
  464.                                     }
  465.                                 }
  466.                             }
  467.                         }
  468.                         [: cESIf]
  469.                         {
  470.                             Note = "Entitiy or pos?"
  471.  
  472.                             [Condition : cIsCommandTargetEntity]
  473.                             {
  474.                                 Note = ""
  475.  
  476.                                 [Target : cUGetAttackTarget]
  477.                                 {
  478.  
  479.                                 }
  480.                             }
  481.                             [Then *]
  482.                             {
  483.  
  484.                                 [: cESLog]
  485.                                 {
  486.                                     Text = "==> AttackTarget is an ENTITY."
  487.  
  488.                                 }
  489.                             }
  490.                             [Else *]
  491.                             {
  492.  
  493.                                 [: cESLog]
  494.                                 {
  495.                                     Text = "==> AttackTarget is a POSITION."
  496.  
  497.                                 }
  498.                             }
  499.                         }
  500.                         [: cESIf]
  501.                         {
  502.                             Note = "Is target empty?"
  503.  
  504.                             [Condition : cMIsEmptyTarget]
  505.                             {
  506.                                 Note = ""
  507.  
  508.                                 [Target : cUGetAttackTarget]
  509.                                 {
  510.  
  511.                                 }
  512.                             }
  513.                             [Then *]
  514.                             {
  515.  
  516.                                 [: cESLog]
  517.                                 {
  518.                                     Text = "==> AttackTarget is EMPTY."
  519.  
  520.                                 }
  521.                             }
  522.                             [Else *]
  523.                             {
  524.  
  525.                                 [: cESLog]
  526.                                 {
  527.                                     Text = "==> AttackTarget is NOT EMPTY."
  528.  
  529.                                 }
  530.                             }
  531.                         }
  532.                         [: cESIf]
  533.                         {
  534.                             Note = "Guard Mode?"
  535.  
  536.                             [Condition : cESCNumEquals]
  537.                             {
  538.                                 Note = ""
  539.  
  540.                                 [Value1 : cESFIntFromMember]
  541.                                 {
  542.                                     VariableName = GuardMode
  543.  
  544.                                     [Object : cSGetByThisSquad]
  545.                                     {
  546.  
  547.                                     }
  548.                                 }
  549.                                 [Value2 : cESFIntConst]
  550.                                 {
  551.                                     Value = 1
  552.  
  553.                                 }
  554.                             }
  555.                             [Then *]
  556.                             {
  557.  
  558.                                 [: cESLog]
  559.                                 {
  560.                                     Text = "==> GuardMode ON"
  561.  
  562.                                 }
  563.                             }
  564.                             [Else *]
  565.                             {
  566.  
  567.                                 [: cESLog]
  568.                                 {
  569.                                     Text = "==> GuardMode OFF"
  570.  
  571.                                 }
  572.                             }
  573.                         }
  574.                         [: cESIf]
  575.                         {
  576.                             Note = Moving?
  577.  
  578.                             [Condition : cUIsMoveTargetReached]
  579.                             {
  580.                                 Note = ""
  581.  
  582.                             }
  583.                             [Then *]
  584.                             {
  585.  
  586.                                 [: cESLog]
  587.                                 {
  588.                                     Text = "==> Unit is NOT MOVING."
  589.  
  590.                                 }
  591.                             }
  592.                             [Else *]
  593.                             {
  594.  
  595.                                 [: cESLog]
  596.                                 {
  597.                                     Text = "==> Unit is MOVING."
  598.  
  599.                                 }
  600.                             }
  601.                         }
  602.                         [: cESIf]
  603.                         {
  604.                             Note = "Is in shoot range?"
  605.  
  606.                             [Condition : cESCNumLess]
  607.                             {
  608.                                 Note = ""
  609.  
  610.                                 [Value1 : cEGetDistance]
  611.                                 {
  612.  
  613.                                     [Source : cGetThisUnit]
  614.                                     {
  615.  
  616.                                     }
  617.                                     [Dest : cUGetAttackTarget]
  618.                                     {
  619.  
  620.                                     }
  621.                                 }
  622.                                 [Value2 : cGGetWeaponMaxRange]
  623.                                 {
  624.  
  625.                                     [Squad : cSGetByThisUnit]
  626.                                     {
  627.  
  628.                                     }
  629.                                 }
  630.                             }
  631.                             [Then *]
  632.                             {
  633.  
  634.                                 [: cESLog]
  635.                                 {
  636.                                     Text = "==> AttackTarget is IN SHOOT RANGE."
  637.  
  638.                                 }
  639.                             }
  640.                             [Else *]
  641.                             {
  642.  
  643.                                 [: cESLog]
  644.                                 {
  645.                                     Text = "==> AttackTarget is NOT IN SHOOT RANGE."
  646.  
  647.                                 }
  648.                             }
  649.                         }
  650.                         [: cESIf]
  651.                         {
  652.                             Note = "Is in too close?"
  653.  
  654.                             [Condition : cESCNumLess]
  655.                             {
  656.                                 Note = ""
  657.  
  658.                                 [Value1 : cEGetDistance]
  659.                                 {
  660.  
  661.                                     [Source : cGetThisUnit]
  662.                                     {
  663.  
  664.                                     }
  665.                                     [Dest : cUGetAttackTarget]
  666.                                     {
  667.  
  668.                                     }
  669.                                 }
  670.                                 [Value2 : cGGetWeaponMinRange]
  671.                                 {
  672.  
  673.                                     [Squad : cSGetByThisUnit]
  674.                                     {
  675.  
  676.                                     }
  677.                                 }
  678.                             }
  679.                             [Then *]
  680.                             {
  681.  
  682.                                 [: cESLog]
  683.                                 {
  684.                                     Text = "==> AttackTarget is TOO CLOSE."
  685.  
  686.                                 }
  687.                             }
  688.                             [Else *]
  689.                             {
  690.  
  691.                                 [: cESLog]
  692.                                 {
  693.                                     Text = "==> AttackTarget is NOT TOO CLOSE."
  694.  
  695.                                 }
  696.                             }
  697.                         }
  698.                         [: cESIf]
  699.                         {
  700.                             Note = "Is in AssaultRangeMax?"
  701.  
  702.                             [Condition : cESCNumLess]
  703.                             {
  704.                                 Note = ""
  705.  
  706.                                 [Value1 : cEGetDistance]
  707.                                 {
  708.  
  709.                                     [Source : cGetThisUnit]
  710.                                     {
  711.  
  712.                                     }
  713.                                     [Dest : cUGetAttackTarget]
  714.                                     {
  715.  
  716.                                     }
  717.                                 }
  718.                                 [Value2 : cUGetAssaultRangeMax]
  719.                                 {
  720.  
  721.                                     [Unit : cGetThisUnit]
  722.                                     {
  723.  
  724.                                     }
  725.                                 }
  726.                             }
  727.                             [Then *]
  728.                             {
  729.  
  730.                                 [: cESLog]
  731.                                 {
  732.                                     Text = "==> AttackTarget is IN ASSAULT RANGE MAX."
  733.  
  734.                                 }
  735.                             }
  736.                             [Else *]
  737.                             {
  738.  
  739.                                 [: cESLog]
  740.                                 {
  741.                                     Text = "==> AttackTarget is NOT IN ASSAULT RANGE MAX."
  742.  
  743.                                 }
  744.                             }
  745.                         }
  746.                         [: cESIf]
  747.                         {
  748.                             Note = "Is in AssaultRangeMin?"
  749.  
  750.                             [Condition : cESCNumLess]
  751.                             {
  752.                                 Note = ""
  753.  
  754.                                 [Value1 : cEGetDistance]
  755.                                 {
  756.  
  757.                                     [Source : cGetThisUnit]
  758.                                     {
  759.  
  760.                                     }
  761.                                     [Dest : cUGetAttackTarget]
  762.                                     {
  763.  
  764.                                     }
  765.                                 }
  766.                                 [Value2 : cUGetAssaultRangeMin]
  767.                                 {
  768.  
  769.                                     [Unit : cGetThisUnit]
  770.                                     {
  771.  
  772.                                     }
  773.                                 }
  774.                             }
  775.                             [Then *]
  776.                             {
  777.  
  778.                                 [: cESLog]
  779.                                 {
  780.                                     Text = "==> AttackTarget is IN ASSAULT RANGE MIN."
  781.  
  782.                                 }
  783.                             }
  784.                             [Else *]
  785.                             {
  786.  
  787.                                 [: cESLog]
  788.                                 {
  789.                                     Text = "==> AttackTarget is NOT IN ASSAULT RANGE MIN."
  790.  
  791.                                 }
  792.                             }
  793.                         }
  794.                         [: cESSubrutine]
  795.                         {
  796.                             Subrutine = uSub.IsTargetReachable
  797.  
  798.                         }
  799.                         [: cESIf]
  800.                         {
  801.                             Note = "Is Reachable?"
  802.  
  803.                             [Condition : cESCNumEquals]
  804.                             {
  805.                                 Note = ""
  806.  
  807.                                 [Value1 : cESFIntByVar]
  808.                                 {
  809.                                     VariableName = TargetReachable
  810.  
  811.                                 }
  812.                                 [Value2 : cESFIntConst]
  813.                                 {
  814.                                     Value = 1
  815.  
  816.                                 }
  817.                             }
  818.                             [Then *]
  819.                             {
  820.  
  821.                                 [: cESLog]
  822.                                 {
  823.                                     Text = "==> Target is REACHABLE."
  824.  
  825.                                 }
  826.                             }
  827.                             [Else *]
  828.                             {
  829.  
  830.                                 [: cESLog]
  831.                                 {
  832.                                     Text = "==> Target is NOT REACHABLE."
  833.  
  834.                                 }
  835.                             }
  836.                         }
  837.                         [: cESIf]
  838.                         {
  839.                             Note = "Is target visible?"
  840.  
  841.                             [Condition : cUIsUnitInLOSBySide]
  842.                             {
  843.                                 Note = ""
  844.  
  845.                                 [Unit : cUGetAttackTarget]
  846.                                 {
  847.  
  848.                                 }
  849.                             }
  850.                             [Then *]
  851.                             {
  852.  
  853.                                 [: cESLog]
  854.                                 {
  855.                                     Text = "==> Target is VISIBLE."
  856.  
  857.                                 }
  858.                             }
  859.                             [Else *]
  860.                             {
  861.  
  862.                                 [: cESLog]
  863.                                 {
  864.                                     Text = "==> Target is NOT VISIBLE."
  865.  
  866.                                 }
  867.                             }
  868.                         }
  869.                         [: cESIf]
  870.                         {
  871.                             Note = CanShootInvisible?
  872.  
  873.                             [Condition : cESCNumEquals]
  874.                             {
  875.                                 Note = ""
  876.  
  877.                                 [Value1 : cESFIntFromMember]
  878.                                 {
  879.                                     VariableName = CanShootInvisible
  880.  
  881.                                     [Object : cSGetByThisUnit]
  882.                                     {
  883.  
  884.                                     }
  885.                                 }
  886.                                 [Value2 : cESFIntConst]
  887.                                 {
  888.                                     Value = 1
  889.  
  890.                                 }
  891.                             }
  892.                             [Then *]
  893.                             {
  894.  
  895.                                 [: cESLog]
  896.                                 {
  897.                                     Text = "==> Unit CAN SHOOT INVISIBLE."
  898.  
  899.                                 }
  900.                             }
  901.                             [Else *]
  902.                             {
  903.  
  904.                                 [: cESLog]
  905.                                 {
  906.                                     Text = "==> Unit CAN NOT SHOOT INVISIBLE."
  907.  
  908.                                 }
  909.                             }
  910.                         }
  911.                         [: cESIf]
  912.                         {
  913.                             Note = "Has Line of Fire?"
  914.  
  915.                             [Condition : cUHasLineOfFire]
  916.                             {
  917.                                 Note = ""
  918.  
  919.                                 [Who : cGetThisUnit]
  920.                                 {
  921.  
  922.                                 }
  923.                                 [At : cUGetAttackTarget]
  924.                                 {
  925.  
  926.                                 }
  927.                             }
  928.                             [Then *]
  929.                             {
  930.  
  931.                                 [: cESLog]
  932.                                 {
  933.                                     Text = "==> Unit has LOF to attack target."
  934.  
  935.                                 }
  936.                             }
  937.                             [Else *]
  938.                             {
  939.  
  940.                                 [: cESLog]
  941.                                 {
  942.                                     Text = "==> Unit has NOT LOF to attack target."
  943.  
  944.                                 }
  945.                             }
  946.                         }
  947.                         [: cESIf]
  948.                         {
  949.                             Note = "Movement style."
  950.  
  951.                             [Condition : cESCNumEquals]
  952.                             {
  953.                                 Note = ""
  954.  
  955.                                 [Value1 : cUGetMovementStyle]
  956.                                 {
  957.  
  958.                                 }
  959.                                 [Value2 : cUEnumMovementStyle]
  960.                                 {
  961.                                     EMovementStyle = 1
  962.  
  963.                                 }
  964.                             }
  965.                             [Then *]
  966.                             {
  967.  
  968.                                 [: cESLog]
  969.                                 {
  970.                                     Text = "==> Movement style: CRAWL."
  971.  
  972.                                 }
  973.                             }
  974.                             [Else *]
  975.                             {
  976.  
  977.                                 [: cESIf]
  978.                                 {
  979.                                     Note = "Movement style."
  980.  
  981.                                     [Condition : cESCNumEquals]
  982.                                     {
  983.                                         Note = ""
  984.  
  985.                                         [Value1 : cUGetMovementStyle]
  986.                                         {
  987.  
  988.                                         }
  989.                                         [Value2 : cUEnumMovementStyle]
  990.                                         {
  991.                                             EMovementStyle = 2
  992.  
  993.                                         }
  994.                                     }
  995.                                     [Then *]
  996.                                     {
  997.  
  998.                                         [: cESLog]
  999.                                         {
  1000.                                             Text = "==> Movement style: NORMAL."
  1001.  
  1002.                                         }
  1003.                                     }
  1004.                                     [Else *]
  1005.                                     {
  1006.  
  1007.                                         [: cESIf]
  1008.                                         {
  1009.                                             Note = "Movement style."
  1010.  
  1011.                                             [Condition : cESCNumEquals]
  1012.                                             {
  1013.                                                 Note = ""
  1014.  
  1015.                                                 [Value1 : cUGetMovementStyle]
  1016.                                                 {
  1017.  
  1018.                                                 }
  1019.                                                 [Value2 : cUEnumMovementStyle]
  1020.                                                 {
  1021.                                                     EMovementStyle = 3
  1022.  
  1023.                                                 }
  1024.                                             }
  1025.                                             [Then *]
  1026.                                             {
  1027.  
  1028.                                                 [: cESLog]
  1029.                                                 {
  1030.                                                     Text = "==> Movement style: FAST."
  1031.  
  1032.                                                 }
  1033.                                             }
  1034.                                             [Else *]
  1035.                                             {
  1036.  
  1037.                                             }
  1038.                                         }
  1039.                                     }
  1040.                                 }
  1041.                             }
  1042.                         }
  1043.                     }
  1044.                 }
  1045.             }
  1046.         }
  1047.         [: cESIf]
  1048.         {
  1049.             Note = ""
  1050.  
  1051.             [Condition : cMIsEmptyTarget]
  1052.             {
  1053.                 Note = ""
  1054.  
  1055.                 [Target : cUGetAttackTarget]
  1056.                 {
  1057.  
  1058.                 }
  1059.             }
  1060.             [Then *]
  1061.             {
  1062.  
  1063.                 [: cESLog]
  1064.                 {
  1065.                     Text = "TargetCondition = 0; Ures az AttackTarget"
  1066.  
  1067.                 }
  1068.                 [: cESIntToVar]
  1069.                 {
  1070.                     VariableName = CommandTarget
  1071.                     Keep = 0
  1072.  
  1073.                     [Value : cESFIntConst]
  1074.                     {
  1075.                         Value = 0
  1076.  
  1077.                     }
  1078.                 }
  1079.             }
  1080.             [Else *]
  1081.             {
  1082.  
  1083.                 [: cESIf]
  1084.                 {
  1085.                     Note = "Celpont tipusa entity es nem el?"
  1086.  
  1087.                     [Condition : cESCAnd]
  1088.                     {
  1089.                         Note = ""
  1090.  
  1091.                         [AndConditions *]
  1092.                         {
  1093.  
  1094.                             [: cIsCommandTargetEntity]
  1095.                             {
  1096.                                 Note = ""
  1097.  
  1098.                                 [Target : cUGetAttackTarget]
  1099.                                 {
  1100.  
  1101.                                 }
  1102.                             }
  1103.                             [: cESCNot]
  1104.                             {
  1105.                                 Note = ""
  1106.  
  1107.                                 [Condition : cUCanAttack]
  1108.                                 {
  1109.                                     Note = ""
  1110.  
  1111.                                     [SourceUnit : cGetThisUnit]
  1112.                                     {
  1113.  
  1114.                                     }
  1115.                                     [TargetUnit : cUGetAttackTarget]
  1116.                                     {
  1117.  
  1118.                                     }
  1119.                                 }
  1120.                             }
  1121.                         }
  1122.                     }
  1123.                     [Then *]
  1124.                     {
  1125.  
  1126.                         [: cESLog]
  1127.                         {
  1128.                             Text = "TargetCondition = 0; Target unit is dead"
  1129.  
  1130.                         }
  1131.                         [: cESIntToVar]
  1132.                         {
  1133.                             VariableName = TargetCondition
  1134.                             Keep = 0
  1135.  
  1136.                             [Value : cESFIntConst]
  1137.                             {
  1138.                                 Value = 0
  1139.  
  1140.                             }
  1141.                         }
  1142.                     }
  1143.                     [Else *]
  1144.                     {
  1145.  
  1146.                         [: cESIf]
  1147.                         {
  1148.                             Note = "Out of ammo?"
  1149.  
  1150.                             [Condition : cESCNumEquals]
  1151.                             {
  1152.                                 Note = ""
  1153.  
  1154.                                 [Value1 : cGUGetAmmo]
  1155.                                 {
  1156.                                     AmmoType = 7
  1157.  
  1158.                                     [Unit : cGetThisUnit]
  1159.                                     {
  1160.  
  1161.                                     }
  1162.                                 }
  1163.                                 [Value2 : cESFIntConst]
  1164.                                 {
  1165.                                     Value = 0
  1166.  
  1167.                                 }
  1168.                             }
  1169.                             [Then *]
  1170.                             {
  1171.  
  1172.                                 [: cESLog]
  1173.                                 {
  1174.                                     Text = "Out of ammo. Command Complete issued. IMMEDIEATELY!!!"
  1175.  
  1176.                                 }
  1177.                                 [: cUCommandCompleted]
  1178.                                 {
  1179.  
  1180.                                 }
  1181.                             }
  1182.                             [Else *]
  1183.                             {
  1184.  
  1185.                                 [: cESIf]
  1186.                                 {
  1187.                                     Note = "CMD == FIRE || CMD == RETURN FIRE || CMD == THROW_GRENADE?"
  1188.  
  1189.                                     [Condition : cESCOr]
  1190.                                     {
  1191.                                         Note = ""
  1192.  
  1193.                                         [OrConditions *]
  1194.                                         {
  1195.  
  1196.                                             [: cESCNumEquals]
  1197.                                             {
  1198.                                                 Note = FIRE?
  1199.  
  1200.                                                 [Value1 : cUGetCommandType]
  1201.                                                 {
  1202.  
  1203.                                                 }
  1204.                                                 [Value2 : cUEnumCommand]
  1205.                                                 {
  1206.                                                     ECommand = 7
  1207.  
  1208.                                                 }
  1209.                                             }
  1210.                                             [: cESCNumEquals]
  1211.                                             {
  1212.                                                 Note = FIRE_MULTIPLEFIRE_MULTIPLE?
  1213.  
  1214.                                                 [Value1 : cUGetCommandType]
  1215.                                                 {
  1216.  
  1217.                                                 }
  1218.                                                 [Value2 : cUEnumCommand]
  1219.                                                 {
  1220.                                                     ECommand = 28
  1221.  
  1222.                                                 }
  1223.                                             }
  1224.                                             [: cESCNumEquals]
  1225.                                             {
  1226.                                                 Note = THROW_GRENADE?
  1227.  
  1228.                                                 [Value1 : cUGetCommandType]
  1229.                                                 {
  1230.  
  1231.                                                 }
  1232.                                                 [Value2 : cUEnumCommand]
  1233.                                                 {
  1234.                                                     ECommand = 18
  1235.  
  1236.                                                 }
  1237.                                             }
  1238.                                             [: cESCNumEquals]
  1239.                                             {
  1240.                                                 Note = "RETURN FIRE?"
  1241.  
  1242.                                                 [Value1 : cUGetCommandType]
  1243.                                                 {
  1244.  
  1245.                                                 }
  1246.                                                 [Value2 : cUEnumCommand]
  1247.                                                 {
  1248.                                                     ECommand = 29
  1249.  
  1250.                                                 }
  1251.                                             }
  1252.                                         }
  1253.                                     }
  1254.                                     [Then *]
  1255.                                     {
  1256.  
  1257.                                         [: cESIf]
  1258.                                         {
  1259.                                             Note = GuardMode?
  1260.  
  1261.                                             [Condition : cESCNumEquals]
  1262.                                             {
  1263.                                                 Note = ""
  1264.  
  1265.                                                 [Value1 : cESFIntFromMember]
  1266.                                                 {
  1267.                                                     VariableName = GuardMode
  1268.  
  1269.                                                     [Object : cSGetByThisUnit]
  1270.                                                     {
  1271.  
  1272.                                                     }
  1273.                                                 }
  1274.                                                 [Value2 : cESFIntConst]
  1275.                                                 {
  1276.                                                     Value = 1
  1277.  
  1278.                                                 }
  1279.                                             }
  1280.                                             [Then *]
  1281.                                             {
  1282.  
  1283.                                                 [: cESIf]
  1284.                                                 {
  1285.                                                     Note = ""
  1286.  
  1287.                                                     [Condition : cUIsInShootRange]
  1288.                                                     {
  1289.                                                         Note = ""
  1290.  
  1291.                                                         [Target : cUGetAttackTarget]
  1292.                                                         {
  1293.  
  1294.                                                         }
  1295.                                                     }
  1296.                                                     [Then *]
  1297.                                                     {
  1298.  
  1299.                                                         [: cESIf]
  1300.                                                         {
  1301.                                                             Note = "MinRange-nel kozelebb van?"
  1302.  
  1303.                                                             [Condition : cESCNumLess]
  1304.                                                             {
  1305.                                                                 Note = ""
  1306.  
  1307.                                                                 [Value1 : cEGetDistance]
  1308.                                                                 {
  1309.  
  1310.                                                                     [Source : cGetThisUnit]
  1311.                                                                     {
  1312.  
  1313.                                                                     }
  1314.                                                                     [Dest : cUGetAttackTarget]
  1315.                                                                     {
  1316.  
  1317.                                                                     }
  1318.                                                                 }
  1319.                                                                 [Value2 : cGGetWeaponMinRange]
  1320.                                                                 {
  1321.  
  1322.                                                                     [Squad : cSGetByThisUnit]
  1323.                                                                     {
  1324.  
  1325.                                                                     }
  1326.                                                                 }
  1327.                                                             }
  1328.                                                             [Then *]
  1329.                                                             {
  1330.  
  1331.                                                                 [: cESLog]
  1332.                                                                 {
  1333.                                                                     Text = "TargetCondition = 2; Target is too close."
  1334.  
  1335.                                                                 }
  1336.                                                                 [: cESIntToVar]
  1337.                                                                 {
  1338.                                                                     VariableName = TargetCondition
  1339.                                                                     Keep = 0
  1340.  
  1341.                                                                     [Value : cESFIntConst]
  1342.                                                                     {
  1343.                                                                         Value = 2
  1344.  
  1345.                                                                     }
  1346.                                                                 }
  1347.                                                             }
  1348.                                                             [Else *]
  1349.                                                             {
  1350.  
  1351.                                                                 [: cESSubrutine]
  1352.                                                                 {
  1353.                                                                     Subrutine = uSub.IsTargetReachable
  1354.  
  1355.                                                                 }
  1356.                                                                 [: cESIf]
  1357.                                                                 {
  1358.                                                                     Note = "Arra nez?"
  1359.  
  1360.                                                                     [Condition : cESCNumEquals]
  1361.                                                                     {
  1362.                                                                         Note = ""
  1363.  
  1364.                                                                         [Value1 : cESFIntByVar]
  1365.                                                                         {
  1366.                                                                             VariableName = TargetReachable
  1367.  
  1368.                                                                         }
  1369.                                                                         [Value2 : cESFIntConst]
  1370.                                                                         {
  1371.                                                                             Value = 1
  1372.  
  1373.                                                                         }
  1374.                                                                     }
  1375.                                                                     [Then *]
  1376.                                                                     {
  1377.  
  1378.                                                                         [: cESIf]
  1379.                                                                         {
  1380.                                                                             Note = "(HasLOF && Visible) || CanShootInvisible"
  1381.  
  1382.                                                                             [Condition : cESCOr]
  1383.                                                                             {
  1384.                                                                                 Note = ""
  1385.  
  1386.                                                                                 [OrConditions *]
  1387.                                                                                 {
  1388.  
  1389.                                                                                     [: cESCAnd]
  1390.                                                                                     {
  1391.                                                                                         Note = ""
  1392.  
  1393.                                                                                         [AndConditions *]
  1394.                                                                                         {
  1395.  
  1396.                                                                                             [: cUHasLineOfFire]
  1397.                                                                                             {
  1398.                                                                                                 Note = ""
  1399.  
  1400.                                                                                                 [Who : cGetThisUnit]
  1401.                                                                                                 {
  1402.  
  1403.                                                                                                 }
  1404.                                                                                                 [At : cUGetAttackTarget]
  1405.                                                                                                 {
  1406.  
  1407.                                                                                                 }
  1408.                                                                                             }
  1409.                                                                                             [: cUIsUnitInLOSBySide]
  1410.                                                                                             {
  1411.                                                                                                 Note = ""
  1412.  
  1413.                                                                                                 [Unit : cUGetAttackTarget]
  1414.                                                                                                 {
  1415.  
  1416.                                                                                                 }
  1417.                                                                                             }
  1418.                                                                                         }
  1419.                                                                                     }
  1420.                                                                                     [: cESCNumEquals]
  1421.                                                                                     {
  1422.                                                                                         Note = ""
  1423.  
  1424.                                                                                         [Value1 : cESFIntFromMember]
  1425.                                                                                         {
  1426.                                                                                             VariableName = CanShootInvisible
  1427.  
  1428.                                                                                             [Object : cSGetByThisUnit]
  1429.                                                                                             {
  1430.  
  1431.                                                                                             }
  1432.                                                                                         }
  1433.                                                                                         [Value2 : cESFIntConst]
  1434.                                                                                         {
  1435.                                                                                             Value = 1
  1436.  
  1437.                                                                                         }
  1438.                                                                                     }
  1439.                                                                                 }
  1440.                                                                             }
  1441.                                                                             [Then *]
  1442.                                                                             {
  1443.  
  1444.                                                                                 [: cESIntToVar]
  1445.                                                                                 {
  1446.                                                                                     VariableName = TargetCondition
  1447.                                                                                     Keep = 0
  1448.  
  1449.                                                                                     [Value : cESFIntConst]
  1450.                                                                                     {
  1451.                                                                                         Value = 4
  1452.  
  1453.                                                                                     }
  1454.                                                                                 }
  1455.                                                                                 [: cESLog]
  1456.                                                                                 {
  1457.                                                                                     Text = "TargetCondition = 4"
  1458.  
  1459.                                                                                 }
  1460.                                                                             }
  1461.                                                                             [Else *]
  1462.                                                                             {
  1463.  
  1464.                                                                                 [: cESLog]
  1465.                                                                                 {
  1466.                                                                                     Text = "TargetCondition = 0; No LOS to AttackTarget"
  1467.  
  1468.                                                                                 }
  1469.                                                                                 [: cESIntToVar]
  1470.                                                                                 {
  1471.                                                                                     VariableName = TargetCondition
  1472.                                                                                     Keep = 0
  1473.  
  1474.                                                                                     [Value : cESFIntConst]
  1475.                                                                                     {
  1476.                                                                                         Value = 0
  1477.  
  1478.                                                                                     }
  1479.                                                                                 }
  1480.                                                                             }
  1481.                                                                         }
  1482.                                                                     }
  1483.                                                                     [Else *]
  1484.                                                                     {
  1485.  
  1486.                                                                         [: cESSubrutine]
  1487.                                                                         {
  1488.                                                                             Subrutine = uSub.GTC_Turn
  1489.  
  1490.                                                                         }
  1491.                                                                     }
  1492.                                                                 }
  1493.                                                             }
  1494.                                                         }
  1495.                                                     }
  1496.                                                     [Else *]
  1497.                                                     {
  1498.  
  1499.                                                         [: cESLog]
  1500.                                                         {
  1501.                                                             Text = "Out of range! (Guard mode ON) IMMEDIATELY!!!"
  1502.  
  1503.                                                         }
  1504.                                                         [: cUCommandCompleted]
  1505.                                                         {
  1506.  
  1507.                                                         }
  1508.                                                     }
  1509.                                                 }
  1510.                                             }
  1511.                                             [Else *]
  1512.                                             {
  1513.  
  1514.                                                 [: cESIf]
  1515.                                                 {
  1516.                                                     Note = ""
  1517.  
  1518.                                                     [Condition : cUIsMoveTargetReached]
  1519.                                                     {
  1520.                                                         Note = ""
  1521.  
  1522.                                                     }
  1523.                                                     [Then *]
  1524.                                                     {
  1525.  
  1526.                                                         [: cESIf]
  1527.                                                         {
  1528.                                                             Note = ""
  1529.  
  1530.                                                             [Condition : cUIsInShootRange]
  1531.                                                             {
  1532.                                                                 Note = ""
  1533.  
  1534.                                                                 [Target : cUGetAttackTarget]
  1535.                                                                 {
  1536.  
  1537.                                                                 }
  1538.                                                             }
  1539.                                                             [Then *]
  1540.                                                             {
  1541.  
  1542.                                                                 [: cESIf]
  1543.                                                                 {
  1544.                                                                     Note = "MinRange-nel kozelebb van?"
  1545.  
  1546.                                                                     [Condition : cESCNumLess]
  1547.                                                                     {
  1548.                                                                         Note = ""
  1549.  
  1550.                                                                         [Value1 : cEGetDistance]
  1551.                                                                         {
  1552.  
  1553.                                                                             [Source : cGetThisUnit]
  1554.                                                                             {
  1555.  
  1556.                                                                             }
  1557.                                                                             [Dest : cUGetAttackTarget]
  1558.                                                                             {
  1559.  
  1560.                                                                             }
  1561.                                                                         }
  1562.                                                                         [Value2 : cGGetWeaponMinRange]
  1563.                                                                         {
  1564.  
  1565.                                                                             [Squad : cSGetByThisUnit]
  1566.                                                                             {
  1567.  
  1568.                                                                             }
  1569.                                                                         }
  1570.                                                                     }
  1571.                                                                     [Then *]
  1572.                                                                     {
  1573.  
  1574.                                                                         [: cESLog]
  1575.                                                                         {
  1576.                                                                             Text = "TargetCondition = 2; Target is too close."
  1577.  
  1578.                                                                         }
  1579.                                                                         [: cESIntToVar]
  1580.                                                                         {
  1581.                                                                             VariableName = TargetCondition
  1582.                                                                             Keep = 0
  1583.  
  1584.                                                                             [Value : cESFIntConst]
  1585.                                                                             {
  1586.                                                                                 Value = 2
  1587.  
  1588.                                                                             }
  1589.                                                                         }
  1590.                                                                     }
  1591.                                                                     [Else *]
  1592.                                                                     {
  1593.  
  1594.                                                                         [: cESSubrutine]
  1595.                                                                         {
  1596.                                                                             Subrutine = uSub.IsTargetReachable
  1597.  
  1598.                                                                         }
  1599.                                                                         [: cESIf]
  1600.                                                                         {
  1601.                                                                             Note = ""
  1602.  
  1603.                                                                             [Condition : cESCNumEquals]
  1604.                                                                             {
  1605.                                                                                 Note = ""
  1606.  
  1607.                                                                                 [Value1 : cESFIntByVar]
  1608.                                                                                 {
  1609.                                                                                     VariableName = TargetReachable
  1610.  
  1611.                                                                                 }
  1612.                                                                                 [Value2 : cESFIntConst]
  1613.                                                                                 {
  1614.                                                                                     Value = 1
  1615.  
  1616.                                                                                 }
  1617.                                                                             }
  1618.                                                                             [Then *]
  1619.                                                                             {
  1620.  
  1621.                                                                                 [: cESIf]
  1622.                                                                                 {
  1623.                                                                                     Note = "(HasLOF && Visible) || CanShootInvisible"
  1624.  
  1625.                                                                                     [Condition : cESCOr]
  1626.                                                                                     {
  1627.                                                                                         Note = ""
  1628.  
  1629.                                                                                         [OrConditions *]
  1630.                                                                                         {
  1631.  
  1632.                                                                                             [: cESCAnd]
  1633.                                                                                             {
  1634.                                                                                                 Note = ""
  1635.  
  1636.                                                                                                 [AndConditions *]
  1637.                                                                                                 {
  1638.  
  1639.                                                                                                     [: cUHasLineOfFire]
  1640.                                                                                                     {
  1641.                                                                                                         Note = ""
  1642.  
  1643.                                                                                                         [Who : cGetThisUnit]
  1644.                                                                                                         {
  1645.  
  1646.                                                                                                         }
  1647.                                                                                                         [At : cUGetAttackTarget]
  1648.                                                                                                         {
  1649.  
  1650.                                                                                                         }
  1651.                                                                                                     }
  1652.                                                                                                     [: cUIsUnitInLOSBySide]
  1653.                                                                                                     {
  1654.                                                                                                         Note = ""
  1655.  
  1656.                                                                                                         [Unit : cUGetAttackTarget]
  1657.                                                                                                         {
  1658.  
  1659.                                                                                                         }
  1660.                                                                                                     }
  1661.                                                                                                 }
  1662.                                                                                             }
  1663.                                                                                             [: cESCNumEquals]
  1664.                                                                                             {
  1665.                                                                                                 Note = ""
  1666.  
  1667.                                                                                                 [Value1 : cESFIntFromMember]
  1668.                                                                                                 {
  1669.                                                                                                     VariableName = CanShootInvisible
  1670.  
  1671.                                                                                                     [Object : cSGetByThisUnit]
  1672.                                                                                                     {
  1673.  
  1674.                                                                                                     }
  1675.                                                                                                 }
  1676.                                                                                                 [Value2 : cESFIntConst]
  1677.                                                                                                 {
  1678.                                                                                                     Value = 1
  1679.  
  1680.                                                                                                 }
  1681.                                                                                             }
  1682.                                                                                         }
  1683.                                                                                     }
  1684.                                                                                     [Then *]
  1685.                                                                                     {
  1686.  
  1687.                                                                                         [: cESIntToVar]
  1688.                                                                                         {
  1689.                                                                                             VariableName = TargetCondition
  1690.                                                                                             Keep = 0
  1691.  
  1692.                                                                                             [Value : cESFIntConst]
  1693.                                                                                             {
  1694.                                                                                                 Value = 4
  1695.  
  1696.                                                                                             }
  1697.                                                                                         }
  1698.                                                                                         [: cESLog]
  1699.                                                                                         {
  1700.                                                                                             Text = "TargetCondition = 4"
  1701.  
  1702.                                                                                         }
  1703.                                                                                     }
  1704.                                                                                     [Else *]
  1705.                                                                                     {
  1706.  
  1707.                                                                                         [: cESIf]
  1708.                                                                                         {
  1709.                                                                                             Note = "IsAnyMemberFiring || Visible?"
  1710.  
  1711.                                                                                             [Condition : cESCOr]
  1712.                                                                                             {
  1713.                                                                                                 Note = ""
  1714.  
  1715.                                                                                                 [OrConditions *]
  1716.                                                                                                 {
  1717.  
  1718.                                                                                                     [: cUIsAnyMemberFiring]
  1719.                                                                                                     {
  1720.                                                                                                         Note = ""
  1721.  
  1722.                                                                                                     }
  1723.                                                                                                     [: cUIsUnitInLOSBySide]
  1724.                                                                                                     {
  1725.                                                                                                         Note = ""
  1726.  
  1727.                                                                                                         [Unit : cUGetAttackTarget]
  1728.                                                                                                         {
  1729.  
  1730.                                                                                                         }
  1731.                                                                                                     }
  1732.                                                                                                 }
  1733.                                                                                             }
  1734.                                                                                             [Then *]
  1735.                                                                                             {
  1736.  
  1737.                                                                                                 [: cESSubrutine]
  1738.                                                                                                 {
  1739.                                                                                                     Subrutine = uSub.GTC_Run
  1740.  
  1741.                                                                                                 }
  1742.                                                                                             }
  1743.                                                                                             [Else *]
  1744.                                                                                             {
  1745.  
  1746.                                                                                                 [: cESLog]
  1747.                                                                                                 {
  1748.                                                                                                     Text = "TargetCondition = 0; No LOS to AttackTarget"
  1749.  
  1750.                                                                                                 }
  1751.                                                                                                 [: cESIntToVar]
  1752.                                                                                                 {
  1753.                                                                                                     VariableName = TargetCondition
  1754.                                                                                                     Keep = 0
  1755.  
  1756.                                                                                                     [Value : cESFIntConst]
  1757.                                                                                                     {
  1758.                                                                                                         Value = 0
  1759.  
  1760.                                                                                                     }
  1761.                                                                                                 }
  1762.                                                                                             }
  1763.                                                                                         }
  1764.                                                                                     }
  1765.                                                                                 }
  1766.                                                                             }
  1767.                                                                             [Else *]
  1768.                                                                             {
  1769.  
  1770.                                                                                 [: cESSubrutine]
  1771.                                                                                 {
  1772.                                                                                     Subrutine = uSub.GTC_Turn
  1773.  
  1774.                                                                                 }
  1775.                                                                             }
  1776.                                                                         }
  1777.                                                                     }
  1778.                                                                 }
  1779.                                                             }
  1780.                                                             [Else *]
  1781.                                                             {
  1782.  
  1783.                                                                 [: cESIf]
  1784.                                                                 {
  1785.                                                                     Note = "0-s vagy 1-es statben van? Azaz most indul?"
  1786.  
  1787.                                                                     [Condition : cESCOr]
  1788.                                                                     {
  1789.                                                                         Note = ""
  1790.  
  1791.                                                                         [OrConditions *]
  1792.                                                                         {
  1793.  
  1794.                                                                             [: cESCNumEquals]
  1795.                                                                             {
  1796.                                                                                 Note = ""
  1797.  
  1798.                                                                                 [Value1 : cUGetCommandState]
  1799.                                                                                 {
  1800.  
  1801.                                                                                 }
  1802.                                                                                 [Value2 : cESFIntConst]
  1803.                                                                                 {
  1804.                                                                                     Value = 0
  1805.  
  1806.                                                                                 }
  1807.                                                                             }
  1808.                                                                             [: cESCNumEquals]
  1809.                                                                             {
  1810.                                                                                 Note = ""
  1811.  
  1812.                                                                                 [Value1 : cUGetCommandState]
  1813.                                                                                 {
  1814.  
  1815.                                                                                 }
  1816.                                                                                 [Value2 : cESFIntConst]
  1817.                                                                                 {
  1818.                                                                                     Value = 1
  1819.  
  1820.                                                                                 }
  1821.                                                                             }
  1822.                                                                         }
  1823.                                                                     }
  1824.                                                                     [Then *]
  1825.                                                                     {
  1826.  
  1827.                                                                         [: cESIf]
  1828.                                                                         {
  1829.                                                                             Note = "IsAnyMemberFiring || Visible?"
  1830.  
  1831.                                                                             [Condition : cESCOr]
  1832.                                                                             {
  1833.                                                                                 Note = ""
  1834.  
  1835.                                                                                 [OrConditions *]
  1836.                                                                                 {
  1837.  
  1838.                                                                                     [: cUIsAnyMemberFiring]
  1839.                                                                                     {
  1840.                                                                                         Note = ""
  1841.  
  1842.                                                                                     }
  1843.                                                                                     [: cUIsUnitInLOSBySide]
  1844.                                                                                     {
  1845.                                                                                         Note = ""
  1846.  
  1847.                                                                                         [Unit : cUGetAttackTarget]
  1848.                                                                                         {
  1849.  
  1850.                                                                                         }
  1851.                                                                                     }
  1852.                                                                                 }
  1853.                                                                             }
  1854.                                                                             [Then *]
  1855.                                                                             {
  1856.  
  1857.                                                                                 [: cESSubrutine]
  1858.                                                                                 {
  1859.                                                                                     Subrutine = uSub.GTC_Run
  1860.  
  1861.                                                                                 }
  1862.                                                                             }
  1863.                                                                             [Else *]
  1864.                                                                             {
  1865.  
  1866.                                                                                 [: cESIf]
  1867.                                                                                 {
  1868.                                                                                     Note = ""
  1869.  
  1870.                                                                                     [Condition : cUIsUserCommand]
  1871.                                                                                     {
  1872.                                                                                         Note = ""
  1873.  
  1874.                                                                                     }
  1875.                                                                                     [Then *]
  1876.                                                                                     {
  1877.  
  1878.                                                                                         [: cESIntToVar]
  1879.                                                                                         {
  1880.                                                                                             VariableName = TargetCondition
  1881.                                                                                             Keep = 0
  1882.  
  1883.                                                                                             [Value : cESFIntConst]
  1884.                                                                                             {
  1885.                                                                                                 Value = 1
  1886.  
  1887.                                                                                             }
  1888.                                                                                         }
  1889.                                                                                         [: cESLog]
  1890.                                                                                         {
  1891.                                                                                             Text = "TargetCondition = 1"
  1892.  
  1893.                                                                                         }
  1894.                                                                                     }
  1895.                                                                                     [Else *]
  1896.                                                                                     {
  1897.  
  1898.                                                                                         [: cESIntToVar]
  1899.                                                                                         {
  1900.                                                                                             VariableName = TargetCondition
  1901.                                                                                             Keep = 0
  1902.  
  1903.                                                                                             [Value : cESFIntConst]
  1904.                                                                                             {
  1905.                                                                                                 Value = 0
  1906.  
  1907.                                                                                             }
  1908.                                                                                         }
  1909.                                                                                         [: cESLog]
  1910.                                                                                         {
  1911.                                                                                             Text = "TargetCondition = 0"
  1912.  
  1913.                                                                                         }
  1914.                                                                                     }
  1915.                                                                                 }
  1916.                                                                             }
  1917.                                                                         }
  1918.                                                                     }
  1919.                                                                     [Else *]
  1920.                                                                     {
  1921.  
  1922.                                                                         [: cESSubrutine]
  1923.                                                                         {
  1924.                                                                             Subrutine = uSub.IsTargetReachable
  1925.  
  1926.                                                                         }
  1927.                                                                         [: cESIf]
  1928.                                                                         {
  1929.                                                                             Note = ""
  1930.  
  1931.                                                                             [Condition : cESCNumEquals]
  1932.                                                                             {
  1933.                                                                                 Note = ""
  1934.  
  1935.                                                                                 [Value1 : cESFIntByVar]
  1936.                                                                                 {
  1937.                                                                                     VariableName = TargetReachable
  1938.  
  1939.                                                                                 }
  1940.                                                                                 [Value2 : cESFIntConst]
  1941.                                                                                 {
  1942.                                                                                     Value = 1
  1943.  
  1944.                                                                                 }
  1945.                                                                             }
  1946.                                                                             [Then *]
  1947.                                                                             {
  1948.  
  1949.                                                                                 [: cESIf]
  1950.                                                                                 {
  1951.                                                                                     Note = "(HasLOF && Visible) || CanShootInvisible"
  1952.  
  1953.                                                                                     [Condition : cESCOr]
  1954.                                                                                     {
  1955.                                                                                         Note = ""
  1956.  
  1957.                                                                                         [OrConditions *]
  1958.                                                                                         {
  1959.  
  1960.                                                                                             [: cESCAnd]
  1961.                                                                                             {
  1962.                                                                                                 Note = ""
  1963.  
  1964.                                                                                                 [AndConditions *]
  1965.                                                                                                 {
  1966.  
  1967.                                                                                                     [: cUHasLineOfFire]
  1968.                                                                                                     {
  1969.                                                                                                         Note = ""
  1970.  
  1971.                                                                                                         [Who : cGetThisUnit]
  1972.                                                                                                         {
  1973.  
  1974.                                                                                                         }
  1975.                                                                                                         [At : cUGetAttackTarget]
  1976.                                                                                                         {
  1977.  
  1978.                                                                                                         }
  1979.                                                                                                     }
  1980.                                                                                                     [: cUIsUnitInLOSBySide]
  1981.                                                                                                     {
  1982.                                                                                                         Note = ""
  1983.  
  1984.                                                                                                         [Unit : cUGetAttackTarget]
  1985.                                                                                                         {
  1986.  
  1987.                                                                                                         }
  1988.                                                                                                     }
  1989.                                                                                                 }
  1990.                                                                                             }
  1991.                                                                                             [: cESCNumEquals]
  1992.                                                                                             {
  1993.                                                                                                 Note = ""
  1994.  
  1995.                                                                                                 [Value1 : cESFIntFromMember]
  1996.                                                                                                 {
  1997.                                                                                                     VariableName = CanShootInvisible
  1998.  
  1999.                                                                                                     [Object : cSGetByThisUnit]
  2000.                                                                                                     {
  2001.  
  2002.                                                                                                     }
  2003.                                                                                                 }
  2004.                                                                                                 [Value2 : cESFIntConst]
  2005.                                                                                                 {
  2006.                                                                                                     Value = 1
  2007.  
  2008.                                                                                                 }
  2009.                                                                                             }
  2010.                                                                                         }
  2011.                                                                                     }
  2012.                                                                                     [Then *]
  2013.                                                                                     {
  2014.  
  2015.                                                                                         [: cESIntToVar]
  2016.                                                                                         {
  2017.                                                                                             VariableName = TargetCondition
  2018.                                                                                             Keep = 0
  2019.  
  2020.                                                                                             [Value : cESFIntConst]
  2021.                                                                                             {
  2022.                                                                                                 Value = 4
  2023.  
  2024.                                                                                             }
  2025.                                                                                         }
  2026.                                                                                         [: cESLog]
  2027.                                                                                         {
  2028.                                                                                             Text = "TargetCondition = 4"
  2029.  
  2030.                                                                                         }
  2031.                                                                                     }
  2032.                                                                                     [Else *]
  2033.                                                                                     {
  2034.  
  2035.                                                                                         [: cESIf]
  2036.                                                                                         {
  2037.                                                                                             Note = "IsAnyMemberFiring || Visible?"
  2038.  
  2039.                                                                                             [Condition : cESCOr]
  2040.                                                                                             {
  2041.                                                                                                 Note = ""
  2042.  
  2043.                                                                                                 [OrConditions *]
  2044.                                                                                                 {
  2045.  
  2046.                                                                                                     [: cUIsAnyMemberFiring]
  2047.                                                                                                     {
  2048.                                                                                                         Note = ""
  2049.  
  2050.                                                                                                     }
  2051.                                                                                                     [: cUIsUnitInLOSBySide]
  2052.                                                                                                     {
  2053.                                                                                                         Note = ""
  2054.  
  2055.                                                                                                         [Unit : cUGetAttackTarget]
  2056.                                                                                                         {
  2057.  
  2058.                                                                                                         }
  2059.                                                                                                     }
  2060.                                                                                                 }
  2061.                                                                                             }
  2062.                                                                                             [Then *]
  2063.                                                                                             {
  2064.  
  2065.                                                                                                 [: cESSubrutine]
  2066.                                                                                                 {
  2067.                                                                                                     Subrutine = uSub.GTC_Run
  2068.  
  2069.                                                                                                 }
  2070.                                                                                             }
  2071.                                                                                             [Else *]
  2072.                                                                                             {
  2073.  
  2074.                                                                                                 [: cESLog]
  2075.                                                                                                 {
  2076.                                                                                                     Text = "TargetCondition = 0; No LOS to AttackTarget"
  2077.  
  2078.                                                                                                 }
  2079.                                                                                                 [: cESIntToVar]
  2080.                                                                                                 {
  2081.                                                                                                     VariableName = TargetCondition
  2082.                                                                                                     Keep = 0
  2083.  
  2084.                                                                                                     [Value : cESFIntConst]
  2085.                                                                                                     {
  2086.                                                                                                         Value = 0
  2087.  
  2088.                                                                                                     }
  2089.                                                                                                 }
  2090.                                                                                             }
  2091.                                                                                         }
  2092.                                                                                     }
  2093.                                                                                 }
  2094.                                                                             }
  2095.                                                                             [Else *]
  2096.                                                                             {
  2097.  
  2098.                                                                                 [: cESSubrutine]
  2099.                                                                                 {
  2100.                                                                                     Subrutine = uSub.GTC_Turn
  2101.  
  2102.                                                                                 }
  2103.                                                                             }
  2104.                                                                         }
  2105.                                                                     }
  2106.                                                                 }
  2107.                                                             }
  2108.                                                         }
  2109.                                                     }
  2110.                                                     [Else *]
  2111.                                                     {
  2112.  
  2113.                                                         [: cESIf]
  2114.                                                         {
  2115.                                                             Note = "Distance < ShootRange - 5m"
  2116.  
  2117.                                                             [Condition : cESCNumLess]
  2118.                                                             {
  2119.                                                                 Note = ""
  2120.  
  2121.                                                                 [Value1 : cEGetDistance]
  2122.                                                                 {
  2123.  
  2124.                                                                     [Source : cGetThisUnit]
  2125.                                                                     {
  2126.  
  2127.                                                                     }
  2128.                                                                     [Dest : cUGetAttackTarget]
  2129.                                                                     {
  2130.  
  2131.                                                                     }
  2132.                                                                 }
  2133.                                                                 [Value2 : cESFIntAdd]
  2134.                                                                 {
  2135.  
  2136.                                                                     [Variable1 : cGGetWeaponMaxRange]
  2137.                                                                     {
  2138.  
  2139.                                                                         [Squad : cSGetByThisUnit]
  2140.                                                                         {
  2141.  
  2142.                                                                         }
  2143.                                                                     }
  2144.                                                                     [Variable2 : cESFIntConst]
  2145.                                                                     {
  2146.                                                                         Value = -5
  2147.  
  2148.                                                                     }
  2149.                                                                 }
  2150.                                                             }
  2151.                                                             [Then *]
  2152.                                                             {
  2153.  
  2154.                                                                 [: cESSubrutine]
  2155.                                                                 {
  2156.                                                                     Subrutine = uSub.IsTargetReachable
  2157.  
  2158.                                                                 }
  2159.                                                                 [: cESIf]
  2160.                                                                 {
  2161.                                                                     Note = ""
  2162.  
  2163.                                                                     [Condition : cESCNumEquals]
  2164.                                                                     {
  2165.                                                                         Note = ""
  2166.  
  2167.                                                                         [Value1 : cESFIntByVar]
  2168.                                                                         {
  2169.                                                                             VariableName = TargetReachable
  2170.  
  2171.                                                                         }
  2172.                                                                         [Value2 : cESFIntConst]
  2173.                                                                         {
  2174.                                                                             Value = 1
  2175.  
  2176.                                                                         }
  2177.                                                                     }
  2178.                                                                     [Then *]
  2179.                                                                     {
  2180.  
  2181.                                                                         [: cESIf]
  2182.                                                                         {
  2183.                                                                             Note = "(HasLOF && Visible) || CanShootInvisible"
  2184.  
  2185.                                                                             [Condition : cESCOr]
  2186.                                                                             {
  2187.                                                                                 Note = ""
  2188.  
  2189.                                                                                 [OrConditions *]
  2190.                                                                                 {
  2191.  
  2192.                                                                                     [: cESCAnd]
  2193.                                                                                     {
  2194.                                                                                         Note = ""
  2195.  
  2196.                                                                                         [AndConditions *]
  2197.                                                                                         {
  2198.  
  2199.                                                                                             [: cUHasLineOfFire]
  2200.                                                                                             {
  2201.                                                                                                 Note = ""
  2202.  
  2203.                                                                                                 [Who : cGetThisUnit]
  2204.                                                                                                 {
  2205.  
  2206.                                                                                                 }
  2207.                                                                                                 [At : cUGetAttackTarget]
  2208.                                                                                                 {
  2209.  
  2210.                                                                                                 }
  2211.                                                                                             }
  2212.                                                                                             [: cUIsUnitInLOSBySide]
  2213.                                                                                             {
  2214.                                                                                                 Note = ""
  2215.  
  2216.                                                                                                 [Unit : cUGetAttackTarget]
  2217.                                                                                                 {
  2218.  
  2219.                                                                                                 }
  2220.                                                                                             }
  2221.                                                                                         }
  2222.                                                                                     }
  2223.                                                                                     [: cESCNumEquals]
  2224.                                                                                     {
  2225.                                                                                         Note = ""
  2226.  
  2227.                                                                                         [Value1 : cESFIntFromMember]
  2228.                                                                                         {
  2229.                                                                                             VariableName = CanShootInvisible
  2230.  
  2231.                                                                                             [Object : cSGetByThisUnit]
  2232.                                                                                             {
  2233.  
  2234.                                                                                             }
  2235.                                                                                         }
  2236.                                                                                         [Value2 : cESFIntConst]
  2237.                                                                                         {
  2238.                                                                                             Value = 1
  2239.  
  2240.                                                                                         }
  2241.                                                                                     }
  2242.                                                                                 }
  2243.                                                                             }
  2244.                                                                             [Then *]
  2245.                                                                             {
  2246.  
  2247.                                                                                 [: cESIntToVar]
  2248.                                                                                 {
  2249.                                                                                     VariableName = TargetCondition
  2250.                                                                                     Keep = 0
  2251.  
  2252.                                                                                     [Value : cESFIntConst]
  2253.                                                                                     {
  2254.                                                                                         Value = 4
  2255.  
  2256.                                                                                     }
  2257.                                                                                 }
  2258.                                                                                 [: cESLog]
  2259.                                                                                 {
  2260.                                                                                     Text = "TargetCondition = 4"
  2261.  
  2262.                                                                                 }
  2263.                                                                             }
  2264.                                                                             [Else *]
  2265.                                                                             {
  2266.  
  2267.                                                                                 [: cESIf]
  2268.                                                                                 {
  2269.                                                                                     Note = "IsAnyMemberFiring || Visible?"
  2270.  
  2271.                                                                                     [Condition : cESCOr]
  2272.                                                                                     {
  2273.                                                                                         Note = ""
  2274.  
  2275.                                                                                         [OrConditions *]
  2276.                                                                                         {
  2277.  
  2278.                                                                                             [: cUIsAnyMemberFiring]
  2279.                                                                                             {
  2280.                                                                                                 Note = ""
  2281.  
  2282.                                                                                             }
  2283.                                                                                             [: cUIsUnitInLOSBySide]
  2284.                                                                                             {
  2285.                                                                                                 Note = ""
  2286.  
  2287.                                                                                                 [Unit : cUGetAttackTarget]
  2288.                                                                                                 {
  2289.  
  2290.                                                                                                 }
  2291.                                                                                             }
  2292.                                                                                         }
  2293.                                                                                     }
  2294.                                                                                     [Then *]
  2295.                                                                                     {
  2296.  
  2297.                                                                                         [: cESSubrutine]
  2298.                                                                                         {
  2299.                                                                                             Subrutine = uSub.GTC_Run
  2300.  
  2301.                                                                                         }
  2302.                                                                                     }
  2303.                                                                                     [Else *]
  2304.                                                                                     {
  2305.  
  2306.                                                                                         [: cESLog]
  2307.                                                                                         {
  2308.                                                                                             Text = "TargetCondition = 0; No LOS to AttackTarget"
  2309.  
  2310.                                                                                         }
  2311.                                                                                         [: cESIntToVar]
  2312.                                                                                         {
  2313.                                                                                             VariableName = TargetCondition
  2314.                                                                                             Keep = 0
  2315.  
  2316.                                                                                             [Value : cESFIntConst]
  2317.                                                                                             {
  2318.                                                                                                 Value = 0
  2319.  
  2320.                                                                                             }
  2321.                                                                                         }
  2322.                                                                                     }
  2323.                                                                                 }
  2324.                                                                             }
  2325.                                                                         }
  2326.                                                                     }
  2327.                                                                     [Else *]
  2328.                                                                     {
  2329.  
  2330.                                                                         [: cESSubrutine]
  2331.                                                                         {
  2332.                                                                             Subrutine = uSub.GTC_Turn
  2333.  
  2334.                                                                         }
  2335.                                                                     }
  2336.                                                                 }
  2337.                                                             }
  2338.                                                             [Else *]
  2339.                                                             {
  2340.  
  2341.                                                                 [: cESSubrutine]
  2342.                                                                 {
  2343.                                                                     Subrutine = uSub.GTC_Run
  2344.  
  2345.                                                                 }
  2346.                                                             }
  2347.                                                         }
  2348.                                                     }
  2349.                                                 }
  2350.                                             }
  2351.                                         }
  2352.                                     }
  2353.                                     [Else *]
  2354.                                     {
  2355.  
  2356.                                         [: cESIf]
  2357.                                         {
  2358.                                             Note = "CMD == ASSAULT?"
  2359.  
  2360.                                             [Condition : cESCNumEquals]
  2361.                                             {
  2362.                                                 Note = ""
  2363.  
  2364.                                                 [Value1 : cUGetCommandType]
  2365.                                                 {
  2366.  
  2367.                                                 }
  2368.                                                 [Value2 : cUEnumCommand]
  2369.                                                 {
  2370.                                                     ECommand = 11
  2371.  
  2372.                                                 }
  2373.                                             }
  2374.                                             [Then *]
  2375.                                             {
  2376.  
  2377.                                                 [: cESIf]
  2378.                                                 {
  2379.                                                     Note = "Guard mode?"
  2380.  
  2381.                                                     [Condition : cESCNumEquals]
  2382.                                                     {
  2383.                                                         Note = ""
  2384.  
  2385.                                                         [Value1 : cESFIntFromMember]
  2386.                                                         {
  2387.                                                             VariableName = GuardMode
  2388.  
  2389.                                                             [Object : cGetThisUnit]
  2390.                                                             {
  2391.  
  2392.                                                             }
  2393.                                                         }
  2394.                                                         [Value2 : cESFIntConst]
  2395.                                                         {
  2396.                                                             Value = 1
  2397.  
  2398.                                                         }
  2399.                                                     }
  2400.                                                     [Then *]
  2401.                                                     {
  2402.  
  2403.                                                         [: cESLog]
  2404.                                                         {
  2405.                                                             Text = "TargetCondition = 0; WARNING: Cannot assault in guard mode!"
  2406.  
  2407.                                                         }
  2408.                                                         [: cESIntToVar]
  2409.                                                         {
  2410.                                                             VariableName = TargetCondition
  2411.                                                             Keep = 0
  2412.  
  2413.                                                             [Value : cESFIntConst]
  2414.                                                             {
  2415.                                                                 Value = 0
  2416.  
  2417.                                                             }
  2418.                                                         }
  2419.                                                     }
  2420.                                                     [Else *]
  2421.                                                     {
  2422.  
  2423.                                                         [: cESIf]
  2424.                                                         {
  2425.                                                             Note = "Ha nem mozog:"
  2426.  
  2427.                                                             [Condition : cUIsMoveTargetReached]
  2428.                                                             {
  2429.                                                                 Note = ""
  2430.  
  2431.                                                             }
  2432.                                                             [Then *]
  2433.                                                             {
  2434.  
  2435.                                                                 [: cESIf]
  2436.                                                                 {
  2437.                                                                     Note = "Distance < AssaultRangeMax?"
  2438.  
  2439.                                                                     [Condition : cESCNumLess]
  2440.                                                                     {
  2441.                                                                         Note = ""
  2442.  
  2443.                                                                         [Value1 : cEGetDistance]
  2444.                                                                         {
  2445.  
  2446.                                                                             [Source : cGetThisUnit]
  2447.                                                                             {
  2448.  
  2449.                                                                             }
  2450.                                                                             [Dest : cUGetAttackTarget]
  2451.                                                                             {
  2452.  
  2453.                                                                             }
  2454.                                                                         }
  2455.                                                                         [Value2 : cUGetAssaultRangeMax]
  2456.                                                                         {
  2457.  
  2458.                                                                             [Unit : cGetThisUnit]
  2459.                                                                             {
  2460.  
  2461.                                                                             }
  2462.                                                                         }
  2463.                                                                     }
  2464.                                                                     [Then *]
  2465.                                                                     {
  2466.  
  2467.                                                                         [: cESIf]
  2468.                                                                         {
  2469.                                                                             Note = ""
  2470.  
  2471.                                                                             [Condition : cUIsInShootRange]
  2472.                                                                             {
  2473.                                                                                 Note = ""
  2474.  
  2475.                                                                                 [Target : cUGetAttackTarget]
  2476.                                                                                 {
  2477.  
  2478.                                                                                 }
  2479.                                                                             }
  2480.                                                                             [Then *]
  2481.                                                                             {
  2482.  
  2483.                                                                                 [: cESIf]
  2484.                                                                                 {
  2485.                                                                                     Note = ""
  2486.  
  2487.                                                                                     [Condition : cESCNumLess]
  2488.                                                                                     {
  2489.                                                                                         Note = ""
  2490.  
  2491.                                                                                         [Value1 : cEGetDistance]
  2492.                                                                                         {
  2493.  
  2494.                                                                                             [Source : cGetThisUnit]
  2495.                                                                                             {
  2496.  
  2497.                                                                                             }
  2498.                                                                                             [Dest : cUGetCommandTarget]
  2499.                                                                                             {
  2500.  
  2501.                                                                                             }
  2502.                                                                                         }
  2503.                                                                                         [Value2 : cGGetWeaponMinRange]
  2504.                                                                                         {
  2505.  
  2506.                                                                                             [Squad : NULL]
  2507.                                                                                             {
  2508.  
  2509.                                                                                             }
  2510.                                                                                         }
  2511.                                                                                     }
  2512.                                                                                     [Then *]
  2513.                                                                                     {
  2514.  
  2515.                                                                                         [: cESIntToVar]
  2516.                                                                                         {
  2517.                                                                                             VariableName = TargetCondition
  2518.                                                                                             Keep = 0
  2519.  
  2520.                                                                                             [Value : cESFIntConst]
  2521.                                                                                             {
  2522.                                                                                                 Value = 2
  2523.  
  2524.                                                                                             }
  2525.                                                                                         }
  2526.                                                                                         [: cESLog]
  2527.                                                                                         {
  2528.                                                                                             Text = "TargetCondition = 2"
  2529.  
  2530.                                                                                         }
  2531.                                                                                     }
  2532.                                                                                     [Else *]
  2533.                                                                                     {
  2534.  
  2535.                                                                                         [: cESSubrutine]
  2536.                                                                                         {
  2537.                                                                                             Subrutine = uSub.IsTargetReachable
  2538.  
  2539.                                                                                         }
  2540.                                                                                         [: cESIf]
  2541.                                                                                         {
  2542.                                                                                             Note = ""
  2543.  
  2544.                                                                                             [Condition : cESCNumEquals]
  2545.                                                                                             {
  2546.                                                                                                 Note = ""
  2547.  
  2548.                                                                                                 [Value1 : cESFIntByVar]
  2549.                                                                                                 {
  2550.                                                                                                     VariableName = TargetReachable
  2551.  
  2552.                                                                                                 }
  2553.                                                                                                 [Value2 : cESFIntConst]
  2554.                                                                                                 {
  2555.                                                                                                     Value = 1
  2556.  
  2557.                                                                                                 }
  2558.                                                                                             }
  2559.                                                                                             [Then *]
  2560.                                                                                             {
  2561.  
  2562.                                                                                                 [: cESIf]
  2563.                                                                                                 {
  2564.                                                                                                     Note = "(HasLOF && Visible) || CanShootInvisible"
  2565.  
  2566.                                                                                                     [Condition : cESCOr]
  2567.                                                                                                     {
  2568.                                                                                                         Note = ""
  2569.  
  2570.                                                                                                         [OrConditions *]
  2571.                                                                                                         {
  2572.  
  2573.                                                                                                             [: cESCAnd]
  2574.                                                                                                             {
  2575.                                                                                                                 Note = ""
  2576.  
  2577.                                                                                                                 [AndConditions *]
  2578.                                                                                                                 {
  2579.  
  2580.                                                                                                                     [: cUHasLineOfFire]
  2581.                                                                                                                     {
  2582.                                                                                                                         Note = ""
  2583.  
  2584.                                                                                                                         [Who : cGetThisUnit]
  2585.                                                                                                                         {
  2586.  
  2587.                                                                                                                         }
  2588.                                                                                                                         [At : cUGetAttackTarget]
  2589.                                                                                                                         {
  2590.  
  2591.                                                                                                                         }
  2592.                                                                                                                     }
  2593.                                                                                                                     [: cUIsUnitInLOSBySide]
  2594.                                                                                                                     {
  2595.                                                                                                                         Note = ""
  2596.  
  2597.                                                                                                                         [Unit : cUGetAttackTarget]
  2598.                                                                                                                         {
  2599.  
  2600.                                                                                                                         }
  2601.                                                                                                                     }
  2602.                                                                                                                 }
  2603.                                                                                                             }
  2604.                                                                                                             [: cESCNumEquals]
  2605.                                                                                                             {
  2606.                                                                                                                 Note = ""
  2607.  
  2608.                                                                                                                 [Value1 : cESFIntFromMember]
  2609.                                                                                                                 {
  2610.                                                                                                                     VariableName = CanShootInvisible
  2611.  
  2612.                                                                                                                     [Object : cSGetByThisUnit]
  2613.                                                                                                                     {
  2614.  
  2615.                                                                                                                     }
  2616.                                                                                                                 }
  2617.                                                                                                                 [Value2 : cESFIntConst]
  2618.                                                                                                                 {
  2619.                                                                                                                     Value = 1
  2620.  
  2621.                                                                                                                 }
  2622.                                                                                                             }
  2623.                                                                                                         }
  2624.                                                                                                     }
  2625.                                                                                                     [Then *]
  2626.                                                                                                     {
  2627.  
  2628.                                                                                                         [: cESIntToVar]
  2629.                                                                                                         {
  2630.                                                                                                             VariableName = TargetCondition
  2631.                                                                                                             Keep = 0
  2632.  
  2633.                                                                                                             [Value : cESFIntConst]
  2634.                                                                                                             {
  2635.                                                                                                                 Value = 4
  2636.  
  2637.                                                                                                             }
  2638.                                                                                                         }
  2639.                                                                                                         [: cESLog]
  2640.                                                                                                         {
  2641.                                                                                                             Text = "TargetCondition = 4"
  2642.  
  2643.                                                                                                         }
  2644.                                                                                                     }
  2645.                                                                                                     [Else *]
  2646.                                                                                                     {
  2647.  
  2648.                                                                                                         [: cESIf]
  2649.                                                                                                         {
  2650.                                                                                                             Note = "Visible || 5 m-nel kozelebb vagyunk az utoljara ismert helyetol?"
  2651.  
  2652.                                                                                                             [Condition : cESCOr]
  2653.                                                                                                             {
  2654.                                                                                                                 Note = ""
  2655.  
  2656.                                                                                                                 [OrConditions *]
  2657.                                                                                                                 {
  2658.  
  2659.                                                                                                                     [: cESCNumLess]
  2660.                                                                                                                     {
  2661.                                                                                                                         Note = ""
  2662.  
  2663.                                                                                                                         [Value1 : cEGetDistance]
  2664.                                                                                                                         {
  2665.  
  2666.                                                                                                                             [Source : cGetThisUnit]
  2667.                                                                                                                             {
  2668.  
  2669.                                                                                                                             }
  2670.                                                                                                                             [Dest : cUGetSquadLastKnownTargetPos]
  2671.                                                                                                                             {
  2672.  
  2673.                                                                                                                             }
  2674.                                                                                                                         }
  2675.                                                                                                                         [Value2 : cESFIntConst]
  2676.                                                                                                                         {
  2677.                                                                                                                             Value = 5
  2678.  
  2679.                                                                                                                         }
  2680.                                                                                                                     }
  2681.                                                                                                                     [: cUIsUnitInLOSBySide]
  2682.                                                                                                                     {
  2683.                                                                                                                         Note = ""
  2684.  
  2685.                                                                                                                         [Unit : cUGetAttackTarget]
  2686.                                                                                                                         {
  2687.  
  2688.                                                                                                                         }
  2689.                                                                                                                     }
  2690.                                                                                                                 }
  2691.                                                                                                             }
  2692.                                                                                                             [Then *]
  2693.                                                                                                             {
  2694.  
  2695.                                                                                                                 [: cESLog]
  2696.                                                                                                                 {
  2697.                                                                                                                     Text = "TargetCondition = 0; No LOS to AttackTarget"
  2698.  
  2699.                                                                                                                 }
  2700.                                                                                                                 [: cESIntToVar]
  2701.                                                                                                                 {
  2702.                                                                                                                     VariableName = TargetCondition
  2703.                                                                                                                     Keep = 0
  2704.  
  2705.                                                                                                                     [Value : cESFIntConst]
  2706.                                                                                                                     {
  2707.                                                                                                                         Value = 0
  2708.  
  2709.                                                                                                                     }
  2710.                                                                                                                 }
  2711.                                                                                                             }
  2712.                                                                                                             [Else *]
  2713.                                                                                                             {
  2714.  
  2715.                                                                                                                 [: cESIntToVar]
  2716.                                                                                                                 {
  2717.                                                                                                                     VariableName = TargetCondition
  2718.                                                                                                                     Keep = 0
  2719.  
  2720.                                                                                                                     [Value : cESFIntConst]
  2721.                                                                                                                     {
  2722.                                                                                                                         Value = 1
  2723.  
  2724.                                                                                                                     }
  2725.                                                                                                                 }
  2726.                                                                                                                 [: cESLog]
  2727.                                                                                                                 {
  2728.                                                                                                                     Text = "TargetCondition = 1"
  2729.  
  2730.                                                                                                                 }
  2731.                                                                                                             }
  2732.                                                                                                         }
  2733.                                                                                                     }
  2734.                                                                                                 }
  2735.                                                                                             }
  2736.                                                                                             [Else *]
  2737.                                                                                             {
  2738.  
  2739.                                                                                                 [: cESSubrutine]
  2740.                                                                                                 {
  2741.                                                                                                     Subrutine = uSub.GTC_Turn
  2742.  
  2743.                                                                                                 }
  2744.                                                                                             }
  2745.                                                                                         }
  2746.                                                                                     }
  2747.                                                                                 }
  2748.                                                                             }
  2749.                                                                             [Else *]
  2750.                                                                             {
  2751.  
  2752.                                                                                 [: cESIntToVar]
  2753.                                                                                 {
  2754.                                                                                     VariableName = TargetCondition
  2755.                                                                                     Keep = 0
  2756.  
  2757.                                                                                     [Value : cESFIntConst]
  2758.                                                                                     {
  2759.                                                                                         Value = 1
  2760.  
  2761.                                                                                     }
  2762.                                                                                 }
  2763.                                                                                 [: cESLog]
  2764.                                                                                 {
  2765.                                                                                     Text = "TargetCondition = 1"
  2766.  
  2767.                                                                                 }
  2768.                                                                             }
  2769.                                                                         }
  2770.                                                                     }
  2771.                                                                     [Else *]
  2772.                                                                     {
  2773.  
  2774.                                                                         [: cESIf]
  2775.                                                                         {
  2776.                                                                             Note = ""
  2777.  
  2778.                                                                             [Condition : cUIsInShootRange]
  2779.                                                                             {
  2780.                                                                                 Note = ""
  2781.  
  2782.                                                                                 [Target : cUGetAttackTarget]
  2783.                                                                                 {
  2784.  
  2785.                                                                                 }
  2786.                                                                             }
  2787.                                                                             [Then *]
  2788.                                                                             {
  2789.  
  2790.                                                                                 [: cESIf]
  2791.                                                                                 {
  2792.                                                                                     Note = "State == 0 || State == 1?"
  2793.  
  2794.                                                                                     [Condition : cESCOr]
  2795.                                                                                     {
  2796.                                                                                         Note = ""
  2797.  
  2798.                                                                                         [OrConditions *]
  2799.                                                                                         {
  2800.  
  2801.                                                                                             [: cESCNumEquals]
  2802.                                                                                             {
  2803.                                                                                                 Note = ""
  2804.  
  2805.                                                                                                 [Value1 : cUGetCommandState]
  2806.                                                                                                 {
  2807.  
  2808.                                                                                                 }
  2809.                                                                                                 [Value2 : cESFIntConst]
  2810.                                                                                                 {
  2811.                                                                                                     Value = 0
  2812.  
  2813.                                                                                                 }
  2814.                                                                                             }
  2815.                                                                                             [: cESCNumEquals]
  2816.                                                                                             {
  2817.                                                                                                 Note = ""
  2818.  
  2819.                                                                                                 [Value1 : cUGetCommandState]
  2820.                                                                                                 {
  2821.  
  2822.                                                                                                 }
  2823.                                                                                                 [Value2 : cESFIntConst]
  2824.                                                                                                 {
  2825.                                                                                                     Value = 1
  2826.  
  2827.                                                                                                 }
  2828.                                                                                             }
  2829.                                                                                         }
  2830.                                                                                     }
  2831.                                                                                     [Then *]
  2832.                                                                                     {
  2833.  
  2834.                                                                                         [: cESSubrutine]
  2835.                                                                                         {
  2836.                                                                                             Subrutine = uSub.GTC_Run
  2837.  
  2838.                                                                                         }
  2839.                                                                                     }
  2840.                                                                                     [Else *]
  2841.                                                                                     {
  2842.  
  2843.                                                                                         [: cESSubrutine]
  2844.                                                                                         {
  2845.                                                                                             Subrutine = uSub.IsTargetReachable
  2846.  
  2847.                                                                                         }
  2848.                                                                                         [: cESIf]
  2849.                                                                                         {
  2850.                                                                                             Note = ""
  2851.  
  2852.                                                                                             [Condition : cESCNumEquals]
  2853.                                                                                             {
  2854.                                                                                                 Note = ""
  2855.  
  2856.                                                                                                 [Value1 : cESFIntByVar]
  2857.                                                                                                 {
  2858.                                                                                                     VariableName = TargetReachable
  2859.  
  2860.                                                                                                 }
  2861.                                                                                                 [Value2 : cESFIntConst]
  2862.                                                                                                 {
  2863.                                                                                                     Value = 1
  2864.  
  2865.                                                                                                 }
  2866.                                                                                             }
  2867.                                                                                             [Then *]
  2868.                                                                                             {
  2869.  
  2870.                                                                                                 [: cESIf]
  2871.                                                                                                 {
  2872.                                                                                                     Note = "(HasLOF && Visible) || CanShootInvisible"
  2873.  
  2874.                                                                                                     [Condition : cESCOr]
  2875.                                                                                                     {
  2876.                                                                                                         Note = ""
  2877.  
  2878.                                                                                                         [OrConditions *]
  2879.                                                                                                         {
  2880.  
  2881.                                                                                                             [: cESCAnd]
  2882.                                                                                                             {
  2883.                                                                                                                 Note = ""
  2884.  
  2885.                                                                                                                 [AndConditions *]
  2886.                                                                                                                 {
  2887.  
  2888.                                                                                                                     [: cUHasLineOfFire]
  2889.                                                                                                                     {
  2890.                                                                                                                         Note = ""
  2891.  
  2892.                                                                                                                         [Who : cGetThisUnit]
  2893.                                                                                                                         {
  2894.  
  2895.                                                                                                                         }
  2896.                                                                                                                         [At : cUGetAttackTarget]
  2897.                                                                                                                         {
  2898.  
  2899.                                                                                                                         }
  2900.                                                                                                                     }
  2901.                                                                                                                     [: cUIsUnitInLOSBySide]
  2902.                                                                                                                     {
  2903.                                                                                                                         Note = ""
  2904.  
  2905.                                                                                                                         [Unit : cUGetAttackTarget]
  2906.                                                                                                                         {
  2907.  
  2908.                                                                                                                         }
  2909.                                                                                                                     }
  2910.                                                                                                                 }
  2911.                                                                                                             }
  2912.                                                                                                             [: cESCNumEquals]
  2913.                                                                                                             {
  2914.                                                                                                                 Note = ""
  2915.  
  2916.                                                                                                                 [Value1 : cESFIntFromMember]
  2917.                                                                                                                 {
  2918.                                                                                                                     VariableName = CanShootInvisible
  2919.  
  2920.                                                                                                                     [Object : cSGetByThisUnit]
  2921.                                                                                                                     {
  2922.  
  2923.                                                                                                                     }
  2924.                                                                                                                 }
  2925.                                                                                                                 [Value2 : cESFIntConst]
  2926.                                                                                                                 {
  2927.                                                                                                                     Value = 1
  2928.  
  2929.                                                                                                                 }
  2930.                                                                                                             }
  2931.                                                                                                         }
  2932.                                                                                                     }
  2933.                                                                                                     [Then *]
  2934.                                                                                                     {
  2935.  
  2936.                                                                                                         [: cESIntToVar]
  2937.                                                                                                         {
  2938.                                                                                                             VariableName = TargetCondition
  2939.                                                                                                             Keep = 0
  2940.  
  2941.                                                                                                             [Value : cESFIntConst]
  2942.                                                                                                             {
  2943.                                                                                                                 Value = 4
  2944.  
  2945.                                                                                                             }
  2946.                                                                                                         }
  2947.                                                                                                         [: cESLog]
  2948.                                                                                                         {
  2949.                                                                                                             Text = "TargetCondition = 4"
  2950.  
  2951.                                                                                                         }
  2952.                                                                                                     }
  2953.                                                                                                     [Else *]
  2954.                                                                                                     {
  2955.  
  2956.                                                                                                         [: cESIf]
  2957.                                                                                                         {
  2958.                                                                                                             Note = "Visible || 5 m-nel kozelebb vagyunk az utoljara ismert helyetol?"
  2959.  
  2960.                                                                                                             [Condition : cESCOr]
  2961.                                                                                                             {
  2962.                                                                                                                 Note = ""
  2963.  
  2964.                                                                                                                 [OrConditions *]
  2965.                                                                                                                 {
  2966.  
  2967.                                                                                                                     [: cESCNumLess]
  2968.                                                                                                                     {
  2969.                                                                                                                         Note = ""
  2970.  
  2971.                                                                                                                         [Value1 : cEGetDistance]
  2972.                                                                                                                         {
  2973.  
  2974.                                                                                                                             [Source : cGetThisUnit]
  2975.                                                                                                                             {
  2976.  
  2977.                                                                                                                             }
  2978.                                                                                                                             [Dest : cUGetSquadLastKnownTargetPos]
  2979.                                                                                                                             {
  2980.  
  2981.                                                                                                                             }
  2982.                                                                                                                         }
  2983.                                                                                                                         [Value2 : cESFIntConst]
  2984.                                                                                                                         {
  2985.                                                                                                                             Value = 5
  2986.  
  2987.                                                                                                                         }
  2988.                                                                                                                     }
  2989.                                                                                                                     [: cUIsUnitInLOSBySide]
  2990.                                                                                                                     {
  2991.                                                                                                                         Note = ""
  2992.  
  2993.                                                                                                                         [Unit : cUGetAttackTarget]
  2994.                                                                                                                         {
  2995.  
  2996.                                                                                                                         }
  2997.                                                                                                                     }
  2998.                                                                                                                 }
  2999.                                                                                                             }
  3000.                                                                                                             [Then *]
  3001.                                                                                                             {
  3002.  
  3003.                                                                                                                 [: cESLog]
  3004.                                                                                                                 {
  3005.                                                                                                                     Text = "TargetCondition = 0; No LOS to AttackTarget"
  3006.  
  3007.                                                                                                                 }
  3008.                                                                                                                 [: cESIntToVar]
  3009.                                                                                                                 {
  3010.                                                                                                                     VariableName = TargetCondition
  3011.                                                                                                                     Keep = 0
  3012.  
  3013.                                                                                                                     [Value : cESFIntConst]
  3014.                                                                                                                     {
  3015.                                                                                                                         Value = 0
  3016.  
  3017.                                                                                                                     }
  3018.                                                                                                                 }
  3019.                                                                                                             }
  3020.                                                                                                             [Else *]
  3021.                                                                                                             {
  3022.  
  3023.                                                                                                                 [: cESIntToVar]
  3024.                                                                                                                 {
  3025.                                                                                                                     VariableName = TargetCondition
  3026.                                                                                                                     Keep = 0
  3027.  
  3028.                                                                                                                     [Value : cESFIntConst]
  3029.                                                                                                                     {
  3030.                                                                                                                         Value = 1
  3031.  
  3032.                                                                                                                     }
  3033.                                                                                                                 }
  3034.                                                                                                                 [: cESLog]
  3035.                                                                                                                 {
  3036.                                                                                                                     Text = "TargetCondition = 1"
  3037.  
  3038.                                                                                                                 }
  3039.                                                                                                             }
  3040.                                                                                                         }
  3041.                                                                                                     }
  3042.                                                                                                 }
  3043.                                                                                             }
  3044.                                                                                             [Else *]
  3045.                                                                                             {
  3046.  
  3047.                                                                                                 [: cESSubrutine]
  3048.                                                                                                 {
  3049.                                                                                                     Subrutine = uSub.GTC_Turn
  3050.  
  3051.                                                                                                 }
  3052.                                                                                             }
  3053.                                                                                         }
  3054.                                                                                     }
  3055.                                                                                 }
  3056.                                                                             }
  3057.                                                                             [Else *]
  3058.                                                                             {
  3059.  
  3060.                                                                                 [: cESIntToVar]
  3061.                                                                                 {
  3062.                                                                                     VariableName = TargetCondition
  3063.                                                                                     Keep = 0
  3064.  
  3065.                                                                                     [Value : cESFIntConst]
  3066.                                                                                     {
  3067.                                                                                         Value = 1
  3068.  
  3069.                                                                                     }
  3070.                                                                                 }
  3071.                                                                                 [: cESLog]
  3072.                                                                                 {
  3073.                                                                                     Text = "TargetCondition = 1"
  3074.  
  3075.                                                                                 }
  3076.                                                                             }
  3077.                                                                         }
  3078.                                                                     }
  3079.                                                                 }
  3080.                                                             }
  3081.                                                             [Else *]
  3082.                                                             {
  3083.  
  3084.                                                                 [: cESIf]
  3085.                                                                 {
  3086.                                                                     Note = IsInShootRange?
  3087.  
  3088.                                                                     [Condition : cUIsInShootRange]
  3089.                                                                     {
  3090.                                                                         Note = ""
  3091.  
  3092.                                                                         [Target : cUGetAttackTarget]
  3093.                                                                         {
  3094.  
  3095.                                                                         }
  3096.                                                                     }
  3097.                                                                     [Then *]
  3098.                                                                     {
  3099.  
  3100.                                                                         [: cESIf]
  3101.                                                                         {
  3102.                                                                             Note = "Distance < AssaultRangeMin?"
  3103.  
  3104.                                                                             [Condition : cESCNumLess]
  3105.                                                                             {
  3106.                                                                                 Note = ""
  3107.  
  3108.                                                                                 [Value1 : cEGetDistance]
  3109.                                                                                 {
  3110.  
  3111.                                                                                     [Source : cGetThisUnit]
  3112.                                                                                     {
  3113.  
  3114.                                                                                     }
  3115.                                                                                     [Dest : cUGetAttackTarget]
  3116.                                                                                     {
  3117.  
  3118.                                                                                     }
  3119.                                                                                 }
  3120.                                                                                 [Value2 : cUGetAssaultRangeMin]
  3121.                                                                                 {
  3122.  
  3123.                                                                                     [Unit : cGetThisUnit]
  3124.                                                                                     {
  3125.  
  3126.                                                                                     }
  3127.                                                                                 }
  3128.                                                                             }
  3129.                                                                             [Then *]
  3130.                                                                             {
  3131.  
  3132.                                                                                 [: cESIf]
  3133.                                                                                 {
  3134.                                                                                     Note = "(HasLOF && Visible) || CanShootInvisible"
  3135.  
  3136.                                                                                     [Condition : cESCOr]
  3137.                                                                                     {
  3138.                                                                                         Note = ""
  3139.  
  3140.                                                                                         [OrConditions *]
  3141.                                                                                         {
  3142.  
  3143.                                                                                             [: cESCAnd]
  3144.                                                                                             {
  3145.                                                                                                 Note = ""
  3146.  
  3147.                                                                                                 [AndConditions *]
  3148.                                                                                                 {
  3149.  
  3150.                                                                                                     [: cUHasLineOfFire]
  3151.                                                                                                     {
  3152.                                                                                                         Note = ""
  3153.  
  3154.                                                                                                         [Who : cGetThisUnit]
  3155.                                                                                                         {
  3156.  
  3157.                                                                                                         }
  3158.                                                                                                         [At : cUGetAttackTarget]
  3159.                                                                                                         {
  3160.  
  3161.                                                                                                         }
  3162.                                                                                                     }
  3163.                                                                                                     [: cUIsUnitInLOSBySide]
  3164.                                                                                                     {
  3165.                                                                                                         Note = ""
  3166.  
  3167.                                                                                                         [Unit : cUGetAttackTarget]
  3168.                                                                                                         {
  3169.  
  3170.                                                                                                         }
  3171.                                                                                                     }
  3172.                                                                                                 }
  3173.                                                                                             }
  3174.                                                                                             [: cESCNumEquals]
  3175.                                                                                             {
  3176.                                                                                                 Note = ""
  3177.  
  3178.                                                                                                 [Value1 : cESFIntFromMember]
  3179.                                                                                                 {
  3180.                                                                                                     VariableName = CanShootInvisible
  3181.  
  3182.                                                                                                     [Object : cSGetByThisUnit]
  3183.                                                                                                     {
  3184.  
  3185.                                                                                                     }
  3186.                                                                                                 }
  3187.                                                                                                 [Value2 : cESFIntConst]
  3188.                                                                                                 {
  3189.                                                                                                     Value = 1
  3190.  
  3191.                                                                                                 }
  3192.                                                                                             }
  3193.                                                                                         }
  3194.                                                                                     }
  3195.                                                                                     [Then *]
  3196.                                                                                     {
  3197.  
  3198.                                                                                         [: cESSubrutine]
  3199.                                                                                         {
  3200.                                                                                             Subrutine = uSub.IsTargetReachable
  3201.  
  3202.                                                                                         }
  3203.                                                                                         [: cESIf]
  3204.                                                                                         {
  3205.                                                                                             Note = ""
  3206.  
  3207.                                                                                             [Condition : cESCNumEquals]
  3208.                                                                                             {
  3209.                                                                                                 Note = ""
  3210.  
  3211.                                                                                                 [Value1 : cESFIntByVar]
  3212.                                                                                                 {
  3213.                                                                                                     VariableName = TargetReachable
  3214.  
  3215.                                                                                                 }
  3216.                                                                                                 [Value2 : cESFIntConst]
  3217.                                                                                                 {
  3218.                                                                                                     Value = 1
  3219.  
  3220.                                                                                                 }
  3221.                                                                                             }
  3222.                                                                                             [Then *]
  3223.                                                                                             {
  3224.  
  3225.                                                                                                 [: cESIntToVar]
  3226.                                                                                                 {
  3227.                                                                                                     VariableName = TargetCondition
  3228.                                                                                                     Keep = 0
  3229.  
  3230.                                                                                                     [Value : cESFIntConst]
  3231.                                                                                                     {
  3232.                                                                                                         Value = 4
  3233.  
  3234.                                                                                                     }
  3235.                                                                                                 }
  3236.                                                                                                 [: cESLog]
  3237.                                                                                                 {
  3238.                                                                                                     Text = "TargetCondition = 4"
  3239.  
  3240.                                                                                                 }
  3241.                                                                                             }
  3242.                                                                                             [Else *]
  3243.                                                                                             {
  3244.  
  3245.                                                                                                 [: cESSubrutine]
  3246.                                                                                                 {
  3247.                                                                                                     Subrutine = uSub.GTC_Turn
  3248.  
  3249.                                                                                                 }
  3250.                                                                                             }
  3251.                                                                                         }
  3252.                                                                                     }
  3253.                                                                                     [Else *]
  3254.                                                                                     {
  3255.  
  3256.                                                                                         [: cESIf]
  3257.                                                                                         {
  3258.                                                                                             Note = "Visible || 5 m-nel kozelebb vagyunk az utoljara ismert helyetol?"
  3259.  
  3260.                                                                                             [Condition : cESCOr]
  3261.                                                                                             {
  3262.                                                                                                 Note = ""
  3263.  
  3264.                                                                                                 [OrConditions *]
  3265.                                                                                                 {
  3266.  
  3267.                                                                                                     [: cESCNumLess]
  3268.                                                                                                     {
  3269.                                                                                                         Note = ""
  3270.  
  3271.                                                                                                         [Value1 : cEGetDistance]
  3272.                                                                                                         {
  3273.  
  3274.                                                                                                             [Source : cGetThisUnit]
  3275.                                                                                                             {
  3276.  
  3277.                                                                                                             }
  3278.                                                                                                             [Dest : cUGetSquadLastKnownTargetPos]
  3279.                                                                                                             {
  3280.  
  3281.                                                                                                             }
  3282.                                                                                                         }
  3283.                                                                                                         [Value2 : cESFIntConst]
  3284.                                                                                                         {
  3285.                                                                                                             Value = 5
  3286.  
  3287.                                                                                                         }
  3288.                                                                                                     }
  3289.                                                                                                     [: cUIsUnitInLOSBySide]
  3290.                                                                                                     {
  3291.                                                                                                         Note = ""
  3292.  
  3293.                                                                                                         [Unit : cUGetAttackTarget]
  3294.                                                                                                         {
  3295.  
  3296.                                                                                                         }
  3297.                                                                                                     }
  3298.                                                                                                 }
  3299.                                                                                             }
  3300.                                                                                             [Then *]
  3301.                                                                                             {
  3302.  
  3303.                                                                                                 [: cESLog]
  3304.                                                                                                 {
  3305.                                                                                                     Text = "TargetCondition = 0; No LOS to AttackTarget"
  3306.  
  3307.                                                                                                 }
  3308.                                                                                                 [: cESIntToVar]
  3309.                                                                                                 {
  3310.                                                                                                     VariableName = TargetCondition
  3311.                                                                                                     Keep = 0
  3312.  
  3313.                                                                                                     [Value : cESFIntConst]
  3314.                                                                                                     {
  3315.                                                                                                         Value = 0
  3316.  
  3317.                                                                                                     }
  3318.                                                                                                 }
  3319.                                                                                             }
  3320.                                                                                             [Else *]
  3321.                                                                                             {
  3322.  
  3323.                                                                                                 [: cESIntToVar]
  3324.                                                                                                 {
  3325.                                                                                                     VariableName = TargetCondition
  3326.                                                                                                     Keep = 0
  3327.  
  3328.                                                                                                     [Value : cESFIntConst]
  3329.                                                                                                     {
  3330.                                                                                                         Value = 1
  3331.  
  3332.                                                                                                     }
  3333.                                                                                                 }
  3334.                                                                                                 [: cESLog]
  3335.                                                                                                 {
  3336.                                                                                                     Text = "TargetCondition = 1"
  3337.  
  3338.                                                                                                 }
  3339.                                                                                             }
  3340.                                                                                         }
  3341.                                                                                     }
  3342.                                                                                 }
  3343.                                                                             }
  3344.                                                                             [Else *]
  3345.                                                                             {
  3346.  
  3347.                                                                                 [: cESSubrutine]
  3348.                                                                                 {
  3349.                                                                                     Subrutine = uSub.GTC_Run
  3350.  
  3351.                                                                                 }
  3352.                                                                             }
  3353.                                                                         }
  3354.                                                                     }
  3355.                                                                     [Else *]
  3356.                                                                     {
  3357.  
  3358.                                                                         [: cESIntToVar]
  3359.                                                                         {
  3360.                                                                             VariableName = TargetCondition
  3361.                                                                             Keep = 0
  3362.  
  3363.                                                                             [Value : cESFIntConst]
  3364.                                                                             {
  3365.                                                                                 Value = 1
  3366.  
  3367.                                                                             }
  3368.                                                                         }
  3369.                                                                         [: cESLog]
  3370.                                                                         {
  3371.                                                                             Text = "TargetCondition = 1"
  3372.  
  3373.                                                                         }
  3374.                                                                     }
  3375.                                                                 }
  3376.                                                             }
  3377.                                                         }
  3378.                                                     }
  3379.                                                 }
  3380.                                             }
  3381.                                             [Else *]
  3382.                                             {
  3383.  
  3384.                                             }
  3385.                                         }
  3386.                                     }
  3387.                                 }
  3388.                             }
  3389.                         }
  3390.                     }
  3391.                 }
  3392.             }
  3393.         }
  3394.     }
  3395. }
  3396.