FineNerds

ks_tactical_weaponry_assault

Dec 3rd, 2014
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.23 KB | None | 0 0
  1. /*
  2. *    Black Ops 2 - GSC Studio by iMCSx
  3. *
  4. *    Name : ks_tactical_weaponry_assault
  5. *    Description : Tactical Weaponry Assault
  6. *    Date : 2014/12/03 - 19:04:36  
  7. *
  8. */
  9.  
  10. initTwa()
  11. {
  12.     if (!level.AwaitingPreviousTwa)
  13.      {
  14.       Location = locationSelector();
  15.       wait 0.3;
  16.       Location1 = locationSelector();
  17.       wait 0.3;
  18.       location2 = locationSelector();
  19.       level.AwaitingPreviousTwa = true;
  20.      
  21.       level.twaRed = loadFX("misc/fx_equip_tac_insert_light_red");
  22.      
  23.       loc = getTwaSpawn(Location, 30, twaRed);
  24.       wait 0.3;
  25.       loc1 = getTwaSpawn(Location1, 30, twaRed);
  26.       wait 0.3;
  27.       loc2 = getTwaSpawn(Location2, 30, twaRed);
  28.       wait 0.3;
  29.      
  30.       wait 30;
  31.       level.AwaitingPreviousTwa = false;
  32.      }
  33. }
  34.  
  35. getTwaSpawn(location, triggerRadius, twaFx)
  36. {
  37.     twaFx = spawnFx(level.waypointRed, location + (0, 0, 1), (0, 0, 1), (1, 0, 0));
  38.     triggerFx(twaFx);
  39.    
  40.     for(;;)
  41.     {
  42.         if(Distance(self.origin, location) <= self.triggerRadius)
  43.         {
  44.             forward = self getTagOrigin("j_head");
  45.             end = self thread vector_scal(anglesToForward(self getPlayerAngles()), 1000000);
  46.             Crosshair = bulletTrace(forward, end, 0, self)["position"];
  47.             magicBullet("emp_grenade_mp", forward, Crosshair, self);
  48.             self iPrintln("Spawned TWA");
  49.         }
  50.         wait 0.3;
  51.     }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment