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

  1.  
  2. [uSub.SetWeapon/Grenade_Riffle : cESEvent]
  3. {
  4.     Name = uSub.SetWeapon/Grenade_Riffle
  5.     Enabled = 1
  6.     Type = 2
  7.     RefreshRate = 0
  8.  
  9.     [Procedures *]
  10.     {
  11.  
  12.         [: cESIf]
  13.         {
  14.             Note = ""
  15.  
  16.             [Condition : cESCNumEquals]
  17.             {
  18.                 Note = ""
  19.  
  20.                 [Value1 : cUGetCommandIntParam]
  21.                 {
  22.  
  23.                 }
  24.                 [Value2 : cESFIntConst]
  25.                 {
  26.                     Value = 3
  27.  
  28.                 }
  29.             }
  30.             [Then *]
  31.             {
  32.  
  33.                 [: cUSetShootingWeaponType]
  34.                 {
  35.                     WeaponType = 18
  36.  
  37.                 }
  38.             }
  39.             [Else *]
  40.             {
  41.  
  42.                 [: cESIf]
  43.                 {
  44.                     Note = ""
  45.  
  46.                     [Condition : cESCNumEquals]
  47.                     {
  48.                         Note = ""
  49.  
  50.                         [Value1 : cUGetCommandIntParam]
  51.                         {
  52.  
  53.                         }
  54.                         [Value2 : cESFIntConst]
  55.                         {
  56.                             Value = 1
  57.  
  58.                         }
  59.                     }
  60.                     [Then *]
  61.                     {
  62.  
  63.                         [: cUSetShootingWeaponType]
  64.                         {
  65.                             WeaponType = 7
  66.  
  67.                         }
  68.                     }
  69.                     [Else *]
  70.                     {
  71.  
  72.                         [: cESLog]
  73.                         {
  74.                             Text = "Warning: Nonexistent weapont type! Dafaulting to primary."
  75.  
  76.                         }
  77.                         [: cUSetShootingWeaponType]
  78.                         {
  79.                             WeaponType = 7
  80.  
  81.                         }
  82.                     }
  83.                 }
  84.             }
  85.         }
  86.     }
  87. }
  88.