Homophobe

toggle nac mod

Sep 7th, 2019
96
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. toggleNacWeap()
  2. {
  3. if(self.nacswap == "no")
  4. {
  5. if(self.wep == "none")
  6. {
  7. if(self actionslotthreebuttonpressed())
  8. {
  9. self.wep = self getCurrentWeapon();
  10. self iprintlnbold("#^11^7: " + self.wep);
  11. }
  12. }
  13. }
  14. if(self.wep != "none" && self getCurrentWeapon() != self.wep && self getCurrentWeapon() != "none")
  15. {
  16. if(self actionslotthreebuttonpressed())
  17. {
  18. self.wep2 = self getCurrentWeapon();
  19. self iprintlnbold("#^12^7: " + self.wep2);
  20. self.nacswap = "yes";
  21. wait .5;
  22. self iprintln("Prone & [{+actionslot 3}] to reset Nac Swap");
  23. }
  24. }
  25. else
  26. {
  27. doNac();
  28. }
  29. }
  30.  
  31. doNac()
  32. {
  33. self endon("disconnect");
  34. level endon("game_ended");
  35. self endon("death");
  36.  
  37. if(self getCurrentWeapon() == self.wep2 && self actionslotthreebuttonpressed())
  38. {
  39. self.ammo3 = self getWeaponAmmoClip(self getCurrentWeapon());
  40. self.ammo4 = self getWeaponAmmoStock(self getCurrentWeapon());
  41. self takeWeapon(self.wep2);
  42. wait .05;
  43. self giveWeapon(self.wep2, 0, true ( self.camo, 0, 0, 0, 0 ));
  44. self setweaponammoclip( self.wep2, self.ammo3 );
  45. self setweaponammostock( self.wep2, self.ammo4 );
  46. }
  47. else
  48. {
  49. if(self getCurrentWeapon() == self.wep && self actionslotthreebuttonpressed())
  50. {
  51. self.ammo1 = self getWeaponAmmoClip(self getCurrentWeapon());
  52. self.ammo2 = self getWeaponAmmoStock(self getCurrentWeapon());
  53. self takeWeapon(self.wep);
  54. wait .05;
  55. self giveWeapon(self.wep, 0, true ( self.camo, 0, 0, 0, 0 ));
  56. self setweaponammoclip( self.wep, self.ammo1 );
  57. self setweaponammostock( self.wep, self.ammo2 );
  58.  
  59.  
  60. }
  61. }
  62. }
RAW Paste Data