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

  1.  
  2. [Goal.TurnToFiringEnemy.Eval : cESEvent]
  3. {
  4.     Name = Goal.TurnToFiringEnemy.Eval
  5.     Enabled = 1
  6.     Type = 4
  7.     RefreshRate = 0
  8.  
  9.     [Procedures *]
  10.     {
  11.  
  12.         [: cESIf]
  13.         {
  14.             Note = ""
  15.  
  16.             [Condition : cSIsThisGoalCurrent]
  17.             {
  18.                 Note = ""
  19.  
  20.             }
  21.             [Then *]
  22.             {
  23.  
  24.                 [: cESIf]
  25.                 {
  26.                     Note = ""
  27.  
  28.                     [Condition : cESCNot]
  29.                     {
  30.                         Note = ""
  31.  
  32.                         [Condition : cSIsIdle]
  33.                         {
  34.                             Note = ""
  35.  
  36.                             [Squad : cSGetByThisSquad]
  37.                             {
  38.  
  39.                             }
  40.                         }
  41.                     }
  42.                     [Then *]
  43.                     {
  44.  
  45.                         [: cESSetReturnValue]
  46.                         {
  47.  
  48.                             [Value : cESFIntConst]
  49.                             {
  50.                                 Value = 1
  51.  
  52.                             }
  53.                         }
  54.                     }
  55.                     [Else *]
  56.                     {
  57.  
  58.                         [: cSRegisterEvent]
  59.                         {
  60.                             EventType = 15
  61.  
  62.                             [Entity : cSGetByThisSquad]
  63.                             {
  64.  
  65.                             }
  66.                             [LifeTime : cESFIntConst]
  67.                             {
  68.                                 Value = 15
  69.  
  70.                             }
  71.                         }
  72.                         [: cSRegisterEvent]
  73.                         {
  74.                             EventType = 14
  75.  
  76.                             [Entity : cSGetByThisSquad]
  77.                             {
  78.  
  79.                             }
  80.                             [LifeTime : cESFIntConst]
  81.                             {
  82.                                 Value = 10
  83.  
  84.                             }
  85.                         }
  86.                         [: cESLog]
  87.                         {
  88.                             Text = "Goal ended naturally. Registry updated. (WANT_TURN_AROUND, WAIT)"
  89.  
  90.                         }
  91.                     }
  92.                 }
  93.             }
  94.             [Else *]
  95.             {
  96.  
  97.                 [: cESIf]
  98.                 {
  99.                     Note = "Hall valakit de nem lat senkit es nincs elotte se lovo ember?"
  100.  
  101.                     [Condition : cESCAnd]
  102.                     {
  103.                         Note = ""
  104.  
  105.                         [AndConditions *]
  106.                         {
  107.  
  108.                             [: cMIsEmptyTarget]
  109.                             {
  110.                                 Note = "nem lat senkit"
  111.  
  112.                                 [Target : cSRetrieveCmdTarget]
  113.                                 {
  114.                                     VarName = SquadToAttack
  115.  
  116.                                 }
  117.                             }
  118.                         }
  119.                     }
  120.                     [Then *]
  121.                     {
  122.  
  123.                         [: cESSubrutine]
  124.                         {
  125.                             Subrutine = sSub.CalculateFiringEnemies
  126.  
  127.                         }
  128.                         [: cESIf]
  129.                         {
  130.                             Note = "nem ures a ClosestFiringEnemy"
  131.  
  132.                             [Condition : cESCNot]
  133.                             {
  134.                                 Note = ""
  135.  
  136.                                 [Condition : cMIsEmptyTarget]
  137.                                 {
  138.                                     Note = ""
  139.  
  140.                                     [Target : cSRetrieveCmdTarget]
  141.                                     {
  142.                                         VarName = ClosestFiringEnemy
  143.  
  144.                                     }
  145.                                 }
  146.                             }
  147.                             [Then *]
  148.                             {
  149.  
  150.                                 [: cESIf]
  151.                                 {
  152.                                     Note = "de nem hall elolrol hangot"
  153.  
  154.                                     [Condition : cMIsEmptyTarget]
  155.                                     {
  156.                                         Note = ""
  157.  
  158.                                         [Target : cSRetrieveCmdTarget]
  159.                                         {
  160.                                             VarName = ClosestFiringEnemyInFront
  161.  
  162.                                         }
  163.                                     }
  164.                                     [Then *]
  165.                                     {
  166.  
  167.                                         [: cESIf]
  168.                                         {
  169.                                             Note = ""
  170.  
  171.                                             [Condition : cESCNot]
  172.                                             {
  173.                                                 Note = ""
  174.  
  175.                                                 [Condition : cSIsEventInRegistry]
  176.                                                 {
  177.                                                     Note = ""
  178.                                                     Type = 1
  179.  
  180.                                                     [Squad : cSGetByThisSquad]
  181.                                                     {
  182.  
  183.                                                     }
  184.                                                     [Entity : cSGetByVariable]
  185.                                                     {
  186.  
  187.                                                         [VariableName : cScriptVar]
  188.                                                         {
  189.                                                             VarName = ClosestFiringEnemy
  190.  
  191.                                                         }
  192.                                                     }
  193.                                                 }
  194.                                             }
  195.                                             [Then *]
  196.                                             {
  197.  
  198.                                                 [: cESSetReturnValue]
  199.                                                 {
  200.  
  201.                                                     [Value : cESFIntConst]
  202.                                                     {
  203.                                                         Value = 1
  204.  
  205.                                                     }
  206.                                                 }
  207.                                             }
  208.                                             [Else *]
  209.                                             {
  210.  
  211.                                             }
  212.                                         }
  213.                                     }
  214.                                     [Else *]
  215.                                     {
  216.  
  217.                                     }
  218.                                 }
  219.                             }
  220.                             [Else *]
  221.                             {
  222.  
  223.                             }
  224.                         }
  225.                     }
  226.                     [Else *]
  227.                     {
  228.  
  229.                     }
  230.                 }
  231.                 [: cESIf]
  232.                 {
  233.                     Note = "Vagy impact hangot hallottunk."
  234.  
  235.                     [Condition : cSIsSoundEventNotInRegistry]
  236.                     {
  237.                         Note = ""
  238.                         SoundOwner = 0
  239.                         SoundType = 2
  240.                         OmitSoundsByThisSquad = 0
  241.  
  242.                     }
  243.                     [Then *]
  244.                     {
  245.  
  246.                         [: cESIf]
  247.                         {
  248.                             Note = ""
  249.  
  250.                             [Condition : cSIsSoundEventAndSeek]
  251.                             {
  252.                                 Note = ""
  253.                                 SoundOwner = 2
  254.                                 SoundType = 2
  255.                                 SeekAngle = 190
  256.                                 OmitSoundsByThisSquad = 0
  257.  
  258.                             }
  259.                             [Then *]
  260.                             {
  261.  
  262.                                 [: cSSoundInsertToRegistry]
  263.                                 {
  264.                                     SoundOwner = 2
  265.                                     SoundType = 2
  266.  
  267.                                     [LifeTime : cESGetGlobalParameter]
  268.                                     {
  269.                                         ParamName = soundevent_reprocess_delay
  270.  
  271.                                     }
  272.                                 }
  273.                                 [: cUStoreCmdTarget]
  274.                                 {
  275.                                     VarName = ClosestFiringEnemy
  276.                                     LocalVar = 0
  277.  
  278.                                     [Target : cSRetrieveCmdTarget]
  279.                                     {
  280.                                         VarName = SoundEventAndSeek
  281.  
  282.                                     }
  283.                                 }
  284.                                 [: cESSetReturnValue]
  285.                                 {
  286.  
  287.                                     [Value : cESFIntConst]
  288.                                     {
  289.                                         Value = 1
  290.  
  291.                                     }
  292.                                 }
  293.                             }
  294.                             [Else *]
  295.                             {
  296.  
  297.                             }
  298.                         }
  299.                     }
  300.                     [Else *]
  301.                     {
  302.  
  303.                     }
  304.                 }
  305.                 [: cESIf]
  306.                 {
  307.                     Note = "Aknarobbanast hallottunk?"
  308.  
  309.                     [Condition : cGEQIsEvent]
  310.                     {
  311.                         Note = ""
  312.                         Event = 11
  313.  
  314.                     }
  315.                     [Then *]
  316.                     {
  317.  
  318.                         [: cESIf]
  319.                         {
  320.                             Note = "Kozel robbant akna?"
  321.  
  322.                             [Condition : cESCNumLess]
  323.                             {
  324.                                 Note = ""
  325.  
  326.                                 [Value1 : cEGetDistance]
  327.                                 {
  328.  
  329.                                     [Source : cSGetByThisSquad]
  330.                                     {
  331.  
  332.                                     }
  333.                                     [Dest : cSRetrieveCmdTarget]
  334.                                     {
  335.                                         VarName = GEQEntity
  336.  
  337.                                     }
  338.                                 }
  339.                                 [Value2 : cESGetGlobalParameter]
  340.                                 {
  341.                                     ParamName = distance_mine_explosion_detection
  342.  
  343.                                 }
  344.                             }
  345.                             [Then *]
  346.                             {
  347.  
  348.                                 [: cUStoreCmdTarget]
  349.                                 {
  350.                                     VarName = ClosestFiringEnemy
  351.                                     LocalVar = 0
  352.  
  353.                                     [Target : cSRetrieveCmdTarget]
  354.                                     {
  355.                                         VarName = GEQEntity
  356.  
  357.                                     }
  358.                                 }
  359.                                 [: cESSetReturnValue]
  360.                                 {
  361.  
  362.                                     [Value : cESFIntConst]
  363.                                     {
  364.                                         Value = 1
  365.  
  366.                                     }
  367.                                 }
  368.                             }
  369.                             [Else *]
  370.                             {
  371.  
  372.                             }
  373.                         }
  374.                     }
  375.                     [Else *]
  376.                     {
  377.  
  378.                     }
  379.                 }
  380.             }
  381.         }
  382.     }
  383. }
  384.