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

  1.  
  2. [uCmd.Move : cESEvent]
  3. {
  4.     Name = uCmd.Move
  5.     Enabled = 1
  6.     Type = 1
  7.     RefreshRate = 0
  8.  
  9.     [Procedures *]
  10.     {
  11.  
  12.         [: cESIf]
  13.         {
  14.             Note = "Ha MOVE commandot kapott..."
  15.  
  16.             [Condition : cESCNumEquals]
  17.             {
  18.                 Note = ""
  19.  
  20.                 [Value1 : cUGetCommandType]
  21.                 {
  22.  
  23.                 }
  24.                 [Value2 : cUEnumCommand]
  25.                 {
  26.                     ECommand = 1
  27.  
  28.                 }
  29.             }
  30.             [Then *]
  31.             {
  32.  
  33.                 [: cESSwitch]
  34.                 {
  35.                     Note = "Switch on CommandState"
  36.  
  37.                     [Value : cUGetCommandState]
  38.                     {
  39.  
  40.                     }
  41.                     [Case *]
  42.                     {
  43.  
  44.                         [: cESCase]
  45.                         {
  46.                             Note = "0 - SMS"
  47.                             Value = 0
  48.  
  49.                             [Procedures *]
  50.                             {
  51.  
  52.                                 [: cESSubrutine]
  53.                                 {
  54.                                     Subrutine = uSub.SMS_Move
  55.  
  56.                                 }
  57.                                 [: cESIf]
  58.                                 {
  59.                                     Note = ""
  60.  
  61.                                     [Condition : cESCNumEquals]
  62.                                     {
  63.                                         Note = ""
  64.  
  65.                                         [Value1 : cUGetCommandSubState]
  66.                                         {
  67.  
  68.                                         }
  69.                                         [Value2 : cESFIntConst]
  70.                                         {
  71.                                             Value = -1
  72.  
  73.                                         }
  74.                                     }
  75.                                     [Then *]
  76.                                     {
  77.  
  78.                                         [: cUSetMoveTarget]
  79.                                         {
  80.                                             Translate = 1
  81.  
  82.                                             [Target : cUGetCommandTarget]
  83.                                             {
  84.  
  85.                                             }
  86.                                         }
  87.                                         [: cESIf]
  88.                                         {
  89.                                             Note = "Var a megerkezesre, vagy rogton visszalep, ha NeverStop == TRUE"
  90.  
  91.                                             [Condition : cESCNumEquals]
  92.                                             {
  93.                                                 Note = ""
  94.  
  95.                                                 [Value1 : cESFIntFromMember]
  96.                                                 {
  97.                                                     VariableName = StopBeforeFireCommand
  98.  
  99.                                                     [Object : cSGetByThisUnit]
  100.                                                     {
  101.  
  102.                                                     }
  103.                                                 }
  104.                                                 [Value2 : cESFIntConst]
  105.                                                 {
  106.                                                     Value = 1
  107.  
  108.                                                 }
  109.                                             }
  110.                                             [Then *]
  111.                                             {
  112.  
  113.                                                 [: cUSetCommandState]
  114.                                                 {
  115.  
  116.                                                     [State : cESFIntConst]
  117.                                                     {
  118.                                                         Value = 1
  119.  
  120.                                                     }
  121.                                                 }
  122.                                             }
  123.                                             [Else *]
  124.                                             {
  125.  
  126.                                                 [: cUCommandCompleted]
  127.                                                 {
  128.  
  129.                                                 }
  130.                                             }
  131.                                         }
  132.                                     }
  133.                                     [Else *]
  134.                                     {
  135.  
  136.                                     }
  137.                                 }
  138.                             }
  139.                         }
  140.                         [: cESCase]
  141.                         {
  142.                             Note = "1 - Wait for arrival"
  143.                             Value = 1
  144.  
  145.                             [Procedures *]
  146.                             {
  147.  
  148.                                 [: cESIf]
  149.                                 {
  150.                                     Note = ""
  151.  
  152.                                     [Condition : cUIsMoveTargetReached]
  153.                                     {
  154.                                         Note = ""
  155.  
  156.                                     }
  157.                                     [Then *]
  158.                                     {
  159.  
  160.                                         [: cUStop]
  161.                                         {
  162.  
  163.                                             [Entity : cGetThisUnit]
  164.                                             {
  165.  
  166.                                             }
  167.                                         }
  168.                                         [: cUCommandCompleted]
  169.                                         {
  170.  
  171.                                         }
  172.                                         [: cUTurnToFormationAngle]
  173.                                         {
  174.  
  175.                                         }
  176.                                     }
  177.                                     [Else *]
  178.                                     {
  179.  
  180.                                     }
  181.                                 }
  182.                             }
  183.                         }
  184.                     }
  185.                 }
  186.             }
  187.             [Else *]
  188.             {
  189.  
  190.             }
  191.         }
  192.     }
  193. }
  194.