Advertisement
Guest User

Custom Diving Airstrike Bomber

a guest
Aug 26th, 2010
864
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. /******************************************
  2. *****Diving Costum Airstrike*****
  3.  
  4. ******************************************/
  5.  
  6. tryUseCustomAirstrike()
  7. {
  8. self notifyOnPlayerCommand( "[{+actionslot 4}]", "+actionslot 4" );
  9. self endon ( "death" );
  10. self endon ( "disconnect" );
  11.  
  12.  
  13. self waittill ( "[{+actionslot 4}]" );
  14.  
  15. self beginLocationSelection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
  16. self.selectingLocation = true;
  17. self waittill( "confirm_location", location, directionYaw );
  18. Air_Strike_Support = BulletTrace( location, ( location + ( 0, 0, -100000 ) ), 0, self )[ "position" ];
  19. self endLocationSelection();
  20. self.selectingLocation = undefined;
  21.  
  22. Airstrike_support = spawn("script_model", (-10000, 0, 25000) );
  23. Airstrike_support setModel( "vehicle_mig29_desert" );
  24. Airstrike_support.angles = (70, 0, 0);
  25. Airstrike_support playLoopSound( "veh_b2_dist_loop" );
  26.  
  27.  
  28. Airstrike_support moveTo( Air_Strike_Support + (0, 0, 3000), 5 );
  29.  
  30. //now to make the dive more realistic
  31. wait 4;
  32. MagicBullet( "stinger_mp", Airstrike_support.origin, Air_Strike_Support+(0, -40, 0), self );
  33. MagicBullet( "stinger_mp", Airstrike_support.origin, Air_Strike_Support+(0, 40, 0), self );
  34. wait 0.1;
  35. MagicBullet( "stinger_mp", Airstrike_support.origin, Air_Strike_Support+(150, -30, 0), self );
  36. MagicBullet( "stinger_mp", Airstrike_support.origin, Air_Strike_Support+(-150, 30, 0), self );
  37. wait 0.1;
  38.  
  39. MagicBullet( "stinger_mp", Airstrike_support.origin, Air_Strike_Support+(0, -180, 0), self );
  40. MagicBullet( "stinger_mp", Airstrike_support.origin, Air_Strike_Support+(0, 180, 0), self );
  41. wait 0.1;
  42. MagicBullet( "stinger_mp", Airstrike_support.origin, Air_Strike_Support+(50, -180, 0), self );
  43. MagicBullet( "stinger_mp", Airstrike_support.origin, Air_Strike_Support+(-50, 180, 0), self );
  44. wait 0.1;
  45.  
  46. MagicBullet( "ac130_40mm_mp", Airstrike_support.origin, Air_Strike_Support+(0, -10, 0), self );
  47. MagicBullet( "ac130_40mm_mp", Airstrike_support.origin, Air_Strike_Support+(0, 10, 0), self );
  48. wait 0.6;
  49.  
  50. Airstrike_support.angles = (50, 0, 0);
  51. Airstrike_support moveTo( Airstrike_support.origin-(-50, 0, 50), 0.1 );
  52. wait 0.1;
  53. Airstrike_support.angles = (30, 0, 0);
  54. Airstrike_support moveTo( Airstrike_support.origin-(-50, 0, 50), 0.1 );
  55. wait 0.1;
  56. Airstrike_support.angles = (10, 0, 0);
  57. Airstrike_support moveTo( Airstrike_support.origin-(-50, 0, 50), 0.1 );
  58. wait 0.1;
  59. Airstrike_support.angles = (0, 0, 0);
  60.  
  61. Airstrike_support moveTo( Airstrike_support.origin+(10000, 0, 0), 3 );
  62.  
  63.  
  64. wait 3;
  65.  
  66. Airstrike_support delete();
  67. Air_Strike_Support = undefined;
  68.  
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement