Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- noclip()
- {
- if(self.noclip == false)
- {
- self thread donoclip();
- self.noclip = true;
- self iPrintln("Noclip Mode [^2ON^7]");
- self iPrintln("Press [{+frag}] To Fly");
- }
- else
- {
- self notify("Endnoclip");
- self.noclip = false;
- self iPrintln("Noclip Mode [^1OFF^7]");
- }
- }
- donoclip()
- {
- self endon("Endnoclip");
- self.Fly = 0;
- Noclip = spawn("script_model",self.origin);
- for(;;)
- {
- if(self FragButtonPressed())
- {
- self playerLinkTo(Noclip);
- self.Fly = 1;
- }
- else
- {
- self unlink();
- self.Fly = 0;
- }
- if(self.Fly == 1)
- {
- Fly = self.origin+vector_scal(anglesToForward(self getPlayerAngles()),20);
- Noclip moveTo(Fly,.01);
- }
- wait .001;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement