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

  1.  
  2. [uCmd.RemoveTrap : cESEvent]
  3. {
  4.     Name = uCmd.RemoveTrap
  5.     Enabled = 1
  6.     Type = 1
  7.     RefreshRate = 0
  8.  
  9.     [Procedures *]
  10.     {
  11.  
  12.         [: cESNote]
  13.         {
  14.             Text = "Old. Made by Snowman."
  15.  
  16.         }
  17.         [: cESIf]
  18.         {
  19.             Note = ""
  20.  
  21.             [Condition : cESCNumEquals]
  22.             {
  23.                 Note = ""
  24.  
  25.                 [Value1 : cUGetCommandType]
  26.                 {
  27.  
  28.                 }
  29.                 [Value2 : cUEnumCommand]
  30.                 {
  31.                     ECommand = 17
  32.  
  33.                 }
  34.             }
  35.             [Then *]
  36.             {
  37.  
  38.                 [: cESIf]
  39.                 {
  40.                     Note = ""
  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.                         [: cUSetCommandState]
  60.                         {
  61.  
  62.                             [State : cESFIntConst]
  63.                             {
  64.                                 Value = 1
  65.  
  66.                             }
  67.                         }
  68.                         [: cUSetMoveTarget]
  69.                         {
  70.                             Translate = 0
  71.  
  72.                             [Target : cMAddVectors]
  73.                             {
  74.  
  75.                                 [Arg1 : cUGetCommandTarget]
  76.                                 {
  77.  
  78.                                 }
  79.                                 [Arg2 : cMMulVector]
  80.                                 {
  81.  
  82.                                     [Arg1 : cMNormalizeVector]
  83.                                     {
  84.  
  85.                                         [Arg1 : cMSubVectors]
  86.                                         {
  87.  
  88.                                             [Arg1 : cUGetUnitPos]
  89.                                             {
  90.  
  91.                                                 [Unit : NULL]
  92.                                                 {
  93.  
  94.                                                 }
  95.                                             }
  96.                                             [Arg2 : cUGetCommandTarget]
  97.                                             {
  98.  
  99.                                             }
  100.                                         }
  101.                                     }
  102.                                     [Arg2 : cESFFloatConst]
  103.                                     {
  104.                                         Value = 1.4
  105.  
  106.                                     }
  107.                                 }
  108.                             }
  109.                         }
  110.                         [: cUSetPinpointMode]
  111.                         {
  112.  
  113.                         }
  114.                     }
  115.                     [Else *]
  116.                     {
  117.  
  118.                         [: cESIf]
  119.                         {
  120.                             Note = ""
  121.  
  122.                             [Condition : cESCNumEquals]
  123.                             {
  124.                                 Note = ""
  125.  
  126.                                 [Value1 : cUGetCommandState]
  127.                                 {
  128.  
  129.                                 }
  130.                                 [Value2 : cESFIntConst]
  131.                                 {
  132.                                     Value = 1
  133.  
  134.                                 }
  135.                             }
  136.                             [Then *]
  137.                             {
  138.  
  139.                                 [: cESIf]
  140.                                 {
  141.                                     Note = ""
  142.  
  143.                                     [Condition : cUIsMoveTargetReached]
  144.                                     {
  145.                                         Note = ""
  146.  
  147.                                     }
  148.                                     [Then *]
  149.                                     {
  150.  
  151.                                         [: cESIf]
  152.                                         {
  153.                                             Note = ""
  154.  
  155.                                             [Condition : cESCNumLessFloat]
  156.                                             {
  157.                                                 Note = ""
  158.  
  159.                                                 [Value1 : cUGetDistanceFromMoveTarget]
  160.                                                 {
  161.  
  162.                                                     [Unit : cGetThisUnit]
  163.                                                     {
  164.  
  165.                                                     }
  166.                                                 }
  167.                                                 [Value2 : cESFFloatConst]
  168.                                                 {
  169.                                                     Value = 0.5
  170.  
  171.                                                 }
  172.                                             }
  173.                                             [Then *]
  174.                                             {
  175.  
  176.                                                 [: cUSetCommandState]
  177.                                                 {
  178.  
  179.                                                     [State : cESFIntConst]
  180.                                                     {
  181.                                                         Value = 2
  182.  
  183.                                                     }
  184.                                                 }
  185.                                                 [: cUTurnTo]
  186.                                                 {
  187.  
  188.                                                     [Target : cUGetCommandTarget]
  189.                                                     {
  190.  
  191.                                                     }
  192.                                                     [TurnToTarget : NULL]
  193.                                                     {
  194.  
  195.                                                     }
  196.                                                 }
  197.                                             }
  198.                                             [Else *]
  199.                                             {
  200.  
  201.                                                 [: cUCommandCompleted]
  202.                                                 {
  203.  
  204.                                                 }
  205.                                             }
  206.                                         }
  207.                                     }
  208.                                     [Else *]
  209.                                     {
  210.  
  211.                                     }
  212.                                 }
  213.                             }
  214.                             [Else *]
  215.                             {
  216.  
  217.                             }
  218.                         }
  219.                         [: cESIf]
  220.                         {
  221.                             Note = ""
  222.  
  223.                             [Condition : cESCNumEquals]
  224.                             {
  225.                                 Note = ""
  226.  
  227.                                 [Value1 : cUGetCommandState]
  228.                                 {
  229.  
  230.                                 }
  231.                                 [Value2 : cESFIntConst]
  232.                                 {
  233.                                     Value = 2
  234.  
  235.                                 }
  236.                             }
  237.                             [Then *]
  238.                             {
  239.  
  240.                                 [: cESIf]
  241.                                 {
  242.                                     Note = ""
  243.  
  244.                                     [Condition : cUIsInShootAngle]
  245.                                     {
  246.                                         Note = ""
  247.  
  248.                                     }
  249.                                     [Then *]
  250.                                     {
  251.  
  252.                                         [: cURemoveTrap]
  253.                                         {
  254.  
  255.                                             [Target : NULL]
  256.                                             {
  257.  
  258.                                             }
  259.                                         }
  260.                                         [: cESIf]
  261.                                         {
  262.                                             Note = "Trigger nullazasa"
  263.  
  264.                                             [Condition : cUHasTriggered]
  265.                                             {
  266.                                                 Note = ""
  267.  
  268.                                             }
  269.                                             [Then *]
  270.                                             {
  271.  
  272.                                             }
  273.                                             [Else *]
  274.                                             {
  275.  
  276.                                             }
  277.                                         }
  278.                                         [: cUSetCommandState]
  279.                                         {
  280.  
  281.                                             [State : cESFIntConst]
  282.                                             {
  283.                                                 Value = 3
  284.  
  285.                                             }
  286.                                         }
  287.                                         [: cSEnablePlayerControl]
  288.                                         {
  289.                                             Enabled = 0
  290.                                             AutoEnable = 1
  291.                                             ClearSelection = 0
  292.  
  293.                                             [Squad : cSGetByThisUnit]
  294.                                             {
  295.  
  296.                                             }
  297.                                         }
  298.                                         [: cTStartTimer]
  299.                                         {
  300.                                             TimerName = Remove
  301.  
  302.                                         }
  303.                                     }
  304.                                     [Else *]
  305.                                     {
  306.  
  307.                                     }
  308.                                 }
  309.                             }
  310.                             [Else *]
  311.                             {
  312.  
  313.                             }
  314.                         }
  315.                         [: cESIf]
  316.                         {
  317.                             Note = ""
  318.  
  319.                             [Condition : cESCNumEquals]
  320.                             {
  321.                                 Note = ""
  322.  
  323.                                 [Value1 : cUGetCommandState]
  324.                                 {
  325.  
  326.                                 }
  327.                                 [Value2 : cESFIntConst]
  328.                                 {
  329.                                     Value = 3
  330.  
  331.                                 }
  332.                             }
  333.                             [Then *]
  334.                             {
  335.  
  336.                                 [: cESIf]
  337.                                 {
  338.                                     Note = ""
  339.  
  340.                                     [Condition : cUHasTriggered]
  341.                                     {
  342.                                         Note = ""
  343.  
  344.                                     }
  345.                                     [Then *]
  346.                                     {
  347.  
  348.                                         [: cEHide]
  349.                                         {
  350.                                             GroupName = ""
  351.  
  352.                                             [Target : cUGetCommandTarget]
  353.                                             {
  354.  
  355.                                             }
  356.                                         }
  357.                                         [: cTRemoveTrap]
  358.                                         {
  359.  
  360.                                             [Unit : cGetThisUnit]
  361.                                             {
  362.  
  363.                                             }
  364.                                             [Trap : cUGetCommandTarget]
  365.                                             {
  366.  
  367.                                             }
  368.                                         }
  369.                                         [: cUCommandCompleted]
  370.                                         {
  371.  
  372.                                         }
  373.                                     }
  374.                                     [Else *]
  375.                                     {
  376.  
  377.                                     }
  378.                                 }
  379.                                 [: cESIf]
  380.                                 {
  381.                                     Note = ""
  382.  
  383.                                     [Condition : cESCNumGreater]
  384.                                     {
  385.                                         Note = ""
  386.  
  387.                                         [Value1 : cTGetTimerValue]
  388.                                         {
  389.                                             TimerName = Remove
  390.  
  391.                                         }
  392.                                         [Value2 : cESFIntConst]
  393.                                         {
  394.                                             Value = 60
  395.  
  396.                                         }
  397.                                     }
  398.                                     [Then *]
  399.                                     {
  400.  
  401.                                         [: cUCommandCompleted]
  402.                                         {
  403.  
  404.                                         }
  405.                                     }
  406.                                     [Else *]
  407.                                     {
  408.  
  409.                                     }
  410.                                 }
  411.                             }
  412.                             [Else *]
  413.                             {
  414.  
  415.                             }
  416.                         }
  417.                     }
  418.                 }
  419.             }
  420.             [Else *]
  421.             {
  422.  
  423.             }
  424.         }
  425.     }
  426. }
  427.