Advertisement
4FunPlayin

Mother of All Bombs

Oct 4th, 2011
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. useMOAB()
  2. {
  3. self endon ( "disconnect" );
  4. self beginLocationSelection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
  5. self.selectingLocation = true;
  6. self waittill( "confirm_location", location, directionYaw );
  7. NapalmLoc = BulletTrace( location, ( location + ( 0, 0, -100000 ) ), 0, self )[ "position" ];
  8. NapalmLoc += (0, 0, 400); // fixes the gay low ground glitch
  9. self endLocationSelection();
  10. self.selectingLocation = undefined;
  11. Plane = spawn("script_model", NapalmLoc+(-15000, 0, 5000) );
  12. Plane setModel( "vehicle_ac130_low_mp" );
  13. Plane.angles = (0, 0, 0);
  14. Plane playLoopSound( "veh_ac130_dist_loop" );
  15. Plane moveTo( NapalmLoc + (15000, 0, 5000), 40 );
  16. wait 20;
  17. MOAB = MagicBullet( "ac130_105mm_mp", Plane.origin, NapalmLoc, self );
  18. wait 1.6;
  19. Plane playsound( "nuke_explosion" );
  20. Plane playsound( "nuke_explosion" );
  21. Plane playsound( "nuke_explosion" );
  22. MOAB delete();
  23. RadiusDamage( NapalmLoc, 1400, 5000, 4999, self );
  24. Earthquake( 1, 4, NapalmLoc, 4000 );
  25. level.napalmx["explode"]["medium"] = loadfx ("explosions/aerial_explosion");
  26.  
  27. x= 0;
  28. y = 0;
  29. for(i = 0;i < 60; i++)
  30. {
  31. if(i < 20 && i > 0)
  32. {
  33. playFX(level.chopper_fx["explode"]["medium"], NapalmLoc+(x, y, 0));
  34. playFX(level.chopper_fx["explode"]["medium"], NapalmLoc-(x, y, 0));
  35. x = RandomInt(550);
  36. y = RandomInt(550);
  37. z = RandomInt(1);
  38. if (z == 1)
  39. {
  40. x = x * -1;
  41. z = z * -1;
  42. }
  43. }
  44.  
  45. if(i < 40 && i > 20)
  46. {
  47. playFX(level.chopper_fx["explode"]["medium"], NapalmLoc+(x, y, 150));
  48. playFX(level.chopper_fx["explode"]["medium"], NapalmLoc-(x, y, 0));
  49. x = RandomInt(500);
  50. y = RandomInt(500);
  51. z = RandomInt(1);
  52. if (z == 1)
  53. {
  54. x = x * -1;
  55. z = z * -1;
  56. }
  57. }
  58.  
  59. if(i < 60 && i > 40)
  60. {
  61. playFX(level.chopper_fx["explode"]["medium"], NapalmLoc+(x, y, 300));
  62. playFX(level.chopper_fx["explode"]["medium"], NapalmLoc-(x, y, 0));
  63. x = RandomInt(450);
  64. y = RandomInt(450);
  65. z = RandomInt(1);
  66. if (z == 1)
  67. {
  68. x = x * -1;
  69. z = z * -1;
  70. }
  71. }
  72. }
  73. NapalmLoc = undefined;
  74. wait 16.7;
  75. Plane delete();
  76.  
  77. wait 30;
  78. }
  79.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement