home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2002 December / JOY143_CD1.iso / Data / Demos / Platoon / pl_demo.exe / Inf / Gamelogic / GameEvents / Unit.Event.MovementStyleChanged-MG_P.inf < prev    next >
INI File  |  2002-10-14  |  6KB  |  396 lines

  1.  
  2. [Unit.Event.MovementStyleChanged/MG_P : cESEvent]
  3. {
  4.     Name = Unit.Event.MovementStyleChanged/MG_P
  5.     Enabled = 1
  6.     Type = 4
  7.     RefreshRate = 0
  8.  
  9.     [Procedures *]
  10.     {
  11.  
  12.         [: cESIf]
  13.         {
  14.             Note = GuardMode?
  15.  
  16.             [Condition : cESCNumEquals]
  17.             {
  18.                 Note = ""
  19.  
  20.                 [Value1 : cESFIntFromMember]
  21.                 {
  22.                     VariableName = GuardMode
  23.  
  24.                     [Object : cSGetByThisUnit]
  25.                     {
  26.  
  27.                     }
  28.                 }
  29.                 [Value2 : cESFIntConst]
  30.                 {
  31.                     Value = 1
  32.  
  33.                 }
  34.             }
  35.             [Then *]
  36.             {
  37.  
  38.                 [: cESIf]
  39.                 {
  40.                     Note = Lehasaltunk?
  41.  
  42.                     [Condition : cESCAnd]
  43.                     {
  44.                         Note = ""
  45.  
  46.                         [AndConditions *]
  47.                         {
  48.  
  49.                             [: cESCNumEquals]
  50.                             {
  51.                                 Note = "Most hasalunk"
  52.  
  53.                                 [Value1 : cUGetMovementStyle]
  54.                                 {
  55.  
  56.                                 }
  57.                                 [Value2 : cUEnumMovementStyle]
  58.                                 {
  59.                                     EMovementStyle = 1
  60.  
  61.                                 }
  62.                             }
  63.                             [: cESCNumNotEquals]
  64.                             {
  65.                                 Note = ""
  66.  
  67.                                 [Value1 : cUGetPrevMovementStyle]
  68.                                 {
  69.  
  70.                                 }
  71.                                 [Value2 : cUEnumMovementStyle]
  72.                                 {
  73.                                     EMovementStyle = 1
  74.  
  75.                                 }
  76.                             }
  77.                         }
  78.                     }
  79.                     [Then *]
  80.                     {
  81.  
  82.                         [: cESLog]
  83.                         {
  84.                             Text = "Set movement style to CRAWL in GUARD MODE causes unit to stop, and command complete."
  85.  
  86.                         }
  87.                         [: cUStop]
  88.                         {
  89.  
  90.                             [Entity : cGetThisUnit]
  91.                             {
  92.  
  93.                             }
  94.                         }
  95.                         [: cUCommandCompleted]
  96.                         {
  97.  
  98.                         }
  99.                     }
  100.                     [Else *]
  101.                     {
  102.  
  103.                     }
  104.                 }
  105.             }
  106.             [Else *]
  107.             {
  108.  
  109.                 [: cESIf]
  110.                 {
  111.                     Note = Lehasaltunk?
  112.  
  113.                     [Condition : cESCAnd]
  114.                     {
  115.                         Note = ""
  116.  
  117.                         [AndConditions *]
  118.                         {
  119.  
  120.                             [: cESCNumEquals]
  121.                             {
  122.                                 Note = Crawl
  123.  
  124.                                 [Value1 : cUGetMovementStyle]
  125.                                 {
  126.  
  127.                                 }
  128.                                 [Value2 : cUEnumMovementStyle]
  129.                                 {
  130.                                     EMovementStyle = 1
  131.  
  132.                                 }
  133.                             }
  134.                             [: cESCNumNotEquals]
  135.                             {
  136.                                 Note = "Elozo nem crawl"
  137.  
  138.                                 [Value1 : cUGetPrevMovementStyle]
  139.                                 {
  140.  
  141.                                 }
  142.                                 [Value2 : cUEnumMovementStyle]
  143.                                 {
  144.                                     EMovementStyle = 1
  145.  
  146.                                 }
  147.                             }
  148.                         }
  149.                     }
  150.                     [Then *]
  151.                     {
  152.  
  153.                         [: cESIf]
  154.                         {
  155.                             Note = "ASSAULT || FIRE || RETURN_FIRE || FIRE MULTIPLE?"
  156.  
  157.                             [Condition : cESCOr]
  158.                             {
  159.                                 Note = "ASSAULT || FIRE || RETURN_FIRE || FIRE MULTIPLE?"
  160.  
  161.                                 [OrConditions *]
  162.                                 {
  163.  
  164.                                     [: cESCNumEquals]
  165.                                     {
  166.                                         Note = ""
  167.  
  168.                                         [Value1 : cUGetCommandType]
  169.                                         {
  170.  
  171.                                         }
  172.                                         [Value2 : cUEnumCommand]
  173.                                         {
  174.                                             ECommand = 11
  175.  
  176.                                         }
  177.                                     }
  178.                                     [: cESCNumEquals]
  179.                                     {
  180.                                         Note = ""
  181.  
  182.                                         [Value1 : cUGetCommandType]
  183.                                         {
  184.  
  185.                                         }
  186.                                         [Value2 : cUEnumCommand]
  187.                                         {
  188.                                             ECommand = 7
  189.  
  190.                                         }
  191.                                     }
  192.                                     [: cESCNumEquals]
  193.                                     {
  194.                                         Note = ""
  195.  
  196.                                         [Value1 : cUGetCommandType]
  197.                                         {
  198.  
  199.                                         }
  200.                                         [Value2 : cUEnumCommand]
  201.                                         {
  202.                                             ECommand = 29
  203.  
  204.                                         }
  205.                                     }
  206.                                     [: cESCNumEquals]
  207.                                     {
  208.                                         Note = ""
  209.  
  210.                                         [Value1 : cUGetCommandType]
  211.                                         {
  212.  
  213.                                         }
  214.                                         [Value2 : cUEnumCommand]
  215.                                         {
  216.                                             ECommand = 28
  217.  
  218.                                         }
  219.                                     }
  220.                                 }
  221.                             }
  222.                             [Then *]
  223.                             {
  224.  
  225.                                 [: cUStop]
  226.                                 {
  227.  
  228.                                     [Entity : cGetThisUnit]
  229.                                     {
  230.  
  231.                                     }
  232.                                 }
  233.                                 [: cESLog]
  234.                                 {
  235.                                     Text = "Switching to CRAWL while IN (ASSAULT, FIRE, FIRE_MULTIPLE or RETURN_FIRE) -> stop. (GUARD MODE OFF)"
  236.  
  237.                                 }
  238.                             }
  239.                             [Else *]
  240.                             {
  241.  
  242.                                 [: cESLog]
  243.                                 {
  244.                                     Text = "Switching to CRAWL while NOT IN (ASSAULT, FIRE, FIRE_MULTIPLE or RETURN_FIRE) -> stop and command complete. (GUARD MODE OFF)"
  245.  
  246.                                 }
  247.                                 [: cUStop]
  248.                                 {
  249.  
  250.                                     [Entity : cGetThisUnit]
  251.                                     {
  252.  
  253.                                     }
  254.                                 }
  255.                                 [: cUCommandCompleted]
  256.                                 {
  257.  
  258.                                 }
  259.                             }
  260.                         }
  261.                     }
  262.                     [Else *]
  263.                     {
  264.  
  265.                         [: cESIf]
  266.                         {
  267.                             Note = Felallitottak?
  268.  
  269.                             [Condition : cESCAnd]
  270.                             {
  271.                                 Note = ""
  272.  
  273.                                 [AndConditions *]
  274.                                 {
  275.  
  276.                                     [: cESCNumNotEquals]
  277.                                     {
  278.                                         Note = ""
  279.  
  280.                                         [Value1 : cUGetMovementStyle]
  281.                                         {
  282.  
  283.                                         }
  284.                                         [Value2 : cUEnumMovementStyle]
  285.                                         {
  286.                                             EMovementStyle = 1
  287.  
  288.                                         }
  289.                                     }
  290.                                     [: cESCNumEquals]
  291.                                     {
  292.                                         Note = ""
  293.  
  294.                                         [Value1 : cUGetPrevMovementStyle]
  295.                                         {
  296.  
  297.                                         }
  298.                                         [Value2 : cUEnumMovementStyle]
  299.                                         {
  300.                                             EMovementStyle = 1
  301.  
  302.                                         }
  303.                                     }
  304.                                 }
  305.                             }
  306.                             [Then *]
  307.                             {
  308.  
  309.                                 [: cESIf]
  310.                                 {
  311.                                     Note = "ASSAULT || FIRE || RETURN_FIRE || FIRE_MULTIPLE?"
  312.  
  313.                                     [Condition : cESCAnd]
  314.                                     {
  315.                                         Note = ""
  316.  
  317.                                         [AndConditions *]
  318.                                         {
  319.  
  320.                                             [: cESCNumEquals]
  321.                                             {
  322.                                                 Note = "Most hasalunk"
  323.  
  324.                                                 [Value1 : cUGetMovementStyle]
  325.                                                 {
  326.  
  327.                                                 }
  328.                                                 [Value2 : cUEnumMovementStyle]
  329.                                                 {
  330.                                                     EMovementStyle = 1
  331.  
  332.                                                 }
  333.                                             }
  334.                                             [: cESCNumNotEquals]
  335.                                             {
  336.                                                 Note = ""
  337.  
  338.                                                 [Value1 : cUGetPrevMovementStyle]
  339.                                                 {
  340.  
  341.                                                 }
  342.                                                 [Value2 : cUEnumMovementStyle]
  343.                                                 {
  344.                                                     EMovementStyle = 1
  345.  
  346.                                                 }
  347.                                             }
  348.                                         }
  349.                                     }
  350.                                     [Then *]
  351.                                     {
  352.  
  353.                                         [: cESLog]
  354.                                         {
  355.                                             Text = "Switching _from_ CRAWL while (ASSAULT, FIRE, FIRE_MULTIPLE or RETURN_FIRE) -> command complete. (GUARD MODE OFF)"
  356.  
  357.                                         }
  358.                                         [: cUStopAim]
  359.                                         {
  360.  
  361.                                             [Entity : cGetThisUnit]
  362.                                             {
  363.  
  364.                                             }
  365.                                         }
  366.                                         [: cUStop]
  367.                                         {
  368.  
  369.                                             [Entity : cGetThisUnit]
  370.                                             {
  371.  
  372.                                             }
  373.                                         }
  374.                                         [: cUCommandCompleted]
  375.                                         {
  376.  
  377.                                         }
  378.                                     }
  379.                                     [Else *]
  380.                                     {
  381.  
  382.                                     }
  383.                                 }
  384.                             }
  385.                             [Else *]
  386.                             {
  387.  
  388.                             }
  389.                         }
  390.                     }
  391.                 }
  392.             }
  393.         }
  394.     }
  395. }
  396.