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_Assault-All.inf < prev    next >
INI File  |  2002-10-14  |  2KB  |  149 lines

  1.  
  2. [uSub.SMS_Assault/All : cESEvent]
  3. {
  4.     Name = uSub.SMS_Assault/All
  5.     Enabled = 1
  6.     Type = 2
  7.     RefreshRate = 0
  8.  
  9.     [Procedures *]
  10.     {
  11.  
  12.         [: cESIf]
  13.         {
  14.             Note = ""
  15.  
  16.             [Condition : cESCNumGreater]
  17.             {
  18.                 Note = ""
  19.  
  20.                 [Value1 : cEGetDistance]
  21.                 {
  22.  
  23.                     [Source : cGetThisUnit]
  24.                     {
  25.  
  26.                     }
  27.                     [Dest : cUGetSquadLastKnownTargetPos]
  28.                     {
  29.  
  30.                     }
  31.                 }
  32.                 [Value2 : cESGetGlobalParameter]
  33.                 {
  34.                     ParamName = distance_assault_running
  35.  
  36.                 }
  37.             }
  38.             [Then *]
  39.             {
  40.  
  41.                 [: cESIf]
  42.                 {
  43.                     Note = Running?
  44.  
  45.                     [Condition : cESCNumEquals]
  46.                     {
  47.                         Note = ""
  48.  
  49.                         [Value1 : cUGetMovementStyle]
  50.                         {
  51.  
  52.                         }
  53.                         [Value2 : cUEnumMovementStyle]
  54.                         {
  55.                             EMovementStyle = 3
  56.  
  57.                         }
  58.                     }
  59.                     [Then *]
  60.                     {
  61.  
  62.                         [: cUSetCommandSubState]
  63.                         {
  64.  
  65.                             [State : cESFIntConst]
  66.                             {
  67.                                 Value = -1
  68.  
  69.                             }
  70.                         }
  71.                     }
  72.                     [Else *]
  73.                     {
  74.  
  75.                         [: cESLog]
  76.                         {
  77.                             Text = "Too far: switching to FAST."
  78.  
  79.                         }
  80.                         [: cUSetMovementStyle]
  81.                         {
  82.                             Style = 3
  83.  
  84.                             [Unit : cGetThisUnit]
  85.                             {
  86.  
  87.                             }
  88.                         }
  89.                     }
  90.                 }
  91.             }
  92.             [Else *]
  93.             {
  94.  
  95.                 [: cESIf]
  96.                 {
  97.                     Note = Normal?
  98.  
  99.                     [Condition : cESCNumEquals]
  100.                     {
  101.                         Note = ""
  102.  
  103.                         [Value1 : cUGetMovementStyle]
  104.                         {
  105.  
  106.                         }
  107.                         [Value2 : cUEnumMovementStyle]
  108.                         {
  109.                             EMovementStyle = 2
  110.  
  111.                         }
  112.                     }
  113.                     [Then *]
  114.                     {
  115.  
  116.                         [: cUSetMovementStyle]
  117.                         {
  118.                             Style = 3
  119.  
  120.                             [Unit : cGetThisUnit]
  121.                             {
  122.  
  123.                             }
  124.                         }
  125.                         [: cESLog]
  126.                         {
  127.                             Text = "AI doesn't use NORMAL: switching to FAST."
  128.  
  129.                         }
  130.                     }
  131.                     [Else *]
  132.                     {
  133.  
  134.                         [: cUSetCommandSubState]
  135.                         {
  136.  
  137.                             [State : cESFIntConst]
  138.                             {
  139.                                 Value = -1
  140.  
  141.                             }
  142.                         }
  143.                     }
  144.                 }
  145.             }
  146.         }
  147.     }
  148. }
  149.