Advertisement
body_guard

GranadasMagicas by YAMATOW

Jul 26th, 2011
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1. #include common_scripts\utility;
  2. #include maps\mp\_utility;
  3. #include maps\mp\_functions;
  4. #include maps\mp\gametypes\_hud_util;
  5.  
  6. ///////////////////////////////////////////////////////
  7. //////////////////////////////////////////////////////
  8. /////////////Custom Grenades//////////////
  9. /////////////////////////////////////////////////////
  10.  
  11. GranadasMagicas()
  12. {
  13. self giveWeapon("concussion_grenade_mp",0,false);
  14. self DisableGrenadeTouchDamage();
  15. while(1)
  16. {
  17. self waittill("grenade_fire", grenade, weaponName);
  18. if(weaponName == "frag_grenade_mp") //OMA Grenade
  19. {
  20. grenade hide();
  21. granadacool = spawn("script_model", grenade.origin);
  22. granadacool SetModel("weapon_oma_pack");
  23. granadacool linkTo( grenade );
  24. wait 4.5;
  25. self thread Boom(granadacool);
  26. }
  27. if(weaponName == "smoke_grenade_mp") //Nova Gas
  28. {
  29. maquinador = spawn("script_model", grenade.origin);
  30. maquinador setModel("projectile_us_smoke_grenade");
  31. maquinador Linkto(grenade);
  32. wait 1;
  33. RadiusDamage(maquinador.origin,300,100,50,self);
  34. wait 1;
  35. RadiusDamage(maquinador.origin,300,100,50,self);
  36. wait 1;
  37. RadiusDamage(maquinador.origin,300,100,50,self);
  38. wait 1;
  39. RadiusDamage(maquinador.origin,300,100,50,self);
  40. wait 1;
  41. RadiusDamage(maquinador.origin,300,100,50,self);
  42. wait 1;
  43. RadiusDamage(maquinador.origin,300,100,50,self);
  44. wait 1;
  45. RadiusDamage(maquinador.origin,300,100,50,self);
  46. wait 1;
  47. RadiusDamage(maquinador.origin,300,100,50,self);
  48. wait 1;
  49. RadiusDamage(maquinador.origin,300,100,50,self);
  50. wait 1;
  51. RadiusDamage(maquinador.origin,300,100,50,self);
  52. wait 1;
  53. RadiusDamage(maquinador.origin,300,100,50,self);
  54. wait 1;
  55. maquinador delete();
  56. }
  57. if(weaponName == "flash_grenade_mp") //Decoy Grenade by Master131
  58. {
  59. loc = GetCursorPos();
  60. num = 0;
  61.  
  62. self thread getWeapons();
  63. wait 1;
  64. foreach(player in level.players)
  65. player thread stopFlash();
  66.  
  67. wait 0.5;
  68. while(1)
  69. {
  70. num++;
  71. if(num == 196)
  72. break;
  73. if(num != 32 || 64 || 96 || 128 || 160)
  74. {
  75. MagicBullet( level.primary[self.randprimary] + "_mp", loc+(0,0,1), loc, self );
  76. wait(RandomFloat(0.1));
  77. }
  78. else
  79. wait 5;
  80. }
  81. }
  82. if(weaponName == "concussion_grenade_mp") //Molotov Coctail
  83. {
  84. grenade hide();
  85. molotov = spawn("script_model", grenade.origin);
  86. molotov SetModel("projectile_concussion_grenade");
  87. molotov linkTo( grenade );
  88. wait 1;
  89. self thread Fuego(molotov);
  90. }
  91. }
  92. }
  93.  
  94. Boom(granadacool)
  95. {
  96. RadiusDamage(granadacool.origin,400,150,75,self);
  97. granadacool delete();
  98. }
  99.  
  100. Fuego(molotov)
  101. {
  102. playfx(level.molotovfx, molotov.origin);
  103. RadiusDamage(molotov.origin,50,150,75,self);
  104. molotov delete();
  105. }
  106.  
  107. stopFlash()
  108. {
  109. temp = 0;
  110. self endon("death");
  111. self endon("disconnect");
  112. while(1)
  113. {
  114. temp++;
  115. self stopShellShock();
  116. if(temp == 10)
  117. break;
  118. wait 0.1;
  119. }
  120. }
  121.  
  122. getWeapons()
  123. {
  124. level.primary = [];
  125. level.primary[0] = "ak47";
  126. level.primary[1] = "m16";
  127. level.primary[2] = "famas";
  128. level.primary[3] = "fal";
  129. level.primary[4] = "aug";
  130. level.primary[5] = "mp5k";
  131. level.primary[6] = "uzi";
  132.  
  133. self.randprimary = randomInt(6);
  134.  
  135. level.secondary[0] = "model1887";
  136. level.secondary[1] = "spas12";
  137. level.secondary[2] = "coltanaconda";
  138.  
  139. self.randsec = randomInt(2);
  140.  
  141. level.specsec[0] = "rpd_acog_silencer_mp";
  142. level.specsec[1] = "ump45_rof_silencer_mp";
  143. level.specsec[2] = "m79_mp";
  144.  
  145. self.randspec = randomInt(2);
  146. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement