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-CanNotMoveCrawling.inf < prev    next >
INI File  |  2002-10-14  |  5KB  |  313 lines

  1.  
  2. [uSub.SMS_Move/CanNotMoveCrawling : cESEvent]
  3. {
  4.     Name = uSub.SMS_Move/CanNotMoveCrawling
  5.     Enabled = 1
  6.     Type = 2
  7.     RefreshRate = 0
  8.  
  9.     [Procedures *]
  10.     {
  11.  
  12.         [: cESIf]
  13.         {
  14.             Note = "All vagy fut?"
  15.  
  16.             [Condition : cESCNumNotEquals]
  17.             {
  18.                 Note = ""
  19.  
  20.                 [Value1 : cUGetMovementStyle]
  21.                 {
  22.  
  23.                 }
  24.                 [Value2 : cUEnumMovementStyle]
  25.                 {
  26.                     EMovementStyle = 1
  27.  
  28.                 }
  29.             }
  30.             [Then *]
  31.             {
  32.  
  33.                 [: cUSetCommandSubState]
  34.                 {
  35.  
  36.                     [State : cESFIntConst]
  37.                     {
  38.                         Value = -1
  39.  
  40.                     }
  41.                 }
  42.             }
  43.             [Else *]
  44.             {
  45.  
  46.                 [: cESSwitch]
  47.                 {
  48.                     Note = "Switch on CommandState"
  49.  
  50.                     [Value : cUGetCommandSubState]
  51.                     {
  52.  
  53.                     }
  54.                     [Case *]
  55.                     {
  56.  
  57.                         [: cESCase]
  58.                         {
  59.                             Note = "0 - start"
  60.                             Value = 0
  61.  
  62.                             [Procedures *]
  63.                             {
  64.  
  65.                                 [: cESIf]
  66.                                 {
  67.                                     Note = ""
  68.  
  69.                                     [Condition : cUIsUserCommand]
  70.                                     {
  71.                                         Note = ""
  72.  
  73.                                     }
  74.                                     [Then *]
  75.                                     {
  76.  
  77.                                         [: cESIf]
  78.                                         {
  79.                                             Note = "Is Crawling? !!!"
  80.  
  81.                                             [Condition : cESCNumEquals]
  82.                                             {
  83.                                                 Note = ""
  84.  
  85.                                                 [Value1 : cUGetMovementStyle]
  86.                                                 {
  87.  
  88.                                                 }
  89.                                                 [Value2 : cUEnumMovementStyle]
  90.                                                 {
  91.                                                     EMovementStyle = 1
  92.  
  93.                                                 }
  94.                                             }
  95.                                             [Then *]
  96.                                             {
  97.  
  98.                                                 [: cUSetMovementStyle]
  99.                                                 {
  100.                                                     Style = 2
  101.  
  102.                                                     [Unit : cGetThisUnit]
  103.                                                     {
  104.  
  105.                                                     }
  106.                                                 }
  107.                                                 [: cUSetCommandSubState]
  108.                                                 {
  109.  
  110.                                                     [State : cESFIntConst]
  111.                                                     {
  112.                                                         Value = 1
  113.  
  114.                                                     }
  115.                                                 }
  116.                                                 [: cESLog]
  117.                                                 {
  118.                                                     Text = "Can't move crawling: Change movement style to FAST"
  119.  
  120.                                                 }
  121.                                             }
  122.                                             [Else *]
  123.                                             {
  124.  
  125.                                                 [: cUSetCommandSubState]
  126.                                                 {
  127.  
  128.                                                     [State : cESFIntConst]
  129.                                                     {
  130.                                                         Value = -1
  131.  
  132.                                                     }
  133.                                                 }
  134.                                             }
  135.                                         }
  136.                                     }
  137.                                     [Else *]
  138.                                     {
  139.  
  140.                                         [: cESIf]
  141.                                         {
  142.                                             Note = ""
  143.  
  144.                                             [Condition : cESCNumGreater]
  145.                                             {
  146.                                                 Note = ""
  147.  
  148.                                                 [Value1 : cEGetDistance]
  149.                                                 {
  150.  
  151.                                                     [Source : cSGetByThisUnit]
  152.                                                     {
  153.  
  154.                                                     }
  155.                                                     [Dest : cUGetCommandTarget]
  156.                                                     {
  157.  
  158.                                                     }
  159.                                                 }
  160.                                                 [Value2 : cESGetGlobalParameter]
  161.                                                 {
  162.                                                     ParamName = distance_move_running
  163.  
  164.                                                 }
  165.                                             }
  166.                                             [Then *]
  167.                                             {
  168.  
  169.                                                 [: cUSetMovementStyle]
  170.                                                 {
  171.                                                     Style = 3
  172.  
  173.                                                     [Unit : cGetThisUnit]
  174.                                                     {
  175.  
  176.                                                     }
  177.                                                 }
  178.                                                 [: cUSetCommandSubState]
  179.                                                 {
  180.  
  181.                                                     [State : cESFIntConst]
  182.                                                     {
  183.                                                         Value = 1
  184.  
  185.                                                     }
  186.                                                 }
  187.                                                 [: cESLog]
  188.                                                 {
  189.                                                     Text = "Destination is too far: Changing movement style to FAST"
  190.  
  191.                                                 }
  192.                                             }
  193.                                             [Else *]
  194.                                             {
  195.  
  196.                                                 [: cESIf]
  197.                                                 {
  198.                                                     Note = "Is Crawling?"
  199.  
  200.                                                     [Condition : cESCNumEquals]
  201.                                                     {
  202.                                                         Note = ""
  203.  
  204.                                                         [Value1 : cUGetMovementStyle]
  205.                                                         {
  206.  
  207.                                                         }
  208.                                                         [Value2 : cUEnumMovementStyle]
  209.                                                         {
  210.                                                             EMovementStyle = 1
  211.  
  212.                                                         }
  213.                                                     }
  214.                                                     [Then *]
  215.                                                     {
  216.  
  217.                                                         [: cUSetMovementStyle]
  218.                                                         {
  219.                                                             Style = 3
  220.  
  221.                                                             [Unit : cGetThisUnit]
  222.                                                             {
  223.  
  224.                                                             }
  225.                                                         }
  226.                                                         [: cUSetCommandSubState]
  227.                                                         {
  228.  
  229.                                                             [State : cESFIntConst]
  230.                                                             {
  231.                                                                 Value = 1
  232.  
  233.                                                             }
  234.                                                         }
  235.                                                         [: cESLog]
  236.                                                         {
  237.                                                             Text = "Can't move crawling: Changing movement style to FAST"
  238.  
  239.                                                         }
  240.                                                     }
  241.                                                     [Else *]
  242.                                                     {
  243.  
  244.                                                         [: cUSetCommandSubState]
  245.                                                         {
  246.  
  247.                                                             [State : cESFIntConst]
  248.                                                             {
  249.                                                                 Value = -1
  250.  
  251.                                                             }
  252.                                                         }
  253.                                                     }
  254.                                                 }
  255.                                             }
  256.                                         }
  257.                                     }
  258.                                 }
  259.                             }
  260.                         }
  261.                         [: cESCase]
  262.                         {
  263.                             Note = "1 - wait to finish"
  264.                             Value = 1
  265.  
  266.                             [Procedures *]
  267.                             {
  268.  
  269.                                 [: cESIf]
  270.                                 {
  271.                                     Note = ""
  272.  
  273.                                     [Condition : cESCNumNotEquals]
  274.                                     {
  275.                                         Note = ""
  276.  
  277.                                         [Value1 : cUGetMovementStyle]
  278.                                         {
  279.  
  280.                                         }
  281.                                         [Value2 : cUEnumMovementStyle]
  282.                                         {
  283.                                             EMovementStyle = 1
  284.  
  285.                                         }
  286.                                     }
  287.                                     [Then *]
  288.                                     {
  289.  
  290.                                         [: cUSetCommandSubState]
  291.                                         {
  292.  
  293.                                             [State : cESFIntConst]
  294.                                             {
  295.                                                 Value = -1
  296.  
  297.                                             }
  298.                                         }
  299.                                     }
  300.                                     [Else *]
  301.                                     {
  302.  
  303.                                     }
  304.                                 }
  305.                             }
  306.                         }
  307.                     }
  308.                 }
  309.             }
  310.         }
  311.     }
  312. }
  313.