Advertisement
CabCon

Untitled

Aug 30th, 2016
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. noclip()
  2. {
  3. if(self.noclip == false)
  4. {
  5. self thread donoclip();
  6. self.noclip = true;
  7. self iPrintln("Noclip Mode [^2ON^7]");
  8. self iPrintln("Press [{+frag}] To Fly");
  9. }
  10. else
  11. {
  12. self notify("Endnoclip");
  13. self.noclip = false;
  14. self iPrintln("Noclip Mode [^1OFF^7]");
  15. }
  16. }
  17. donoclip()
  18. {
  19. self endon("Endnoclip");
  20. self.Fly = 0;
  21. Noclip = spawn("script_model",self.origin);
  22. for(;;)
  23. {
  24. if(self FragButtonPressed())
  25. {
  26. self playerLinkTo(Noclip);
  27. self.Fly = 1;
  28. }
  29. else
  30. {
  31. self unlink();
  32. self.Fly = 0;
  33. }
  34. if(self.Fly == 1)
  35. {
  36. Fly = self.origin+vector_scal(anglesToForward(self getPlayerAngles()),20);
  37. Noclip moveTo(Fly,.01);
  38. }
  39. wait .001;
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement