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

  1.  
  2. [uSub.SMS_Move/All : cESEvent]
  3. {
  4.     Name = uSub.SMS_Move/All
  5.     Enabled = 1
  6.     Type = 2
  7.     RefreshRate = 0
  8.  
  9.     [Procedures *]
  10.     {
  11.  
  12.         [: cESSwitch]
  13.         {
  14.             Note = "Switch on CommandSubState"
  15.  
  16.             [Value : cUGetCommandSubState]
  17.             {
  18.  
  19.             }
  20.             [Case *]
  21.             {
  22.  
  23.                 [: cESCase]
  24.                 {
  25.                     Note = "0 - Start"
  26.                     Value = 0
  27.  
  28.                     [Procedures *]
  29.                     {
  30.  
  31.                         [: cESIf]
  32.                         {
  33.                             Note = ""
  34.  
  35.                             [Condition : cUIsUserCommand]
  36.                             {
  37.                                 Note = ""
  38.  
  39.                             }
  40.                             [Then *]
  41.                             {
  42.  
  43.                                 [: cUSetCommandSubState]
  44.                                 {
  45.  
  46.                                     [State : cESFIntConst]
  47.                                     {
  48.                                         Value = -1
  49.  
  50.                                     }
  51.                                 }
  52.                             }
  53.                             [Else *]
  54.                             {
  55.  
  56.                                 [: cESIf]
  57.                                 {
  58.                                     Note = "Tavol van?"
  59.  
  60.                                     [Condition : cESCNumGreater]
  61.                                     {
  62.                                         Note = ""
  63.  
  64.                                         [Value1 : cEGetDistance]
  65.                                         {
  66.  
  67.                                             [Source : cSGetByThisUnit]
  68.                                             {
  69.  
  70.                                             }
  71.                                             [Dest : cUGetCommandTarget]
  72.                                             {
  73.  
  74.                                             }
  75.                                         }
  76.                                         [Value2 : cESGetGlobalParameter]
  77.                                         {
  78.                                             ParamName = distance_move_running
  79.  
  80.                                         }
  81.                                     }
  82.                                     [Then *]
  83.                                     {
  84.  
  85.                                         [: cESIf]
  86.                                         {
  87.                                             Note = ""
  88.  
  89.                                             [Condition : cSIsEventInRegistry]
  90.                                             {
  91.                                                 Note = ""
  92.                                                 Type = 5
  93.  
  94.                                                 [Squad : cSGetByThisUnit]
  95.                                                 {
  96.  
  97.                                                 }
  98.                                                 [Entity : cSGetByThisUnit]
  99.                                                 {
  100.  
  101.                                                 }
  102.                                             }
  103.                                             [Then *]
  104.                                             {
  105.  
  106.                                                 [: cUSetCommandSubState]
  107.                                                 {
  108.  
  109.                                                     [State : cESFIntConst]
  110.                                                     {
  111.                                                         Value = -1
  112.  
  113.                                                     }
  114.                                                 }
  115.                                             }
  116.                                             [Else *]
  117.                                             {
  118.  
  119.                                                 [: cESIf]
  120.                                                 {
  121.                                                     Note = "Ha lottek ra mostanaban"
  122.  
  123.                                                     [Condition : cSIsEventInRegistry]
  124.                                                     {
  125.                                                         Note = ""
  126.                                                         Type = 8
  127.  
  128.                                                         [Squad : cSGetByThisUnit]
  129.                                                         {
  130.  
  131.                                                         }
  132.                                                         [Entity : cSGetByThisUnit]
  133.                                                         {
  134.  
  135.                                                         }
  136.                                                     }
  137.                                                     [Then *]
  138.                                                     {
  139.  
  140.                                                         [: cUSetCommandSubState]
  141.                                                         {
  142.  
  143.                                                             [State : cESFIntConst]
  144.                                                             {
  145.                                                                 Value = -1
  146.  
  147.                                                             }
  148.                                                         }
  149.                                                     }
  150.                                                     [Else *]
  151.                                                     {
  152.  
  153.                                                         [: cESLog]
  154.                                                         {
  155.                                                             Text = "Change movement style for move. Because I'm not under attack, I switch to FAST"
  156.  
  157.                                                         }
  158.                                                         [: cUSetMovementStyle]
  159.                                                         {
  160.                                                             Style = 3
  161.  
  162.                                                             [Unit : cGetThisUnit]
  163.                                                             {
  164.  
  165.                                                             }
  166.                                                         }
  167.                                                         [: cUSetCommandSubState]
  168.                                                         {
  169.  
  170.                                                             [State : cESFIntConst]
  171.                                                             {
  172.                                                                 Value = 1
  173.  
  174.                                                             }
  175.                                                         }
  176.                                                     }
  177.                                                 }
  178.                                             }
  179.                                         }
  180.                                     }
  181.                                     [Else *]
  182.                                     {
  183.  
  184.                                         [: cUSetCommandSubState]
  185.                                         {
  186.  
  187.                                             [State : cESFIntConst]
  188.                                             {
  189.                                                 Value = -1
  190.  
  191.                                             }
  192.                                         }
  193.                                     }
  194.                                 }
  195.                             }
  196.                         }
  197.                     }
  198.                 }
  199.                 [: cESCase]
  200.                 {
  201.                     Note = "1 - Wait for finish"
  202.                     Value = 1
  203.  
  204.                     [Procedures *]
  205.                     {
  206.  
  207.                         [: cESIf]
  208.                         {
  209.                             Note = ""
  210.  
  211.                             [Condition : cESCNumEquals]
  212.                             {
  213.                                 Note = ""
  214.  
  215.                                 [Value1 : cUGetMovementStyle]
  216.                                 {
  217.  
  218.                                 }
  219.                                 [Value2 : cUEnumMovementStyle]
  220.                                 {
  221.                                     EMovementStyle = 3
  222.  
  223.                                 }
  224.                             }
  225.                             [Then *]
  226.                             {
  227.  
  228.                                 [: cUSetCommandSubState]
  229.                                 {
  230.  
  231.                                     [State : cESFIntConst]
  232.                                     {
  233.                                         Value = -1
  234.  
  235.                                     }
  236.                                 }
  237.                             }
  238.                             [Else *]
  239.                             {
  240.  
  241.                             }
  242.                         }
  243.                     }
  244.                 }
  245.             }
  246.         }
  247.     }
  248. }
  249.