home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2002 December / JOY143_CD1.iso / Data / Demos / Platoon / pl_demo.exe / Inf / Gamelogic / GameEvents / Goal.Fire_Sniper_All_A.Exec.inf < prev    next >
INI File  |  2002-10-14  |  3KB  |  215 lines

  1.  
  2. [Goal.Fire_Sniper_All_A.Exec : cESEvent]
  3. {
  4.     Name = Goal.Fire_Sniper_All_A.Exec
  5.     Enabled = 1
  6.     Type = 4
  7.     RefreshRate = 0
  8.  
  9.     [Procedures *]
  10.     {
  11.  
  12.         [: cESIf]
  13.         {
  14.             Note = ""
  15.  
  16.             [Condition : cESCOr]
  17.             {
  18.                 Note = ""
  19.  
  20.                 [OrConditions *]
  21.                 {
  22.  
  23.                     [: cESCNumEquals]
  24.                     {
  25.                         Note = ""
  26.  
  27.                         [Value1 : cSGetGoalState]
  28.                         {
  29.  
  30.                         }
  31.                         [Value2 : cESFIntConst]
  32.                         {
  33.                             Value = 0
  34.  
  35.                         }
  36.                     }
  37.                     [: cESCNumEquals]
  38.                     {
  39.                         Note = ""
  40.  
  41.                         [Value1 : cESFIntByVar]
  42.                         {
  43.                             VariableName = SquadToAttackChanged
  44.  
  45.                         }
  46.                         [Value2 : cESFIntConst]
  47.                         {
  48.                             Value = 1
  49.  
  50.                         }
  51.                     }
  52.                 }
  53.             }
  54.             [Then *]
  55.             {
  56.  
  57.                 [: cSSetGoalState]
  58.                 {
  59.  
  60.                     [State : cESFIntConst]
  61.                     {
  62.                         Value = 1
  63.  
  64.                     }
  65.                 }
  66.                 [: cESNote]
  67.                 {
  68.                     Text = "2 = Sniper"
  69.  
  70.                 }
  71.                 [: cESLog]
  72.                 {
  73.                     Text = "Fire command issued"
  74.  
  75.                 }
  76.                 [: cESIf]
  77.                 {
  78.                     Note = ""
  79.  
  80.                     [Condition : cESCNot]
  81.                     {
  82.                         Note = ""
  83.  
  84.                         [Condition : cMIsEmptyTarget]
  85.                         {
  86.                             Note = ""
  87.  
  88.                             [Target : cSRetrieveCmdTarget]
  89.                             {
  90.                                 VarName = SquadToAttack
  91.  
  92.                             }
  93.                         }
  94.                     }
  95.                     [Then *]
  96.                     {
  97.  
  98.                         [: cESIf]
  99.                         {
  100.                             Note = ""
  101.  
  102.                             [Condition : cSIsEventInRegistry]
  103.                             {
  104.                                 Note = ""
  105.                                 Type = 16
  106.  
  107.                                 [Squad : cSGetByThisSquad]
  108.                                 {
  109.  
  110.                                 }
  111.                                 [Entity : cSGetByThisSquad]
  112.                                 {
  113.  
  114.                                 }
  115.                             }
  116.                             [Then *]
  117.                             {
  118.  
  119.                                 [: cCGeneral]
  120.                                 {
  121.                                     Type = 1
  122.                                     CommandDelay = 1
  123.                                     Command = 7
  124.  
  125.                                     [Squad : cSGetByThisSquad]
  126.                                     {
  127.  
  128.                                     }
  129.                                     [Target : cSRetrieveCmdTarget]
  130.                                     {
  131.                                         VarName = SquadToAttack
  132.  
  133.                                     }
  134.                                     [IntParam : cESFIntConst]
  135.                                     {
  136.                                         Value = 2
  137.  
  138.                                     }
  139.                                 }
  140.                             }
  141.                             [Else *]
  142.                             {
  143.  
  144.                                 [: cCGeneral]
  145.                                 {
  146.                                     Type = 1
  147.                                     CommandDelay = 8
  148.                                     Command = 7
  149.  
  150.                                     [Squad : cSGetByThisSquad]
  151.                                     {
  152.  
  153.                                     }
  154.                                     [Target : cSRetrieveCmdTarget]
  155.                                     {
  156.                                         VarName = SquadToAttack
  157.  
  158.                                     }
  159.                                     [IntParam : cESFIntConst]
  160.                                     {
  161.                                         Value = 2
  162.  
  163.                                     }
  164.                                 }
  165.                             }
  166.                         }
  167.                         [: cSRegisterEvent]
  168.                         {
  169.                             EventType = 16
  170.  
  171.                             [Entity : cSGetByThisSquad]
  172.                             {
  173.  
  174.                             }
  175.                             [LifeTime : cESFIntAdd]
  176.                             {
  177.  
  178.                                 [Variable1 : cESGetGlobalParameter]
  179.                                 {
  180.                                     ParamName = time_to_choose_new_target
  181.  
  182.                                 }
  183.                                 [Variable2 : cESFIntConst]
  184.                                 {
  185.                                     Value = 2
  186.  
  187.                                 }
  188.                             }
  189.                         }
  190.                     }
  191.                     [Else *]
  192.                     {
  193.  
  194.                     }
  195.                 }
  196.                 [: cUStoreCmdTarget]
  197.                 {
  198.                     VarName = LastAttackedTarget
  199.                     LocalVar = 0
  200.  
  201.                     [Target : cSRetrieveCmdTarget]
  202.                     {
  203.                         VarName = SquadToAttack
  204.  
  205.                     }
  206.                 }
  207.             }
  208.             [Else *]
  209.             {
  210.  
  211.             }
  212.         }
  213.     }
  214. }
  215.