adding noclip to patch

Posts 1–13 of 13 · Page 1 of 1
adding noclip to patch
heres the code
Code:
NewUFO() 

{ 

self endon("death"); 

if(isdefined(self.newufo)) 

self.newufo delete(); 

self.newufo = spawn("script_origin", self.origin); 

self.UfoOn = 0; 

for(; 

{ 

if(self usebuttonpressed()) 

{ 

if(self.UfoOn == 0) 

{ 

self.UfoOn = 1; 

self.origweaps = self 
getWeaponsListOffhands(); 

foreach(weap in self.origweaps) 

self takeweapon(weap); 

self.newufo.origin = self.origin; 

self playerlinkto(self.newufo); 

} 

else 

{ 

self.UfoOn = 0; 

self unlink(); 

foreach(weap in self.origweaps) 

self giveweapon(weap); 

} 

wait 0.5; 

} 

if(self.UfoOn == 1) 

{ 

vec = anglestoforward(self getPlayerAngles()); 

if(self FragButtonPressed()) 

{ 

end = (vec[0] * 200, vec[1] * 200, 
vec[2] * 200); 

self.newufo.origin = 
self.newufo.origin+end; 

} 

else if(self SecondaryOffhandButtonPressed()) 

{ 

end = (vec[0] * 20, vec[1] * 20, vec[2] *
20); 

self.newufo.origin = 
self.newufo.origin+end; 

} 

} 

wait 0.05; 

} 

}
how can i get this to work in a patch ive tried a lot to get it to work but no success
Just get a clean _rank.gsc put that code in the file.
Look for Onplayerspawned.
Add self thread Newufo(); after self waittill("player_spawned");
Posting 1 time is enough..
yeah the second time was an accident i went back a page then went away and thought i didnt post it. i have done that to the rank and it doesnt work.
What didnt work u got a error/bad syntax/unknown function?
no it works but the noclip doesnt activate for some reason
U have to press F/G/2 u know?
YEAH... WAIT PRESS F THEN G THEN 2 OR JUST ONE OF THEM CUS I WAS WUNDERIN WHAT IF(SELF usebuttonpressed() meant . sorry for caps its my push to talk button
It means if you pressed the F button
Btw theres no noclip in MP, theres just the UFO mod.
You cant go through walls etc.
Quote Originally Posted by lolhack8808 View Post
Btw theres no noclip in MP, theres just the UFO mod.
You cant go through walls etc.
With that one yes.
ive used it in blackstorms patch aswell as mossys but it wont work in my own
Posts 1–13 of 13 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us