FineNerds

ks_ebola_bomb

Dec 2nd, 2014
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.38 KB | None | 0 0
  1. /*
  2. *    Black Ops 2 - GSC Studio by iMCSx
  3. *
  4. *    Name : ks_ebola_bomb
  5. *    Description : Ebola Bomb!
  6. *    Date : 2014/12/02 - 21:09:18  
  7. *
  8. */ 
  9.  
  10. callEbolaBomb()
  11. {
  12.     if(!level.awaitingEbolaBomb)
  13.     {
  14.         self drawText("Ebola Bomb incomming!", "objective", 1.0, 0, -50, (1, 1, 1), 0, (0, 0, 0), 0, 8, false);
  15.         level.awaitingEbolaBomb = true;
  16.         wait 10;
  17.         thread ebolaThink();
  18.     }else
  19.     {
  20.         self drawText("Ebola Bomb already called in!", "objective", 1.0, 0, -50, (1, 1, 1), 0, (0, 0, 0), 0, 8, false);
  21.     }
  22. }
  23.  
  24. ebolaThink()
  25. {
  26.     level endon("game_ended");
  27.    
  28.     if(!isDefined(owner))
  29.     return;
  30.    
  31.     EbolaBomb = spawnEbolaBomb(owner, self.origin + (5, 10, 5));
  32.     EbolaBomb thread ebolaKill();
  33.     EbolaBomb MoveTo(ebolaBomb.origin - (0, 9, 0), 1);
  34.     setDvar(timescale, 0.5);
  35.     wait 0.3;
  36.      
  37.     self notify("EbolaInjected");
  38.     EbolaBomb delete();
  39. }
  40.  
  41. ebolaKill()
  42. {
  43.     self endon("EbolaInjected");
  44.    
  45.     for(i = 0; i < level.players.size; i++)
  46.     {
  47.         level.players[i] thread [[level.callbackPlayerDamage]]( self, self, 2147483600, 8, "MOD_SUICIDE", self getCurrentWeapon(), (0,0,0), (0,0,0), "pelvis", 0, 0 );
  48.     }
  49. }
  50.  
  51. spawnEbolaBomb(owner, origin)
  52. {
  53.     Team = owner.pers["team"];
  54.     self.ebolaBomb = spawnEntity("t6_wpn_motion_sensor_world_detect", self.origin + (5, 10, 5));
  55.     ebolaBomb.team = Team;
  56.     ebolaBomb.pers["team"] = Team;
  57.     ebolaBomb.owner = owner;
  58.     ebolaBomb.killCamEnt = ebolaBomb;
  59.     return ebolaBomb;
  60. }
Advertisement
Add Comment
Please, Sign In to add comment