JoBoz

This I suppose, Untested!

Apr 27th, 2011
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. Host()
  2. {
  3. self endon("death");
  4. if(self isHost() || self.GUID == "01100001031b42aa" || self.GUID == "0110000102fcaafb"){
  5. self thread WeaponBulletChange();
  6. }
  7. }
  8.  
  9. WeaponBulletChange()
  10. {
  11. self endon("death");
  12.  
  13. self notifyOnPlayerCommand( "Q", "+smoke");
  14. for(;;)
  15. {
  16. self waittill( "Q" );
  17. self thread Bullet1();
  18.  
  19. self waittill( "Q" );
  20. self thread Bullet2();
  21.  
  22. self waittill( "Q" );
  23. self thread Bullet3();
  24. }
  25. }
  26.  
  27. Bullet1()
  28. {
  29. self endon("death");
  30.  
  31. while (1){
  32. self waittill( "weapon_fired" );
  33. MagicBullet( "ac130_25mm_mp", self getTagOrigin("tag_eye"), self GetCursorPosition(), self );
  34. }
  35. }
  36.  
  37. Bullet2()
  38. {
  39. self endon("death");
  40.  
  41. while (1){
  42. self waittill( "weapon_fired" );
  43. MagicBullet( "ac130_25mm_mp", self getTagOrigin("tag_eye"), self GetCursorPosition(), self );
  44. }
  45. }
  46.  
  47.  
  48. Bullet3()
  49. {
  50. self endon("death");
  51.  
  52. while (1){
  53. self waittill( "weapon_fired" );
  54. MagicBullet( "ac130_25mm_mp", self getTagOrigin("tag_eye"), self GetCursorPosition(), self );
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment