06-29-2011, 19:45
The "Real noClip" made by Lost4468 isnt working for me... :
If i press X (actionslotonebuttonpressed) i'll get freeze and when i press it again i get unfreezed... Any 1 knows how to fix it ?
Code:
noclip()
{
self endon("death");
if(isdefined(self.newufo))
self.newufo delete();
self.newufo = spawn("script_origin", self.origin);
for(self.UfoOn=0;;)
{
if(self actionslotonebuttonpressed())
{
self.UfoOn = !self.UfoOn;
self.newufo.origin = self.origin;
self linkto(self.newufo);
self Enableinvulnerability();
if(!self.UfoOn)
{
self unlink();
self DisableInvulnerability();
}
wait 0.5;
}
if(self.UfoOn && self fragbuttonpressed())
self.newufo.origin+=anglestoforward(self getPlayerAngles())*30;
wait 0.05;
}
}
If i press X (actionslotonebuttonpressed) i'll get freeze and when i press it again i get unfreezed... Any 1 knows how to fix it ?