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

  1.  
  2. [uCmd.UnmountSoldier : cESEvent]
  3. {
  4.     Name = uCmd.UnmountSoldier
  5.     Enabled = 1
  6.     Type = 1
  7.     RefreshRate = 0
  8.  
  9.     [Procedures *]
  10.     {
  11.  
  12.         [: cESNote]
  13.         {
  14.             Text = "Made by Snowman"
  15.  
  16.         }
  17.         [: cESIf]
  18.         {
  19.             Note = "CommandType == UNMOUNT"
  20.  
  21.             [Condition : cESCNumEquals]
  22.             {
  23.                 Note = ""
  24.  
  25.                 [Value1 : cUGetCommandType]
  26.                 {
  27.  
  28.                 }
  29.                 [Value2 : cUEnumCommand]
  30.                 {
  31.                     ECommand = 23
  32.  
  33.                 }
  34.             }
  35.             [Then *]
  36.             {
  37.  
  38.                 [: cESIf]
  39.                 {
  40.                     Note = "CommandState == 0 / Set Delay"
  41.  
  42.                     [Condition : cESCNumEquals]
  43.                     {
  44.                         Note = ""
  45.  
  46.                         [Value1 : cUGetCommandState]
  47.                         {
  48.  
  49.                         }
  50.                         [Value2 : cESFIntConst]
  51.                         {
  52.                             Value = 0
  53.  
  54.                         }
  55.                     }
  56.                     [Then *]
  57.                     {
  58.  
  59.                         [: cUSetCommandIntParam]
  60.                         {
  61.  
  62.                             [Value : cESFIntAdd]
  63.                             {
  64.  
  65.                                 [Variable1 : cESFIntMul]
  66.                                 {
  67.  
  68.                                     [Variable1 : cUGetMountOrder]
  69.                                     {
  70.  
  71.                                         [Vehicle : cUGetCommandTarget]
  72.                                         {
  73.  
  74.                                         }
  75.                                         [Passenger : cGetThisUnit]
  76.                                         {
  77.  
  78.                                         }
  79.                                     }
  80.                                     [Variable2 : cESFIntConst]
  81.                                     {
  82.                                         Value = 10
  83.  
  84.                                     }
  85.                                 }
  86.                                 [Variable2 : cESFIntConst]
  87.                                 {
  88.                                     Value = 1
  89.  
  90.                                 }
  91.                             }
  92.                         }
  93.                         [: cUSetCommandState]
  94.                         {
  95.  
  96.                             [State : cESFIntConst]
  97.                             {
  98.                                 Value = 1
  99.  
  100.                             }
  101.                         }
  102.                         [: cSEnablePlayerControl]
  103.                         {
  104.                             Enabled = 0
  105.                             AutoEnable = 1
  106.                             ClearSelection = 0
  107.  
  108.                             [Squad : cSGetByThisUnit]
  109.                             {
  110.  
  111.                             }
  112.                         }
  113.                     }
  114.                     [Else *]
  115.                     {
  116.  
  117.                     }
  118.                 }
  119.                 [: cESIf]
  120.                 {
  121.                     Note = "CommandState == 1 / waiting for timer"
  122.  
  123.                     [Condition : cESCNumEquals]
  124.                     {
  125.                         Note = ""
  126.  
  127.                         [Value1 : cUGetCommandState]
  128.                         {
  129.  
  130.                         }
  131.                         [Value2 : cESFIntConst]
  132.                         {
  133.                             Value = 1
  134.  
  135.                         }
  136.                     }
  137.                     [Then *]
  138.                     {
  139.  
  140.                         [: cESIf]
  141.                         {
  142.                             Note = "CommandIntParam == 0 / Unmount"
  143.  
  144.                             [Condition : cESCNumEquals]
  145.                             {
  146.                                 Note = ""
  147.  
  148.                                 [Value1 : cUGetCommandIntParam]
  149.                                 {
  150.  
  151.                                 }
  152.                                 [Value2 : cESFIntConst]
  153.                                 {
  154.                                     Value = 0
  155.  
  156.                                 }
  157.                             }
  158.                             [Then *]
  159.                             {
  160.  
  161.                                 [: cUSetCommandState]
  162.                                 {
  163.  
  164.                                     [State : cESFIntConst]
  165.                                     {
  166.                                         Value = 2
  167.  
  168.                                     }
  169.                                 }
  170.                                 [: cUSetMoveTarget]
  171.                                 {
  172.                                     Translate = 1
  173.  
  174.                                     [Target : cUGetCommandTarget]
  175.                                     {
  176.  
  177.                                     }
  178.                                 }
  179.                                 [: cUUnmountSoldier]
  180.                                 {
  181.  
  182.                                     [Target : cUGetCommandTarget]
  183.                                     {
  184.  
  185.                                     }
  186.                                 }
  187.                             }
  188.                             [Else *]
  189.                             {
  190.  
  191.                             }
  192.                         }
  193.                         [: cEFreeze]
  194.                         {
  195.                             GroupName = ""
  196.                             Time = 10
  197.  
  198.                             [Target : cUGetCommandTarget]
  199.                             {
  200.  
  201.                             }
  202.                         }
  203.                     }
  204.                     [Else *]
  205.                     {
  206.  
  207.                     }
  208.                 }
  209.                 [: cESIf]
  210.                 {
  211.                     Note = "CommandState == 2"
  212.  
  213.                     [Condition : cESCNumEquals]
  214.                     {
  215.                         Note = ""
  216.  
  217.                         [Value1 : cUGetCommandState]
  218.                         {
  219.  
  220.                         }
  221.                         [Value2 : cESFIntConst]
  222.                         {
  223.                             Value = 2
  224.  
  225.                         }
  226.                     }
  227.                     [Then *]
  228.                     {
  229.  
  230.                         [: cESIf]
  231.                         {
  232.                             Note = ""
  233.  
  234.                             [Condition : cUIsMoveTargetReached]
  235.                             {
  236.                                 Note = ""
  237.  
  238.                             }
  239.                             [Then *]
  240.                             {
  241.  
  242.                                 [: cUCommandCompleted]
  243.                                 {
  244.  
  245.                                 }
  246.                             }
  247.                             [Else *]
  248.                             {
  249.  
  250.                             }
  251.                         }
  252.                     }
  253.                     [Else *]
  254.                     {
  255.  
  256.                     }
  257.                 }
  258.                 [: cUDecIntParam]
  259.                 {
  260.                     Value = 1
  261.  
  262.                 }
  263.             }
  264.             [Else *]
  265.             {
  266.  
  267.             }
  268.         }
  269.     }
  270. }
  271.